Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx start fails #3

Open
muthu-tm opened this issue Apr 13, 2021 · 11 comments
Open

Nginx start fails #3

muthu-tm opened this issue Apr 13, 2021 · 11 comments

Comments

@muthu-tm
Copy link

muthu-tm commented Apr 13, 2021

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!

@IrvinCrespo
Copy link

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?

@vlipari
Copy link

vlipari commented Jul 28, 2021

I had the same problem. That's how I solved:

RUN mkdir -p /opt/data && mkdir /www
replace with RUN mkdir -p /opt/data/hls && mkdir /www

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}

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

@efriandika
Copy link
Owner

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

@IgorDePaula
Copy link

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

@sinnrrr
Copy link
Collaborator

sinnrrr commented May 16, 2022

+1

sinnrrr pushed a commit to sinnrrr/streaming-server that referenced this issue May 19, 2022
@sinnrrr
Copy link
Collaborator

sinnrrr commented May 20, 2022

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

@sitzz
Copy link

sitzz commented Jun 9, 2022

I've had success "solving" this by adding sleep 5 between the mounting of the bucket and starting nginx in

.
Seems that the mounting process blocks the creation of the mkdir() command nginx initiated.

@sinnrrr
Copy link
Collaborator

sinnrrr commented Jun 9, 2022

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

@efriandika
Copy link
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

@sinnrrr
Copy link
Collaborator

sinnrrr commented Jun 9, 2022

@efriandika thanks, you did a great job ;)

@IgorDePaula
Copy link

The containers needs up privileged true property.

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

No branches or pull requests

7 participants