[GH-ISSUE #193] Auth migration fails if destination folder doesn't exist #58

Closed
opened 2026-03-04 01:34:29 +03:00 by kerem · 5 comments
Owner

Originally created by @wwong on GitHub (Sep 26, 2023).
Original GitHub issue: https://github.com/spr-networks/super/issues/193

When upgrading from an older version, the /configs/auth doesn't exist, which causes os.Create to error out when attempting to create a new file. Manually running mkdir ./configs/auth seems to have fixed things.

See: github.com/spr-networks/super@901d0dee08/api/code/auth.go (L40)

Originally created by @wwong on GitHub (Sep 26, 2023). Original GitHub issue: https://github.com/spr-networks/super/issues/193 When upgrading from an older version, the `/configs/auth` doesn't exist, which causes `os.Create` to error out when attempting to create a new file. Manually running `mkdir ./configs/auth` seems to have fixed things. See: https://github.com/spr-networks/super/blob/901d0dee089cd8359e0a40654432690ee4f7d247/api/code/auth.go#L40
kerem closed this issue 2026-03-04 01:34:29 +03:00
Author
Owner

@lts-rad commented on GitHub (Sep 26, 2023):

Thanks! Would you remember if this was an update from the UI and your previous version?

If the git repo is up to date, docker compose-up is responsible for making the folder

<!-- gh-comment-id:1735992207 --> @lts-rad commented on GitHub (Sep 26, 2023): Thanks! Would you remember if this was an update from the UI and your previous version? If the git repo is up to date, docker compose-up is responsible for making the folder
Author
Owner

@wwong commented on GitHub (Sep 26, 2023):

I think it was a UI update from a fresh 0.2.7 image to 0.2.22. I had to manually git pull to get the repo updated.

<!-- gh-comment-id:1736389076 --> @wwong commented on GitHub (Sep 26, 2023): I think it was a UI update from a fresh 0.2.7 image to 0.2.22. I had to manually `git pull` to get the repo updated.
Author
Owner

@lts-rad commented on GitHub (Sep 26, 2023):

there was previous a bug where superd would not update the git repo for the spr directory, so i think that fix would address this bug

<!-- gh-comment-id:1736398034 --> @lts-rad commented on GitHub (Sep 26, 2023): there was previous a bug where superd would not update the git repo for the spr directory, so i think that fix would address this bug
Author
Owner

@lts-rad commented on GitHub (Sep 26, 2023):

github.com/spr-networks/super@a21fda3d09

<!-- gh-comment-id:1736400705 --> @lts-rad commented on GitHub (Sep 26, 2023): https://github.com/spr-networks/super/commit/a21fda3d09c92c6d258b2b66191b78751026cdcd
Author
Owner

@lts-rad commented on GitHub (Sep 26, 2023):

sorry you got bit by this @wwong

<!-- gh-comment-id:1736412458 --> @lts-rad commented on GitHub (Sep 26, 2023): sorry you got bit by this @wwong
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/super#58
No description provided.