Help setting up HaProxy in container station.

User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: Help setting up HaProxy in container station.

Post by oyvindo »

Any particular reason why you refuse to post a screencap of your Shared Folder setting during creation in CS?
ImageImageImage
dayfly
Starting out
Posts: 14
Joined: Thu Apr 30, 2020 2:47 pm

Re: Help setting up HaProxy in container station.

Post by dayfly »

Sorry i am not refusing i am very glad for the help :ashamed:
i copied and pasted it in my last post, thought you had enough on that.

Screenshots
Image
Image
Image
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: Help setting up HaProxy in container station.

Post by oyvindo »

Ok, the first shot (of the three) is the one I was interested in seeing, but regretfully, the resolution is too low to read any of the text.
Can you please post an image with 1:1 resolution? (or use Imgur instead).
ImageImageImage
User avatar
Axell
Starting out
Posts: 35
Joined: Thu Apr 05, 2018 3:02 pm

Re: Help setting up HaProxy in container station.

Post by Axell »

Hello!
I just have the same problem with HaProxy on docker in QNAP (QTS is the latest).
In my home CentOS VM i have no problems with HA, but it cant start it in Docker containter in my QNAP D4.

My initial data:
1. QNAP D4;
2. QTS 5.0.0.1716;
3. Default setting of HA Proxy from official image (on screen);
4. HAProxy version is: latest on this moment;
5. I have no shared directory, because it is not required and i dont't touch default setting in my first tests;

My problem is warning:

Code: Select all

[NOTICE]   (1) : haproxy version is 2.4.2-553dee3                                                                                                            
[NOTICE]   (1) : path to executable is /usr/local/sbin/haproxy                                                                                               
[ALERT]    (1) : Cannot open configuration file/directory /usr/local/etc/haproxy/haproxy.cfg : No such file or directory 
.... and than container stops immediately!

So, my questions is:
1. Is it should't work "from box" without different setting? Why we have default setting if it does't work..... i dont understand that;
2. What i should do to run docker official image whithout any ussies?

Thanks a lot!!!

Screens are below
You do not have the required permissions to view the files attached to this post.
Network Storages in use: QNap D4, Synogogy DS214SE
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: Help setting up HaProxy in container station.

Post by oyvindo »

I don't read Russian, so most of your pictures becomes just guesswork.
Anyway, it looks as if you did not create an external folder/path to store your config file.
You should never store such information inside the container.
Next, I think you have to manually create an empty file named haproxy.cfg in the right location before you run/install the container.
ImageImageImage
User avatar
Axell
Starting out
Posts: 35
Joined: Thu Apr 05, 2018 3:02 pm

Re: Help setting up HaProxy in container station.

Post by Axell »

oyvindo wrote: Mon Aug 02, 2021 4:11 pm ....
Anyway, it looks as if you did not create an external folder/path to store your config file.
....
Yes, i dont. I expect that image already have default haproxy.cfg file. Ok, thanks, i try to create .cfg file in external device and mount it to container.
Network Storages in use: QNap D4, Synogogy DS214SE
User avatar
Axell
Starting out
Posts: 35
Joined: Thu Apr 05, 2018 3:02 pm

Re: Help setting up HaProxy in container station.

Post by Axell »

Thanks, i start container. So for other forum members.
1. Create some directory on QNap - in my case it is /Container/container-station-date/mounts/haproxy, and i insert empty haproxy.cfg file in this directorty;
2. In create container wizard i go to advanced settings and setup mount point: on screen
3. Than i run container with no errors.

Another question - can i log in with SU rights? I try:

Code: Select all

su - 
command but i dont know password. I want it to config my haproxy.cfg in container.

Thanks!
You do not have the required permissions to view the files attached to this post.
Network Storages in use: QNap D4, Synogogy DS214SE
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

[Solved] Help setting up HaProxy in container station.

Post by oyvindo »

Good that it worked out for you.
Regretfully, I cannot help you with HAProxy itself, as I have never used it. I use Apache Proxy and Nginx Proxy.
ImageImageImage
User avatar
Axell
Starting out
Posts: 35
Joined: Thu Apr 05, 2018 3:02 pm

Re: Help setting up HaProxy in container station.

Post by Axell »

Ok, thanks a lot!!!
Network Storages in use: QNap D4, Synogogy DS214SE
User avatar
oyvindo
Experience counts
Posts: 1399
Joined: Tue May 19, 2009 2:08 am
Location: Norway, Oslo

Re: Help setting up HaProxy in container station.

Post by oyvindo »

If you are pasting a cfg file from a stand alone config into a container version, then don't expect that to work.
You have to rebuild the config from scratch.
Your error messages are quite clear: userid and groupid seems to be incorrect.
In addition, doublecheck all absolute and relative path settings as they most likely will change when you go to a container version.
ImageImageImage
tiagondelgado
Starting out
Posts: 19
Joined: Wed Oct 12, 2016 8:03 pm

Re: Help setting up HaProxy in container station.

Post by tiagondelgado »

Everything works except qsync which says "login failed".

Anyone using qsync who can share their settings?
Post Reply

Return to “Container Station”