[HOW TO] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post Reply
nasnoob
Getting the hang of things
Posts: 74
Joined: Sun Jun 21, 2009 4:31 pm

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by nasnoob »

Hi,

Ive installed the container and can see the link and open the GUI.

However in the console I keep seeing the below error repeating constantly:

"s6-applyuidgid: fatal: unable to exec s6-fdholderd: Permission Denied"

any idea what this means?
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by oyvindo »

Search Google for it. You'll get plenty of hits to help you along.
I have never seen that error before, but "Permission Denied" normally means you are either using an account without enough permissions, or you are trying to access a folder or file with access restrictions.
ImageImageImage
nasnoob
Getting the hang of things
Posts: 74
Joined: Sun Jun 21, 2009 4:31 pm

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by nasnoob »

I've checked google for a while and have tried a couple of things:

1. assigning admin uid and gid to the container upon setup
2. altering all volume folder permissions to match the container user account

neither work and i cant seem to get rid of this error

its odd because ive managed to setup an ssl certificate and reverse proxy in the GUI with no other issues.

But for the life of me i can't figure out what this error is...
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by oyvindo »

Are you logged into your NAS as admin during setup?
Do you have other containers running successfully?
Did you follow the guide exactly, or did you make any changes?
ImageImageImage
nasnoob
Getting the hang of things
Posts: 74
Joined: Sun Jun 21, 2009 4:31 pm

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by nasnoob »

1. Yes installed it as admin
2. I followed the guide exactly, but still get the error, and then tried various permission related tweaks to see if it would go away but it still persists
3. I have 3 other containers working perfectly with no errors (sonarr, portainer, jackett)

I assumed it was a QNAP related issue but since no one else it getting any errors, not sure what is causing it
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by oyvindo »

I am lost. Sorry.
You must provide much more information about your setup, versions, screen dumps of CS config, log outputs, etc.
It's often hard to see you own mistakes. It only takes an incorrect comma or a hyphen to screw things up.
But I can't help you since I cannot see anything of your system.
ImageImageImage
nasnoob
Getting the hang of things
Posts: 74
Joined: Sun Jun 21, 2009 4:31 pm

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by nasnoob »

Thanks for your time and your help

I found this forum ink, it seems other users have had a similar issue, but no solution given

https://github.com/jlesage/docker-handbrake/issues/155

Please see my setup details below, I have also attached the container log for Nginx Proxy Manager and also the setup config:

Nas Model 453B
Firmware 4.5.3.1697
Container Station version 2.3.5.1708

I'm new to docker so not sure what else would be useful to provide or check, so please let me know.

As mentioned earlier the proxy manager seems to work as expected but im not sure what this error message is and what effect it has on the container.
You do not have the required permissions to view the files attached to this post.
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by oyvindo »

Open CS and click on the blue text in the container list that reads: Jlesage-Nginx
This should take you to the Console preview. Make a screen cap of that window and post it here.

Then click on the Settings button and make another screen cap and post it here too.
Then click on Advanced Settings >> and make sure the environment section is selected, then make as many screen caps as needed to cover the whole section (you probably need to scroll down), and post it here.
Then select the Networks section and make another screen cap, and so on, and so on until you've covered Device and Shared folder sections as well.
Post everything here so I can see it.
ImageImageImage
nasnoob
Getting the hang of things
Posts: 74
Joined: Sun Jun 21, 2009 4:31 pm

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by nasnoob »

Hi

I attached the CS screenshots. I couldnt capture the console window as the error fills up the log screen almost instantly. However i attached a text version of the full console log in my previous message
You do not have the required permissions to view the files attached to this post.
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by oyvindo »

Well, already in your first picture, I can see that you have not followed the guide. You are pointing the /config folder back into the container via the external path.
That's not the way to do it. You must either choose an externally accessible folder, or none at all.
ImageImageImage
nasnoob
Getting the hang of things
Posts: 74
Joined: Sun Jun 21, 2009 4:31 pm

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by nasnoob »

Hey thanks, i store all the container volumes in a segregated folder, all the files persist when the container is down or deleted, its the same setup as you have but pointing to a different folder.

just to check, I just remade a like for like container copying all your settings (including the folder share in /web) and i still get the error, i'm assuming you don't see this error in your console at all?
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by oyvindo »

You need to use the browse function in the Advanced Settings dialog box to choose a path for external data. Only if you browse to the folder can you ensure that the container has all needed privileges.
Nginx is creating some special entries in the folder. I'm not sure wht they are, but you can see this if you use WinSCP to browse into the folder;

Image
ImageImageImage
nasnoob
Getting the hang of things
Posts: 74
Joined: Sun Jun 21, 2009 4:31 pm

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by nasnoob »

I tried this (i.e. create a subdirectory in /share/web and point the container /config to it ) and I can see the files as you suggested but the same error persists
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by oyvindo »

But did you browse to it, or did you just type the path from your keyboard?
ImageImageImage
SirDarknight
New here
Posts: 2
Joined: Sat Jul 17, 2021 3:59 pm

Re: [How To] install Nginx Reverse Proxy in CS with Let's Encrypt Certificate

Post by SirDarknight »

Image

I did everything following your guide but I must've messed something up and I can't access my services through the domains. The domains are all pointed towards my WAN IP.

Image

I also forwarded the ports in my router and I can see them opened through canyouseeme.org

Image

But I'm still I'm getting timed out when I try to enter the domains.
Post Reply

Return to “Container Station”