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

Docker Socket Proxy fails to start. #3566

Closed
ShapeShifter499 opened this issue Oct 19, 2023 · 12 comments · Fixed by #3567
Closed

Docker Socket Proxy fails to start. #3566

ShapeShifter499 opened this issue Oct 19, 2023 · 12 comments · Fixed by #3567
Labels
2. developing Work in progress bug Something isn't working
Milestone

Comments

@ShapeShifter499
Copy link
Contributor

Steps to reproduce

Install the docker, see log.

Expected behavior

Docker socket proxy should load and work.

Actual behavior

AIO settings webpage states "starting" but it never appears to actually start. I see errors in the log for nextcloud-aio-docker-socket-proxy, log attached at the bottom.

Host OS

Manjaro x86_64

Nextcloud AIO version

Current channel

Nextcloud AIO v7.4.1

Other valuable info

nextcloud-aio-docker-socket-proxy_log.txt

@ShapeShifter499 ShapeShifter499 added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Oct 19, 2023
@szaimen
Copy link
Collaborator

szaimen commented Oct 19, 2023

This is the issue apparently:

[ALERT]    (23) : Not enough memory to allocate 1073741815 entries for fdtab!
[ALERT]    (23) : No polling mechanism available.
  This may happen when using thread-groups with old pollers (poll/select), or
  it is possible that haproxy was built with TARGET=generic and that FD_SETSIZE
  is too low on this platform to support maxconn and the number of listeners
  and servers. You should rebuild haproxy specifying your system using TARGET=
  in order to support other polling systems (poll, epoll, kqueue) or reduce the
  global maxconn setting to accommodate the system's limitation. For reference,
  FD_SETSIZE=1024 on this system, global.maxconn=536870896 resulting in a maximum of
  1073741815 file descriptors. You should thus reduce global.maxconn by 536870396. Also,
  check build settings using 'haproxy -vv'.

@szaimen
Copy link
Collaborator

szaimen commented Oct 19, 2023

haproxy/haproxy#2043

@szaimen
Copy link
Collaborator

szaimen commented Oct 19, 2023

Possible fix: matrix-org/sytest@a42e75a

@ShapeShifter499
Copy link
Contributor Author

Possible fix: matrix-org/sytest@a42e75a

so this would be added to the haproxy used inside the AIO?

@szaimen
Copy link
Collaborator

szaimen commented Oct 19, 2023

Possible fix: matrix-org/sytest@a42e75a

so this would be added to the haproxy used inside the AIO?

yes

@szaimen szaimen added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Oct 19, 2023
@szaimen szaimen added this to the next milestone Oct 19, 2023
@szaimen szaimen added 2. developing Work in progress and removed 1. to develop Accepted and waiting to be taken care of labels Oct 19, 2023
@sol8712
Copy link

sol8712 commented Oct 19, 2023

Will adding maxconn to the haproxy config directly be removed on a restart of the container?

You could attempt setting a higher limit for all of docker as in this Q/A:
https://stackoverflow.com/questions/71828013/docker-container-has-a-too-large-file-descriptor-limit-ulimit-n

Or try this only on your AIO docker file as shown by the OP here:
https://www.reddit.com/r/EndeavourOS/comments/u9cpb7/docker_and_limitsconf/?rdt=64474

IF these work these are temporary fixes. Also maybe usefull for debugging.

@szaimen
Copy link
Collaborator

szaimen commented Oct 20, 2023

This is now fixed with v7.5.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel

@ShapeShifter499
Copy link
Contributor Author

@szaimen I have pulled the latest beta and the nextcloud-aio-docker-socket-proxy now loads properly. Thank you for the help.

@ShapeShifter499
Copy link
Contributor Author

ShapeShifter499 commented Oct 22, 2023

@szaimen One more related concern, while the container doesn't throw errors anymore. I do see this in Nextcloud for the App API. I'm guessing I ignore the fact it cannot access the socket since it's getting a proxy? It does return a message that it connected successfully. Does this screenshot look correct to you?

I edited out my domain name.
Screenshot from 2023-10-22 04-44-39

EDIT: Setup is behind a reverse haproxy and that handles SSL

@szaimen
Copy link
Collaborator

szaimen commented Oct 22, 2023

This looks like something that should get reported to https://github.com/cloud-py-api/app_api/issues

@ShapeShifter499
Copy link
Contributor Author

ShapeShifter499 commented Oct 23, 2023

@szaimen --volume /var/run/docker.sock:/var/run/docker.sock:ro should still work if I set it up like this? or should the 'ro' be 'rw' to use this? the documentation is a little unclear to me. Also I kind of assumed that 'docker socket proxy' was supposed to make access a little more secure.

@szaimen
Copy link
Collaborator

szaimen commented Oct 23, 2023

Yes ro should work

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2. developing Work in progress bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants