Search code examples
rackspace-cloudloopbackjsstrongloop

Loopback storage error - Path does not exist: undefined


Please help

http://docs.strongloop.com/display/public/LB/Storage+service

I want to set it to upload into the container rackspace

but an error after slc run

http://prntscr.com/69uvcb

    /root/example-file-storage/node_modules/loopback-component-storage/lib/providers/filesystem/index.js:25
    throw new Error('FileSystemProvider: Path does not exist: ' + this.root);
          ^
Error: FileSystemProvider: Path does not exist: undefined

my config

/server/datasources.json 

 "rackspace": {
    "name": "rackspace",
    "connector": "loopback-component-storage",
    "username": "*****",
    "apiKey": "*****************************",
    "region": "IAD"
  }

root@rest:~/lifefilm/server# slc -v
strongloop v2.10.3 (node v0.10.36)
├── [email protected]
├── [email protected] (5a43a57)
├─┬ [email protected] (c945bd1)
│ └── [email protected]
├── [email protected]
├── [email protected] (5e25e21)
├── [email protected] (315d448)
├── [email protected] (aab3dbb)
├── [email protected]
└── [email protected] (9dc370f)

Solution

  • add this line when use rackspace

    ...
    root: '/tmp/storage',
    authUrl: 'https://identity.api.rackspacecloud.com',
    ...
    

    example: gist.github.com/rosskukulinski/6071fc347b9ab1223707