-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
gitea dump -c failed to connect to database: Unknown database type: #12663
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
Comments
@crobarcro how do your DB config in the app.ini looks like? |
|
two things (but this should not solfe the problem - I'll test some things localy ...): |
@crobarcro can cant reproduce, i tried a lot you must have some sort of edgecase setup who is not covered by dump - it's always posible to backup things manually |
I have the same problem. Just upgraded to 1.12.3 from 1.5.0 originally deployed on AWS using Turnkey Linux
This is my app.ini
Otherwise everything else looks fine |
@danielemoroni is your config realy stored in '/home/git/custom/custom/conf/app.ini' ? |
I only get this error when gitea get's a wrong config file to work with |
@danielemoroni @crobarcro make sure you use the same config-file who is used wenn you run gitea normaly!! |
@6543 You're right, it's getting the wrong config file. This simply works
and yes, I do have this in the app.ini
|
#12760 will add a message for the user to check the path to config |
@crobarcro how do you start/run gitea normaly? |
there is a service, so I use
|
@danielemoroni what |
Same for me |
@6543 Sorry, I don't have access to the admin webpage. I'm kind of new to gitea. Is there an equivalent way from the admin CLI or where can I look in the app.ini? |
@danielemoroni your dump works so only @crobarcro has to be "fixed" ... but to get the path of the actual used app.ini, if |
Indeed, it turns out the path to my app.ini was incorrect, as you guessed above. I guess I copied the command from the old server where it worked because the file was actually in that location. So it was a user issue. However, to avoid people like me taking up your time I would suggest you consider issuing a more relevant error message in this case that helps diagnose the problem. EDIT: I see you already plan to do that Thanks for your help! |
@crobarcro happy to help :) and gitea >= 1.12.5 will have this new error message :) |
When I try to backup using the command documented in the official documentation for backup and restore I get the following:
I'm using a mariadb database. I recently migrated to a new server, the command worked fine on the old server.
I'm encountering this issue with gitea 1.12.3
Gitea version 1.12.3 built with GNU Make 4.1, go1.14.6 : bindata, sqlite, sqlite_unlock_notify
This is the same issue as #6393, encountered in an older version, but this issue is marked as closed.
The text was updated successfully, but these errors were encountered: