环回存储错误 - 路径不存在:未定义

时间:2015-02-26 12:31:38

标签: rackspace-cloud loopbackjs strongloop

请帮忙

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

我想将其设置为上传到容器机架空间

但是在slc运行后出现错误

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

我的配置

/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)
├── strong-arc@1.1.0
├── strong-build@1.0.3 (5a43a57)
├─┬ strong-supervisor@1.4.1 (c945bd1)
│ └── strong-agent@1.3.2
├── node-inspector@0.7.4
├── strong-deploy@1.1.4 (5e25e21)
├── strong-pm@1.7.2 (315d448)
├── strong-registry@1.1.4 (aab3dbb)
├── nodefly-register@0.3.3
└── generator-loopback@1.7.3 (9dc370f)

1 个答案:

答案 0 :(得分:0)

在使用机架空间时添加此行

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

示例:gist.github.com/rosskukulinski/6071fc347b9ab1223707