streaming-server icon indicating copy to clipboard operation
streaming-server copied to clipboard

Nginx start fails

Open muthu-tm opened this issue 4 years ago • 11 comments

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!

muthu-tm avatar Apr 13 '21 03:04 muthu-tm

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?

IrvinCrespo avatar Jul 26 '21 19:07 IrvinCrespo

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

valix93 avatar Jul 28 '21 13:07 valix93

Thanks @valix93 feel free to make a PR.. I am a bit busy recently to figure out the solution.

efriandika avatar Jul 28 '21 13:07 efriandika

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

IgorDePaula avatar Oct 31 '21 00:10 IgorDePaula

+1

sinnrrr avatar May 16 '22 12:05 sinnrrr

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

sinnrrr avatar May 20 '22 05:05 sinnrrr

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 avatar Jun 09 '22 06:06 sitzz

@sitzz could you please submit pull request mentioning this issue and the repo owner?

sinnrrr avatar Jun 09 '22 06:06 sinnrrr

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 avatar Jun 09 '22 06:06 efriandika

@efriandika thanks, you did a great job ;)

sinnrrr avatar Jun 09 '22 06:06 sinnrrr

The containers needs up privileged true property.

IgorDePaula avatar Aug 10 '22 01:08 IgorDePaula