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] apparently breaking changes with v4.0.0-ls195 #54

Closed
1 task done
ovizii opened this issue May 7, 2024 · 5 comments · Fixed by #55
Closed
1 task done

[BUG] apparently breaking changes with v4.0.0-ls195 #54

ovizii opened this issue May 7, 2024 · 5 comments · Fixed by #55
Assignees
Labels
bug Something isn't working

Comments

@ovizii
Copy link

ovizii commented May 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I upgraded from v3.7.8-ls194 to v4.0.0-ls195. Netbox throws an error:

s6-rc: warning: unable to start service init-netbox-config: command exited 1

Expected Behavior

Netbox should start

Steps To Reproduce

Not sure what to say, upgraded from v3.7.8-ls194 to v4.0.0-ls195.

Environment

- OS:Debian Bookworm
- How docker service was installed: from docker's repo:  https://download.docker.com/linux/debian bookworm stable

CPU architecture

x86-64

Docker creation

services:

# https://docs.linuxserver.io/images/docker-netbox
# https://github.com/linuxserver/docker-netbox


  netbox:
    image: lscr.io/linuxserver/netbox:latest
    container_name: netbox
    hostname: netbox
    networks:
      netbox:
        ipv4_address: 192.168.192.102
      traefik_netbox:
      netbox_internal:
    environment:
      - "PUID=1000"
      - "PGID=1000"
      - "TZ=Europe/Berlin"
      - "[email protected]"
      - "SUPERUSER_PASSWORD=secret"
      - "ALLOWED_HOSTS=['netbox.int.dom.tld', 'localhost']"
      - "PREFER_IPV4 =true"
      - "DB_NAME=netbox"
      - "DB_USER=netbox"
      - "DB_PASSWORD=secret"
      - "DB_HOST=netbox-postgresql"
#      - DB_PORT=5432
      - "REDIS_HOST=netbox-redis"
#      - REDIS_PORT=6379
#      - REDIS_PASSWORD=
#      - REDIS_DB_TASK=
#      - REDIS_DB_CACHE=
#      - BASE_PATH= #optional
#      - REMOTE_AUTH_ENABLED= #optional
#      - REMOTE_AUTH_BACKEND= #optional
#      - REMOTE_AUTH_HEADER= #optional
#      - REMOTE_AUTH_AUTO_CREATE_USER= #optional
#      - REMOTE_AUTH_DEFAULT_GROUPS= #optional
#      - REMOTE_AUTH_DEFAULT_PERMISSIONS= #optional
    volumes:
      - ./netbox:/config
#    ports:
#      - 8000:8000
    restart: "no"
    cpus: 1
    mem_limit: 1G
    depends_on:
      netbox-postgresql:
        condition: service_healthy
      netbox-redis:
         condition: service_healthy
    labels:
      # enable Traefik
      - traefik.enable=true
      # Network
      - traefik.docker.network=traefik_netbox
      # Router
      - traefik.http.routers.netbox.tls=true
      - traefik.http.routers.netbox.entrypoints=websecure
      - traefik.http.routers.netbox.rule=Host(`netbox.int.dom.tld`)
      - traefik.http.routers.netbox.middlewares=secHeaders@file,localIPsOnly@file
      - traefik.http.routers.netbox.service=netbox
      # Service
      - traefik.http.services.netbox.loadbalancer.server.port=8000
      - traefik.http.services.netbox.loadbalancer.server.scheme=http
    healthcheck:
      test: nc -z localhost 8000 > /dev/null || exit 1
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 1m00s

Container logs

[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    1000
User GID:    1000
───────────────────────────────────────

Operations to perform:
  Apply all migrations: account, auth, circuits, contenttypes, core, dcim, django_rq, extras, ipam, sessions, social_django, taggit, tenancy, users, virtualization, vpn, wireless
Running migrations:
  No migrations to apply.
Traceback (most recent call last):
  File "/app/netbox/netbox/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/lsiopy/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 413, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/lsiopy/lib/python3.11/site-packages/django/core/management/base.py", line 459, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lsiopy/lib/python3.11/site-packages/django/core/management/commands/shell.py", line 127, in handle
    exec(sys.stdin.read(), globals())
  File "<string>", line 7, in <module>
  File "/lsiopy/lib/python3.11/site-packages/django/db/models/manager.py", line 196, in __get__
    raise AttributeError(
AttributeError: Manager isn't available; 'auth.User' has been swapped for 'users.User'
s6-rc: warning: unable to start service init-netbox-config: command exited 1
Copy link

github-actions bot commented May 7, 2024

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

@sjwk
Copy link

sjwk commented May 8, 2024

Getting exactly the same errors here, which has nerfed our test netbox container

@thespad
Copy link
Member

thespad commented May 8, 2024

We'll have to take a look at the breaking changes in v4 and get the image updated

@thespad thespad self-assigned this May 8, 2024
@thespad thespad added the bug Something isn't working label May 8, 2024
@thespad thespad mentioned this issue May 8, 2024
1 task
@thespad
Copy link
Member

thespad commented May 8, 2024

Please test the PR image from #55 once it has completed building (it'll post the image tag as a comment in the PR).

@sjwk
Copy link

sjwk commented May 8, 2024

Thanks for the speedy fix, can confirm that the image in the PR works - at least as far as successfully starting up and logging in. Will now start delving into it on my test container and see what's new.

@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants