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

[BUG] FPM initialization failed, fastcgi address in use #77

Closed
1 task done
tobinstultiens opened this issue Nov 3, 2023 · 7 comments
Closed
1 task done

[BUG] FPM initialization failed, fastcgi address in use #77

tobinstultiens opened this issue Nov 3, 2023 · 7 comments

Comments

@tobinstultiens
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently when running this docker file I will receive the following error in the webpage: File not found.

While when I look at the logs I see these errors.

FPM initialization failed
unable to bind listening socket for address '127.0.0.1:9000': Address in use (98)

This is related to a nginx configuration not being set correctly / not being able to change it with the current setup.
If I go to config/grocy/nginx/site-confs/default.conf
I see the following port set which is causing the issues.
image

Expected Behavior

I would expect grocy to launch when going to the webpage.

Steps To Reproduce

  1. Setup the docker file.
  2. Have a program running that is using the 9000 port. (Honestly nothing is running at that port for me but I'm still receiving the error.)
  3. ???
  4. Profit

Environment

- OS: Arch 6.4.12-arch
- How docker service was installed: Pacman

CPU architecture

x86-64

Docker creation

---
- vars:
    service: "grocy"
    labels:
    - key: "com.centurylinklabs.watchtower.enable"
      value: "true"
    - key: "traefik.enable"
      value: "true"
    - key: "traefik.http.routers.{{ service }}.rule"
      value: "Host(`{{ service }}.{{ DOMAIN }}`)"
    - key: "traefik.http.routers.{{ service }}.service"
      value: "{{ service }}"
    - key: "traefik.http.routers.{{ service }}.entrypoints"
      value: "https"
    - key: "traefik.http.routers.{{ service }}.tls"
      value: "true"
    - key: "traefik.http.routers.{{ service }}.tls.certresolver"
      value: "letsencrypt"
    - key: "traefik.http.services.{{ service }}.loadbalancer.server.port"
      value: "80"

  hosts: all
  vars_files: 
    - ../vars/vars.yml
    - ../vars/vault.yml

  tasks:
    - name: Start grocy
      docker_container:
        image: linuxserver/grocy
        name: "{{ service }}"
        env:
          PUID: "1000"
          PGID: "1000"
          TZ: Europe/Amsterdam
        volumes:
          - "{{ docker_config_dir }}/{{ service }}:/config"
        restart_policy: unless-stopped
        network_mode: container:vpn
        labels: "{{ labels | items2dict}}"

Container logs

[03-Nov-2023 20:25:58] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Add
ress in use (98)
[03-Nov-2023 20:25:58] ERROR: FPM initialization failed
[03-Nov-2023 20:25:59] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Add
ress in use (98)
[03-Nov-2023 20:25:59] ERROR: FPM initialization failed
[03-Nov-2023 20:26:00] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Add
ress in use (98)
[03-Nov-2023 20:26:00] ERROR: FPM initialization failed
[03-Nov-2023 20:26:01] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Add
ress in use (98)
[03-Nov-2023 20:26:01] ERROR: FPM initialization failed
[03-Nov-2023 20:26:02] ERROR: unable to bind listening socket for address '127.0.0.1:9000': Add
ress in use (98)
[03-Nov-2023 20:26:02] ERROR: FPM initialization failed
Copy link

github-actions bot commented Nov 3, 2023

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@Roxedus
Copy link
Member

Roxedus commented Nov 3, 2023

network_mode: container:vpn this is the culprit. We dont support routing containers trough other containers.

@aptalca
Copy link
Member

aptalca commented Nov 3, 2023

network_mode: container:vpn

You're telling grocy to use another container's network stack. Something else is bound to port 9000 in that network, perhaps yet another container using that one's network stack.

@tobinstultiens
Copy link
Author

Ah yes that would resolve it. Maybe a follow up question are there plans or will it ever be possible to manage these values?

@Roxedus
Copy link
Member

Roxedus commented Nov 3, 2023

No, it will complicate the codebase a lot for a very niche type of setup.

@Roxedus Roxedus closed this as completed Nov 3, 2023
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Nov 3, 2023
@tobinstultiens
Copy link
Author

Oh, interesting didn't know that was possible with wireguard thanks.

Thanks for the help.

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

No branches or pull requests

3 participants