Comments (4)
Hey,
I think it because the backed-up data did not get chance to run the require DB migration that makes sure every row has a non-empty value for the access_tokens.sha256
column:
gogs/internal/database/migrations/migrations.go
Lines 55 to 56 in dd49412
There are two possible approaches:
- Run the 0.13.0 version against the database on your old machine once, so it can complete the DB migration. Then backup again and restore.
- Connect to the database on the new machine, and drop the
unique
constraint on theaccess_tokens.sha256
column, restore your backup, run 0.13.0 (which will add back the unique constraint as part of DB migration).
Be noted that approach 2 only solves this specific error you're getting blocked (which, maybe the only one after all, or you may also hit #7687).
from gogs.
I'll see if I can go with the first option. It's a production machine, so I wanted to avoid dealing with the update on it, as we need to move to the new machine anyway.
About #7687, since we use LDAP for logging in, with a few native Gogs accounts, does that mean I would have to go through every non-LDAP account, login without a password and set it up again?
from gogs.
Related Issues (20)
- gogs restore in Docker failure - GOGS_CUSTOM /data/gogs is moved HOT 2
- backup/restore: User.Passwd renamed to .Password between v0.12 and v0.13 - restore fails to restore passwords HOT 1
- Backing up fails due to a missing file HOT 1
- 加载慢 HOT 10
- panic: runtime error: invalid memory address or nil pointer dereference - push commit HOT 4
- how to migrate gogs from sqlite to mariaDB(mysql) ?
- Add riscv64 support
- Database changes in 0.12.11? HOT 1
- Docker gogs started with an error message HOT 3
- Docker gogs cannot be restarted HOT 3
- mention user popover helper
- SSL Certificate error on https://try.gogs.io/ HOT 1
- Use user request 'Host' replace `conf.Server.ExternalURL` in `internal/route/lfs /batch.go`
- Release [VERSION] HOT 2
- klish
- gogs demo site SSL config is wrong and can't be bypassed HOT 1
- gogs restore report: The system cannot move the file to a different disk drive. It's caused by 'rename' file to a different disk drive on Windows Server 2019.
- Error upgrading 0.12.* to 0.13
- Docker container directly copy file migration, causing subsequent submissions to be invisible but can be pulled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gogs.