ArcBlock / abtnode-docs

2 stars 5 forks source link

should have nginx error solution in the document. #93

Open mave99a opened 3 years ago

mave99a commented 3 years ago
kiranmaniya@Kirans-MacBook-Pro magiclink % abtnode start
:information_source: Node did from config zNKnVV7jDHnpm8utuSRsrv4mi6MpitprU3ia
:information_source: Load config from /Users/kiranmaniya/Projects/BlockChain/magiclink/.abtnode/abtnode.yml
:heavy_check_mark: ABT Node DB Proxy ready on port 40404
:heavy_check_mark: ABT Node Updater ready on port 40405
:heavy_check_mark: Dashboard HTTPS certificate was downloaded successfully!
:heavy_multiplication_x: ABT Node start failed due to error: exec /usr/local/bin/nginx -c /Users/kiranmaniya/Projects/BlockChain/magiclink/.abtnode/router/nginx/nginx.conf -p /Users/kiranmaniya/Projects/BlockChain/magiclink/.abtnode/router/nginx error: could not open error log file: open() “/usr/local/var/log/nginx/error.log” failed (13: Permission denied);37144#0: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /Users/kiranmaniya/Projects/BlockChain/magiclink/.abtnode/router/nginx/nginx.conf:3;bind() to 0.0.0.0:443 failed (48: Address already in use);bind() to 0.0.0.0:80 failed (48: Address already in use);still could not bind()
:information_source: You can run abtnode start again to fix error if it’s router related.
kiranmaniya@Kirans-MacBook-Pro magiclink % abtnode start
:information_source: Node did from config zNKnVV7jDHnpm8utuSRsrv4mi6MpitprU3ia
:information_source: Load config from /Users/kiranmaniya/Projects/BlockChain/magiclink/.abtnode/abtnode.yml
:heavy_check_mark: ABT Node DB Proxy ready on port 40404
:heavy_check_mark: ABT Node Updater ready on port 40405
:heavy_check_mark: Starting ABT Node Service... Done in 8.133s
:heavy_multiplication_x: Starting ABT Node Daemon... Fail in 25.111s
:heavy_multiplication_x: ABT Node start failed due to error: the service is not ready within 25 seconds, please check your network
:information_source: You can run abtnode start again to fix error if it’s router related.
kiranmaniya@Kirans-MacBook-Pro magiclink %

Our external dev hit this nginx issue. it seemed it’s common issue. maybe we should add the solution to our document

binsta commented 3 years ago

Check the exception abtnode start ℹ Node did from config zNKXPJ6s43pXG1t8HUvtk4x6DDbqw7PFfXu5 ℹ Load config from /home/binston/Public/webapp/abt/.abtnode/abtnode.yml ✔ ABT Node DB Proxy ready on port 40404 ✔ ABT Node Event Hub ready on port 40407 ✔ ABT Node Updater ready on port 40405 ✖ Your nginx routing provider is not available, please make sure the provider is available before you start ABT Node. ✖ None available details: Nginx is running, please stop it first ✖ You can refer to this document to solve the problem: https://docs.arcblock.io/abtnode

polunzh commented 3 years ago

Check the exception abtnode start ℹ Node did from config zNKXPJ6s43pXG1t8HUvtk4x6DDbqw7PFfXu5 ℹ Load config from /home/binston/Public/webapp/abt/.abtnode/abtnode.yml ✔ ABT Node DB Proxy ready on port 40404 ✔ ABT Node Event Hub ready on port 40407 ✔ ABT Node Updater ready on port 40405 ✖ Your nginx routing provider is not available, please make sure the provider is available before you start ABT Node. ✖ None available details: Nginx is running, please stop it first ✖ You can refer to this document to solve the problem: https://docs.arcblock.io/abtnode

This error means that there is a nginx process on your computer, but it is not owned by abtnode. So you can check to see if there is a running nginx, and if so, stop it.

wangshijun commented 3 years ago

@binsta Seems a nginx daemon process is already running on your machine, a controlled nginx is required by ABT Node router to work properly, please terminate that nginx daemon process before try again.

binsta commented 3 years ago

Thanks its work fine