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

realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662] #50

Closed
1 task done
KomelT opened this issue Dec 19, 2023 · 3 comments
Closed
1 task done

Comments

@KomelT
Copy link

KomelT commented Dec 19, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I dockercompose up the stack netbox starts outputting in half second interval: realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]

.
.
.
netbox        | 
netbox        | INFO    -  Doc file 'reference/markdown.md' contains an absolute link '/static/netbox_logo.png', it was left as is.
netbox        | INFO    -  Doc file 'reference/markdown.md' contains an absolute link '/static/netbox_logo.png', it was left as is.
netbox        | INFO    -  Documentation built in 19.87 seconds
netbox        | Operations to perform:
netbox        |   Apply all migrations: account, admin, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, wireless
netbox        | Running migrations:
netbox        |   No migrations to apply.
netbox        | Superuser creation skipped. Already exists.
netbox        | [custom-init] No custom files found, skipping...
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]

Expected Behavior

Netbox should boot normaly

Steps To Reproduce

Just docker-compose up my docker compose file

Environment

- OS: Alpine Linux 3.18-default running as LXC container on Proxmox
- Kernel: 5.15.131-1-pve
- How docker service was installed:

echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/community" >> /etc/apk/repositories
apk add --update docker openrc docker-compose

CPU architecture

x86-64

Docker creation

version: '3.4'
services:

  netbox:
    image: lscr.io/linuxserver/netbox:latest
    container_name: netbox
    environment:
      PUID: 1000
      PGID: 1000
      TZ: Europe/Ljubljana
      SUPERUSER_EMAIL: "secret"
      SUPERUSER_PASSWORD: "secret"
      ALLOWED_HOST: "secret"
      DB_HOST: netbox-db
      DB_PORT: 5432
      DB_NAME: netbox
      DB_USER: netbox
      DB_PASSWORD: netbox_password
      REDIS_HOST: netbox-redis
      REDIS_PORT: 6379
      REDIS_PASSWORD: redis_password
      REDIS_DB_TASK: 0
      REDIS_DB_CACHE: 1
    ports:
      - 8000:8000
    volumes:
      - /data/netbox:/config
    restart: unless-stopped

  netbox-db:
    image: postgres:alpine
    container_name: netbox-db
    environment:
      POSTGRES_DB: netbox
      POSTGRES_USER: netbox
      POSTGRES_PASSWORD: netbox_password
    volumes:
      - /data/postgres:/var/lib/postgresql/data
    restart: always

  netbox-redis:
    image: redis:alpine
    container_name: netbox-redis
    user: 1000:1000
    command: redis-server --requirepass redis_password
    volumes:
      - /data/redis:/data
    restart: always

  watchtower:
    image: containrrr/watchtower:latest
    container_name: watchtower
    hostname: "secret"
    environment:
      TZ: "Europe/Ljubljana"
      WATCHTOWER_CLEANUP: "true"
      WATCHTOWER_DEBUG: "true"
      WATCHTOWER_NO_STARTUP_MESSAGE: "true"
      WATCHTOWER_NOTIFICATIONS: "slack"
      WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: "secret"
      WATCHTOWER_SCHEDULE: "0 0 6 * * 0"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    restart: always

Container logs

[+] Running 4/4
 ✔ Container watchtower    Created                                                                                                                   0.0s 
 ✔ Container netbox-db     Created                                                                                                                   0.0s 
 ✔ Container netbox-redis  Created                                                                                                                   0.0s 
 ✔ Container netbox        Recreated                                                                                                                 1.1s 
Attaching to netbox, netbox-db, netbox-redis, watchtower
netbox-redis  | 1:C 19 Dec 2023 06:33:03.086 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
netbox-redis  | 1:C 19 Dec 2023 06:33:03.086 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
netbox-redis  | 1:C 19 Dec 2023 06:33:03.086 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started
netbox-redis  | 1:C 19 Dec 2023 06:33:03.086 * Configuration loaded
netbox-redis  | 1:M 19 Dec 2023 06:33:03.087 * Increased maximum number of open files to 10032 (it was originally set to 1024).
netbox-redis  | 1:M 19 Dec 2023 06:33:03.087 * monotonic clock: POSIX clock_gettime
netbox-redis  | 1:M 19 Dec 2023 06:33:03.088 * Running mode=standalone, port=6379.
netbox-redis  | 1:M 19 Dec 2023 06:33:03.088 * Server initialized
netbox-redis  | 1:M 19 Dec 2023 06:33:03.088 * Ready to accept connections tcp
watchtower    | time="2023-12-19T07:33:03+01:00" level=debug msg="Detected a discord slack wrapper URL, using shoutrrr discord service"
watchtower    | time="2023-12-19T07:33:03+01:00" level=debug msg="Sleeping for a second to ensure the docker api client has been properly initialized."
netbox-db     | 
netbox-db     | PostgreSQL Database directory appears to contain a database; Skipping initialization
netbox-db     | 
netbox-db     | 2023-12-19 06:33:03.704 UTC [1] LOG:  starting PostgreSQL 16.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20231014) 13.2.1 20231014, 64-bit
netbox-db     | 2023-12-19 06:33:03.704 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
netbox-db     | 2023-12-19 06:33:03.704 UTC [1] LOG:  listening on IPv6 address "::", port 5432
netbox-db     | 2023-12-19 06:33:03.718 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
netbox-db     | 2023-12-19 06:33:03.746 UTC [24] LOG:  database system was shut down at 2023-12-19 06:31:59 UTC
netbox-db     | 2023-12-19 06:33:03.764 UTC [1] LOG:  database system is ready to accept connections
watchtower    | time="2023-12-19T07:33:04+01:00" level=debug msg="Making sure everything is sane before starting"
watchtower    | time="2023-12-19T07:33:04+01:00" level=debug msg="Retrieving running containers"
watchtower    | time="2023-12-19T07:33:04+01:00" level=debug msg="There are no additional watchtower containers"
watchtower    | time="2023-12-19T07:33:04+01:00" level=debug msg="Watchtower HTTP API skipped."
watchtower    | time="2023-12-19T07:33:04+01:00" level=info msg="Watchtower 1.7.1" notify=no
watchtower    | time="2023-12-19T07:33:04+01:00" level=info msg="Using notifications: discord" notify=no
watchtower    | time="2023-12-19T07:33:04+01:00" level=info msg="Checking all containers (except explicitly disabled with label)" notify=no
watchtower    | time="2023-12-19T07:33:04+01:00" level=info msg="Scheduling first run: 2023-12-24 06:00:00 +0100 CET" notify=no
watchtower    | time="2023-12-19T07:33:04+01:00" level=info msg="Note that the first check will be performed in 118 hours, 26 minutes, 55 seconds" notify=no
netbox        | [migrations] started
netbox        | [migrations] no migrations found
netbox        | ───────────────────────────────────────
netbox        | 
netbox        |       ██╗     ███████╗██╗ ██████╗ 
netbox        |       ██║     ██╔════╝██║██╔═══██╗
netbox        |       ██║     ███████╗██║██║   ██║
netbox        |       ██║     ╚════██║██║██║   ██║
netbox        |       ███████╗███████║██║╚██████╔╝
netbox        |       ╚══════╝╚══════╝╚═╝ ╚═════╝ 
netbox        | 
netbox        |    Brought to you by linuxserver.io
netbox        | ───────────────────────────────────────
netbox        | 
netbox        | To support LSIO projects visit:
netbox        | https://www.linuxserver.io/donate/
netbox        | 
netbox        | ───────────────────────────────────────
netbox        | GID/UID
netbox        | ───────────────────────────────────────
netbox        | 
netbox        | User UID:    1000
netbox        | User GID:    911
netbox        | ───────────────────────────────────────
netbox        | 
netbox        | rm: cannot remove '/app/netbox/netbox/media': Directory not empty
netbox        | Building local documentation
netbox        | INFO    -  DeprecationWarning: 'materialx.emoji.twemoji' is deprecated.
netbox        | Material emoji logic has been officially moved into mkdocs-material
netbox        | version 9.4. Please use Material's 'material.extensions.emoji.twemoji'
netbox        | instead of 'materialx.emoji.twemoji' in your 'mkdocs.yml' file.
netbox        | 
netbox        | 
netbox        | markdown_extensions:
netbox        |   - pymdownx.emoji:
netbox        |       emoji_index: !!python/name:material.extensions.emoji.twemoji
netbox        |       emoji_generator: !!python/name:material.extensions.emoji.to_svg
netbox        | ```
netbox        | 
netbox        | 'mkdocs_material_extensions' is deprecated and will no longer be
netbox        | supported moving forward. This is the last release.
netbox        | 
netbox        |   File "/lsiopy/lib/python3.11/site-packages/materialx/emoji.py", line 118, in twemoji
netbox        |     return _patch_index(options)
netbox        |   File "/lsiopy/lib/python3.11/site-packages/materialx/emoji.py", line 68, in _deprecated_func
netbox        |     warnings.warn(
netbox        | 
netbox        | WARNING -  Material emoji logic has been officially moved into mkdocs-material
netbox        | version 9.4. Please use Material's 'material.extensions.emoji.twemoji'
netbox        | instead of 'materialx.emoji.twemoji' in your 'mkdocs.yml' file.
netbox        | 
netbox        | ```
netbox        | markdown_extensions:
netbox        |   - pymdownx.emoji:
netbox        |       emoji_index: !!python/name:material.extensions.emoji.twemoji
netbox        |       emoji_generator: !!python/name:material.extensions.emoji.to_svg
netbox        | ```
netbox        | 
netbox        | 'mkdocs_material_extensions' is deprecated and will no longer be
netbox        | supported moving forward. This is the last release.
netbox        | 
netbox        | INFO    -  Cleaning site directory
netbox        | INFO    -  Building documentation to directory: /app/netbox/netbox/project-static/docs
netbox        | INFO    -  The following pages exist in the docs directory, but are not included in the "nav" configuration:
netbox        |   - index.md
netbox        | INFO    -  DeprecationWarning: 'materialx.emoji.to_svg' is deprecated.
netbox        | Material emoji logic has been officially moved into mkdocs-material
netbox        | version 9.4. Please use Material's 'material.extensions.emoji.to_svg'
netbox        | instead of 'materialx.emoji.to_svg' in your 'mkdocs.yml' file.
netbox        | 
netbox        | ```
netbox        | markdown_extensions:
netbox        |   - pymdownx.emoji:
netbox        |       emoji_index: !!python/name:material.extensions.emoji.twemoji
netbox        |       emoji_generator: !!python/name:material.extensions.emoji.to_svg
netbox        | ```
netbox        | 
netbox        | 'mkdocs_material_extensions' is deprecated and will no longer be
netbox        | supported moving forward. This is the last release.
netbox        | 
netbox        |   File "/lsiopy/lib/python3.11/site-packages/pymdownx/emoji.py", line 333, in handleMatch
netbox        |     el = self.generator(
netbox        |   File "/lsiopy/lib/python3.11/site-packages/materialx/emoji.py", line 68, in _deprecated_func
netbox        |     warnings.warn(
netbox        | 
netbox        | WARNING -  Material emoji logic has been officially moved into mkdocs-material
netbox        | version 9.4. Please use Material's 'material.extensions.emoji.to_svg'
netbox        | instead of 'materialx.emoji.to_svg' in your 'mkdocs.yml' file.
netbox        | 
netbox        | ```
netbox        | markdown_extensions:
netbox        |   - pymdownx.emoji:
netbox        |       emoji_index: !!python/name:material.extensions.emoji.twemoji
netbox        |       emoji_generator: !!python/name:material.extensions.emoji.to_svg
netbox        | ```
netbox        | 
netbox        | 'mkdocs_material_extensions' is deprecated and will no longer be
netbox        | supported moving forward. This is the last release.
netbox        | 
netbox        | INFO    -  Doc file 'reference/markdown.md' contains an absolute link '/static/netbox_logo.png', it was left as is.
netbox        | INFO    -  Doc file 'reference/markdown.md' contains an absolute link '/static/netbox_logo.png', it was left as is.
netbox        | INFO    -  Documentation built in 19.87 seconds
netbox        | Operations to perform:
netbox        |   Apply all migrations: account, admin, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, wireless
netbox        | Running migrations:
netbox        |   No migrations to apply.
netbox        | Superuser creation skipped. Already exists.
netbox        | [custom-init] No custom files found, skipping...
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
netbox        | realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
Copy link

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

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@LinuxServer-CI LinuxServer-CI closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Mar 18, 2024
Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

2 participants