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] Upgrade from 0.22.3 to 0.23.0-beta2 loses/forgets routes #2063

Closed
4 tasks done
RichardMore opened this issue Aug 20, 2024 · 6 comments
Closed
4 tasks done

[Bug] Upgrade from 0.22.3 to 0.23.0-beta2 loses/forgets routes #2063

RichardMore opened this issue Aug 20, 2024 · 6 comments
Labels
bug Something isn't working
Milestone

Comments

@RichardMore
Copy link

Is this a support request?

  • This is not a support request

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Routes that are advertised and approved in instance running version 0.22.3 are lost/forgotten after upgrading the config to 0.23.0-beta2. Also re-advertising the routes on the nodes that already shared them do not show up at all, restarting device or tailscale service doesn't seem to have any effect.

Expected Behavior

Routes migrated, show up under routes and other nodes can access them.

Steps To Reproduce

docker-compose.yml

services:
  headscale:
    image: headscale/headscale:0.22.3
    restart: unless-stopped
    networks:
      - traefik
    volumes:
      - ./headscale-config:/etc/headscale
      - ./headscale-data:/var/lib/headscale
    command: headscale serve
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik"
      - "traefik.http.routers.headscale.entrypoints=https"
      - "traefik.http.routers.headscale.rule=Host(`X.Y`)"
      - "traefik.http.routers.headscale.tls.certResolver=ledns"
      - "traefik.http.services.headscale.loadbalancer.server.port=8080"
networks:
  traefik:
    external: true

Advertise routes, check that the show up
Change compose file image: headscale/headscale:v0.23.0-beta2, command: serve
Check routes, and re-advertise

Environment

- OS: Ubuntu 20.04.6 LTS
- Headscale version: 0.22.3 to 0.23.0-beta2
- Tailscale version:  1.70.0

Runtime environment

  • Headscale is behind a (reverse) proxy
  • Headscale runs in a container

Anything else?

No response

@RichardMore RichardMore added the bug Something isn't working label Aug 20, 2024
@kradalby kradalby added this to the v0.23.0 milestone Aug 20, 2024
@kradalby
Copy link
Collaborator

Could you query in the database to see if they are present? Are they dropped or just not migrated/readable?

@RichardMore
Copy link
Author

The routes table is empty, advertising new route is not populating it either.

@kradalby
Copy link
Collaborator

do you have a copy of the database I could have?

@RichardMore
Copy link
Author

I've emailed the upgraded DB to you

@kradalby
Copy link
Collaborator

Do you also have the 0.22.3 backup? that is what I would need for testing.

@kradalby
Copy link
Collaborator

This should be fixed in #2076, some old poor design of migration is biting us and we dont have enough of an overview to cover all cases. Thanks for reporting, would be great if you can test that branch, otherwise I'll merge and do a new beta soon.

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
None yet
Development

No branches or pull requests

2 participants