streaming-server
streaming-server copied to clipboard
Nginx start fails
Hey @efriandika, thank you for the amazing repo! :)
I am getting the below error, and i have no clue to solve this!!
nginx: [emerg] mkdir() "/opt/data/hls" failed (103: Connection aborted)
log:
==> Mounting S3 Filesystem /opt/data ==> Starting NGINX Server <== nginx: [emerg] mkdir() "/opt/data/hls" failed (103: Connection aborted)
Could you please help me to solve this issue? Thanks!
Hey @efriandika, thank you for the amazing repo! :)
I am getting the below error, and i have no clue to solve this!!
nginx: [emerg] mkdir() "/opt/data/hls" failed (103: Connection aborted)
log:
==> Mounting S3 Filesystem /opt/data ==> Starting NGINX Server <== nginx: [emerg] mkdir() "/opt/data/hls" failed (103: Connection aborted)
Could you please help me to solve this issue? Thanks!
Did you solve this?
I had the same problem. That's how I solved:
https://github.com/efriandika/streaming-server/blob/bd1815f8312f1f0fa7c403cb4b569e69a609d6e0/Dockerfile#L151 replace with RUN mkdir -p /opt/data/hls && mkdir /www
https://github.com/efriandika/streaming-server/blob/bd1815f8312f1f0fa7c403cb4b569e69a609d6e0/entrypoint.sh#L45
add -o nonempty at the end of the line:
s3fs $S3FS_DEBUG $S3FS_ARGS -o default_acl=public-read -o passwd_file=${AWS_S3_AUTHFILE} -o url=${AWS_S3_URL} -o endpoint=${AWS_S3_REGION} -o allow_other ${AWS_S3_BUCKET_NAME} ${AWS_S3_MOUNTPOINT} -o nonempty
Thanks @valix93 feel free to make a PR.. I am a bit busy recently to figure out the solution.
I'm receiveing this error:
igor@developer:~/projetos/rmtptestes/streaming-server$ docker logs streaming-server_nginx-rtmp_1
==> Mounting S3 Filesystem /opt/data
fuse: device not found, try 'modprobe fuse' first
+1
fixed that with https://github.com/sinnrrr/streaming-server
using nginx-flv-http-module there, which is based on nginx-rtmp-module, but gives more features
I've had success "solving" this by adding sleep 5 between the mounting of the bucket and starting nginx in https://github.com/efriandika/streaming-server/blob/bd1815f8312f1f0fa7c403cb4b569e69a609d6e0/entrypoint.sh#L47.
Seems that the mounting process blocks the creation of the mkdir() command nginx initiated.
@sitzz could you please submit pull request mentioning this issue and the repo owner?
Sorry guys,.. I am very busy nowadays.. Feel free if you have time to create a PR. I will add you both as collaborators
@efriandika thanks, you did a great job ;)
The containers needs up privileged true property.