linuxserver / docker-netbox

GNU General Public License v3.0
79 stars 17 forks source link

[BUG] After update y got realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662] #45

Closed mdepedrof closed 1 year ago

mdepedrof commented 1 year ago

Is there an existing issue for this?

Current Behavior

when i try to deploy with docker compose, i always get the same error and netbox cant start:

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

I don'now what directory doesn't exist but i only use the image from docker hub

Expected Behavior

Start the container and netbox

Steps To Reproduce

  1. Stop the container,
  2. Remove the volume
  3. redeploy the compose
  4. Got the error with uwsgi.ini

Environment

- Virtualization: lxc
- Operating System: Debian GNU/Linux 11 (bullseye)
- Kernel: Linux 5.15.83-1-pve
- Docker: comunity version 20.10.22 
- Compose: version 20.10.22
- Portainer: Comunity 2.12.2

CPU architecture

x86-64

Docker creation

version: "2.1"
services:
  netbox:
    container_name: netbox
    image: linuxserver/netbox:latest
    restart: unless-stopped
    depends_on:
      - postgres
      - redis
    environment:
      - PUID=1000
      - PGID=1000
      - TZ
      - ALLOWED_HOST
      - SUPERUSER_EMAIL
      - SUPERUSER_PASSWORD
      - SUPERUSER_NAME
      - DB_NAME
      - DB_USER
      - DB_PASSWORD
      - DB_HOST
      - DB_PORT
      - REDIS_HOST
      - REDIS_PORT
      - REDIS_DB_TASK
      - REDIS_DB_CACHE
    volumes:
      - netbox-data:/config
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 9000:8000

  # postgres
  postgres:
    container_name: postgres
    image: postgres:14-alpine
    restart: unless-stopped
    environment:
      - POSTGRES_DB
      - POSTGRES_PASSWORD
      - POSTGRES_USER
    volumes:
      - netbox-postgres-data:/var/lib/postgresql/data

  # redis
  redis:
    container_name: redis
    hostname: redis
    image: redis
    restart: unless-stopped
    volumes:
      - netbox-new-redis-data:/data
volumes:
  netbox-data:
    driver: local
  netbox-postgres-data:
    driver: local
  netbox-new-redis-data:
    driver: local

Container logs

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    1000
User gid:    1000
-------------------------------------
rm: cannot remove '/app/netbox/netbox/media': Directory not empty
Operations to perform:
  Apply all migrations: admin, auth, circuits, contenttypes, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, wireless
Running migrations:
  No migrations to apply.
Superuser creation skipped. Already exists.
[custom-init] No custom files found, skipping...
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
realpath() of uwsgi.ini failed: No such file or directory [core/utils.c line 3662]
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

thespad commented 1 year ago

Can't replicate this with a clean install (existing db). We've not changed anything with the image in nearly 2 months, and the last significant upstream version bump was ~3 weeks ago.

image

I assume you are actually setting values for your environment and have just needlessly redacted everything when posting it?

FWIW we don't support deployment with Portainer, and we don't test with LXC, so some combination of the two may be causing your issue.

mdepedrof commented 1 year ago

after the update, all works fine.

I use this value on variables:

ALLOWED_HOST=* DB_HOST=postgres DB_NAME=netbox DB_PASSWORD=**** DB_USER=netbox REDIS_HOST=redis REDIS_PORT=6379 REDIS_DB_TASK=0 REDIS_DB_CACHE=1 REDIS_PASSWORD=***** SUPERUSER_EMAIL=****** SUPERUSER_NAME=admin SUPERUSER_PASSWORD=***** POSTGRES_DB=netbox POSTGRES_PASSWORD=***** POSTGRES_USER=netbox REDIS_PASSWORD=****** TZ=Europe/Madrid

github-actions[bot] commented 1 year ago

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