Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

docker-compose部署:eoapi-remote-server exited with code 1 #31

Open
hlxkurapika opened this issue Dec 23, 2022 · 6 comments
Open

docker-compose部署:eoapi-remote-server exited with code 1 #31

hlxkurapika opened this issue Dec 23, 2022 · 6 comments

Comments

@hlxkurapika
Copy link

您好,我这边直接使用docker-compose部署遇到一个问题,日志如下:

eoapi-remote-server | wait-for-it.sh: waiting 15 seconds for mysql:3306
eoapi-remote-server | wait-for-it.sh: mysql:3306 is available after 0 seconds
eoapi-remote-server | yarn run v1.22.19
eoapi-remote-server | $ npm run build&&npx typeorm-ts-node-commonjs migration:run -d ./src/config/data-source.ts
eoapi-remote-server |
eoapi-remote-server | > [email protected] prebuild
eoapi-remote-server | > rimraf dist
eoapi-remote-server |
eoapi-remote-server | /eoapi-remote-server/node_modules/rimraf/bin.js:46
eoapi-remote-server | throw er
eoapi-remote-server | ^
eoapi-remote-server |
eoapi-remote-server | [Error: EINVAL: invalid argument, rmdir 'dist/src/config'] {
eoapi-remote-server | errno: -22,
eoapi-remote-server | code: 'EINVAL',
eoapi-remote-server | syscall: 'rmdir',
eoapi-remote-server | path: 'dist/src/config'
eoapi-remote-server | }
eoapi-remote-server |
eoapi-remote-server | Node.js v18.12.1
eoapi-remote-server | error Command failed with exit code 1.
eoapi-remote-server | info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
eoapi-remote-server exited with code 1

请问要如何解决该问题呢?

@hlxkurapika
Copy link
Author

环境:
centos 7.8
docker-ce 20.10.21

@scarqin
Copy link
Member

scarqin commented Dec 23, 2022

image

数据库创建了吗?

@hlxkurapika
Copy link
Author

我看有自动创建了一个eoapi库,里面没有表

@hlxkurapika
Copy link
Author

发现mysql容器有报错: mind:Operation not permitted
我添加security参数试试

@scarqin
Copy link
Member

scarqin commented Dec 23, 2022

好的,应该是没有连接上数据库导致的报错

@hlxkurapika
Copy link
Author

重新启动后,问题仍然存在

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants