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

Unable to connect to WebUI when using macvlan #6

Open
PinguCloud opened this issue Jul 22, 2024 · 0 comments
Open

Unable to connect to WebUI when using macvlan #6

PinguCloud opened this issue Jul 22, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@PinguCloud
Copy link

Hey, so this is my compose:

services:
  docking-station:
    image: loolzzz/docking-station
    container_name: docking-station
    restart: unless-stopped
    # environment:
    #   - WEB_PORT=3000
    #   - SERVER_PORT=3001
    # Port mapping is not needed with macvlan
    # ports:
    #  - 3000:3000
    networks:
        macvlan:
          ipv4_address: 192.168.1.125
    volumes:
      - /data/docker/docking-station/config:/config
      - /data/docker/docking-station/data:/data
      - /data/docker/docking-station/logs:/logs
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/localtime:/etc/localtime:ro
      # you should add mount points for each containers' docker-compose file you intend on update using this tool
      # i usually put everything in a single neat folder under
      - /var/lib/docker/volumes/portainer_data/_data/compose:/mnt/compose-files

networks:
  macvlan:
    name: MVLAN-Server
    external: true

And this is the container-log:

[WEB]    ▲ Next.js 14.1.0

[WEB]    - Local:        http://7275c9041d04:3000

[WEB]    - Network:      http://[2a00:6020:4782:3c01::23]:3000

[WEB] 

[WEB]  ✓ Ready in 61ms

[SERVER] INFO     Using path src/app/api/main.py                                         

[SERVER] INFO     Resolved absolute path /app/docking-station-app/src/app/api/main.py    

[SERVER] INFO     Searching for package file structure from directories with __init__.py 

[SERVER]          files                                                                  

[SERVER] INFO     Importing from /app/docking-station-app/src/app                        

[SERVER]                                                                                 

[SERVER]  ╭─ Python package file structure ─╮                                            

[SERVER]  │                                 │                                            

[SERVER]  │  📁 api                         │                                            

[SERVER]  │  ├── 🐍 __init__.py             │                                            

[SERVER]  │  └── 🐍 main.py                 │                                            

[SERVER]  │                                 │                                            

[SERVER]  ╰─────────────────────────────────╯                                            

[SERVER]                                                                                 

[SERVER] INFO     Importing module api.main                                              

[SERVER] INFO     Found importable FastAPI app                                           

[SERVER]                                                                                 

[SERVER]  ╭── Importable FastAPI app ──╮                                                 

[SERVER]  │                            │                                                 

[SERVER]  │  from api.main import app  │                                                 

[SERVER]  │                            │                                                 

[SERVER]  ╰────────────────────────────╯                                                 

[SERVER]                                                                                 

[SERVER] INFO     Using import string api.main:app                                       

[SERVER]                                                                                 

[SERVER]  ╭─────────── FastAPI CLI - Production mode ───────────╮                        

[SERVER]  │                                                     │                        

[SERVER]  │  Serving at: http://0.0.0.0:3001                    │                        

[SERVER]  │                                                     │                        

[SERVER]  │  API docs: http://0.0.0.0:3001/docs                 │                        

[SERVER]  │                                                     │                        

[SERVER]  │  Running in production mode, for development use:   │                        

[SERVER]  │                                                     │                        

[SERVER]  │  fastapi dev                                        │                        

[SERVER]  │                                                     │                        

[SERVER]  ╰─────────────────────────────────────────────────────╯                        

[SERVER]                                                                                 

[SERVER] INFO:     Started server process [17]

[SERVER] INFO:     Waiting for application startup.

[SERVER] INFO:     Application startup complete.

[SERVER] INFO:     Uvicorn running on http://0.0.0.0:3001 (Press CTRL+C to quit)

[AUTO-UPDATER] INFO:     Auto updater is disabled

[AUTO-UPDATER] NODE_ENV=production sleep 5 && python -m src.app.api.auto_updater exited with code 0

docking-station-server.log
docking-station-autoupdater.log

The only obvious thing seems to be that the web service wants to listen to ipv6 (only?) instead of ipv4.

Thanks for having a look! :)

@LooLzzz LooLzzz added the bug Something isn't working label Jul 24, 2024
@LooLzzz LooLzzz added the help wanted Extra attention is needed label Oct 24, 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 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants