Open GannonTdW opened 5 months ago
Just came to say I have the same issue on a fresh install. Have never had Komga installed before this latest version. I do not have the option to claim the server like shown on the Komga documentation by creating a new user.
Screenshot after fresh install on local network
Installed version: 1.10.3~ynh1
Context
Hardware: OrangePi Zero 3 (arm64)
YunoHost version: 11.2.11.3
I have access to my server: Through SSH | through the webadmin | Physical access
Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
Some issue. Seeing that this issue have been a thing for 2 months, I wish something could have been done before I wrecked my setup.
After discussing with other Komga users, it's likely that the database got lost.
Additionnaly they told me Komga haven't used the h2 jdbc connector for years, and that the last version available is outdated.
I don't see this being mentioned as a breaking change in the docs https://komga.org/blog/prepare-v1/
@gregandcin the latest master branch should work (might require java17 which is part of a new pull request). Tested that by installing Komga on a fresh instance.
@GannonTdW anf @Altyrost I was able to reproduce this issue by installing 0.164.0~ynh1 and then upgrading to the latest master version. I am not sure what is happening during the migration, but the user table is being deleted for some reason.
You can recover your original database by doing the following:
SSH into your server
$ sudo su
$ cd /tmp
$ cp /home/yunohost.backup/archives/komga-pre-upgrade1.tar.gz . # you might have a different filename
$ tar -xvzf komga-pre-upgrade1.tar.gz
$ cp apps/komga/backup/opt/yunohost/komga/.komga/database.sqlite /home/yunohost.app/komga/database.sqlite
$ systemctl restart komga
This should apply all migrations and retain your users.
@gregandcin the latest master branch should work (might require java17 which is part of a new pull request). Tested that by installing Komga on a fresh instance.
Tried a new installed from the master branch and I seem to be hitting the same page. Any suggestions for what I might be able to do to fix it? I assume there is just like a bad file somewhere but I wasn't able to find any obvious lingering files after uninstalling before reinstalling
Hello, Same problem for me after an upgrade. I tried to restore my database manually and also an uninstall/reinstall. Anyone have a solution ?
Wow, same issue here.
@navanchauhan Sorry, I completely forgot that I had created this problem.
In the pre-upgrade database, I have my user, but not in the post-upgrade database.
I've tried the commands but I get an “invalid login” error message. I tried to change the user's password with the following command, but same problem.
systemctl stop komga.service
/usr/bin/java -jar /var/www/komga/komga.jar --server.servlet.context-path="/komga/" --komga.config-dir="/home/yunohost.app/komga/" --reset=$myuser --newpassword=$mypassword
# Quit with ctrl+c
systemctl start komga.service
If I try to reinstall everything, I get the connection window right away! After a new installation, I should get the admin creation window. How can I force it to be displayed?
Hello,
I want upgrade Komga 0.164.0~ynh1 to 1.10.3~ynh1, when I try to connect after I have a message " Invalid authentication: Request failed with status code 401 ".
And when I try to execute
/usr/bin/java -jar -Xmx1g /var/www/komga/komga.jar --list-users
; I haveNo users exist yet
Logs
Full log:
Context