Xray-examples icon indicating copy to clipboard operation
Xray-examples copied to clipboard

Nginx error with All-in-One-fallbacks-Nginx

Open mr-meteor opened this issue 2 years ago • 1 comments
trafficstars

Hi I have some errors in starting nginx with new "All-in-One-fallbacks-Nginx" config : but xray running without error @UZziell

Jan 04 12:47:10 ubuntu-2gb-nbg1-11 nginx[1082]: nginx: [emerg] bind() to unix:/dev/shm/h1.sock failed (98: Unknown error)
Jan 04 12:47:10 ubuntu-2gb-nbg1-11 nginx[1082]: nginx: [emerg] bind() to unix:/dev/shm/h2c.sock failed (98: Unknown error)
Jan 04 12:47:11 ubuntu-2gb-nbg1-11 nginx[1082]: nginx: [emerg] bind() to unix:/dev/shm/h1.sock failed (98: Unknown error)
Jan 04 12:47:11 ubuntu-2gb-nbg1-11 nginx[1082]: nginx: [emerg] bind() to unix:/dev/shm/h2c.sock failed (98: Unknown error)
Jan 04 12:47:11 ubuntu-2gb-nbg1-11 nginx[1082]: nginx: [emerg] bind() to unix:/dev/shm/h1.sock failed (98: Unknown error)
Jan 04 12:47:11 ubuntu-2gb-nbg1-11 nginx[1082]: nginx: [emerg] bind() to unix:/dev/shm/h2c.sock failed (98: Unknown error)

mr-meteor avatar Jan 04 '23 12:01 mr-meteor

Apparently Nginx does not clean up the sockets itself. Try this: rm /dev/shm/{h1.sock,h2c.sock} && nginx -t && systemctl restart nginx

UZziell avatar Jan 04 '23 13:01 UZziell