我正在制作Hyperledger Composer教程(https://www.ibm.com/developerworks/cloud/library/cl-deploy-interact-extend-local-blockchain-network-with-hyperledger-composer/index.html)。它使用docker来运行本地版本的hyperledger composer playground。
我第一次在localhost 8080上运行它,它工作正常,但几天后我运行它,它抛出一个错误:
TypeError:无法读取未定义的属性'engine'
这是我在命令行上看到的:
[2018-03-16 05:40:53] PM2日志:在没有守护进程模式下启动
[2018-03-16 05:40:53]PM2日志:以forfork模式启动执行顺序 - 对于app name:composer-playground id:0
[2018-03-16 05:40:53] PM2日志:应用程序名称:composer-playground id:0 online
PlaygroundAPI:createServer()> 8080,假
PlaygroundAPI:createServer()Playground API在端口8080上启动 PlaygroundAPI:createServer()<
作曲家:main()>
PlaygroundAPI:createServer()主机':: ffff:172.17.0.1'上ID为'zIhEA8HiUwbYafauAAAA'的客户端 ConnectorServer:constructor()> { “FS”:{ “常量”:{ “O_RDONLY”:0 “O_WRONLY”:1, “O_RDWR”:2 “S_IFMT”:61440 “S_IFREG”:32768 “S_IFDIR”:16384 “S_IFCHR” :8192, “S_IFBLK”:24576 “S_IFIFO”:4096, “S_IFLNK”:40960 “S_IFSOCK”:49152 “O_CREAT”:64, “O_EXCL”:128, “O_NOCTTY”:256, “O_TRUNC”:512 “O_APPEND”:1024, “O_DIRECTORY”:65536, “O_NOATIME”:262144, “O_NOFOLLOW”:131072, “O_SYNC”:1052672 “O_DSYNC”:4096, “O_DIRECT”:16384, “O_NONBLOCK”:2048” S_IRWXU “:448,” S_IRUSR “:256,” S_IWUSR “:128,” S_IXUSR “:64,” S_IRWXG “:56,” S_IRGRP “:32,” S_IWGRP “:16,” S_IXGRP “:8,” S_IRWXO” :7, “S_IROTH”:4 “S_IWOTH”:2 “S_IXOTH”:1, “F_OK”:0 “R_OK”:4 “W_OK”:2 “X_OK”:1, “UV_FS_COPYFILE_EXCL”:1 “COPYFILE_EXCL”:1}, “F_OK”:0 “R_OK”:4 “W_OK”:2 “X_OK”:1}, “thenifyFs”:{ “常量”:{ “O_RDONLY”:0,” O_WRONLY “:1,” O_RDWR “:2”,S_IFMT “:61440”,S_IFREG “:32768”,S_IFDIR “:16384”,S_IFCHR “:8192,” S_IFBLK “:24576”,S_IFIFO “:4096,” S_IFLNK” :40960 “S_IFSOCK”:49152 “O_CREAT”:64, “O_EXCL”:128, “O_NOCTTY”:256, “O_TRUNC”:512, “O_APPEND”:1024, “O_DIRECTORY”:65536 “O_NOATIME”:262144 “O_NOFOLLOW”:131072, “O_SYNC”:1052672 “O_DSYNC”:4096 “O_DIRECT”:16384 “O_NONBLOCK”:2048, “S_IRWXU”:448, “S_IRUSR”:256, “S_IWUSR”:128, “S_IXUSR”:64, “S_IRWXG”:56, “S_IRGRP”:32,” S_IWGRP “:16,” S_IXGRP “:8中,” S_IRWXO “:7,” S_IROTH “:4”,S_IWOTH “:2”,S_IXOTH “:1,” F_OK “:0”,R_OK “:4”,W_OK” :2, “X_OK”:1, “UV_FS_COPYFILE_EXCL”:1, “COPYFILE_EXCL”:1}, “F_OK”:0 “R_OK”:4 “W_OK”:2 “X_OK”:1}, “rimrafOptions” :{ “常量”:{ “O_RDONLY”:0 “O_WRONLY”:1, “O_RDWR”:2 “S_IFMT”:61440 “S_IFREG”:32768 “S_IFDIR”:16384 “S_IFCHR”:8192,” S_IFBLK “:24576”,S_IFIFO “:4096,” S_IFLNK “:40960”,S_IFSOCK “:49152”,O_CREAT “:64,” O_EXCL “:128,” O_NOCTTY “:256,” O_TRUNC “:512,” O_APPEND” :1024, “O_DIRECTORY”:65536, “O_NOATIME”:262144, “O_NOFOLLOW”:131072, “O_SYNC”:1052672 “O_DSYNC”:4096, “O_DIRECT”:16384, “O_NONBLOCK”:2048, “S_IRWXU”:448 “S_IRUSR”:256, “S_IWUSR”:128, “S_IXUSR”:64, “S_IRWXG”:56, “S_IRGRP”:32, “S_IWGRP”:16, “S_IXGRP”:8中, “S_IRWXO”:7,” S_IROTH “:4”,S_IWOTH “:2”,S_IXOTH “:1,” F_OK “:0”,R_OK “:4”,W_OK “:2”,X_OK “:1,” UV_FS_COPYFILE_EXCL “:1,” COPYFILE_EXCL” :1}, “F_OK”:0 “R_OK”:4 “W_OK”:2 “X_OK”:1, “disableGlob”:真}, “StorePath中”:“/小时ome / composer / .composer / cards“},{},[object Object]
ConnectorServer:constructor()<
我正在竞选: Ubuntu 16.04 LTS Docker版本17.12.1-ce,build 7390fc6
有什么想法吗?
答案 0 :(得分:1)
同样的问题:/第一次它工作正常,但下次,一个未定义的引擎。任何解决方案?
修改强>
我设法让它再次运行,只需使用sudo权限运行composer-playground。这解决了我的问题。希望它有所帮助!