Open 7oku opened 5 years ago
Hello, it's a weird issue:
Why is the config.xml being cleared? (although error shows not being able to access it?)
It shouldn't be cleared.
Why it can detect an upgrade to the db is needed, when it cleared the config.xml before?
Because the database contains a version parameter which would be used to check whether it needs to be upgraded (not needed when config is upgraded).
What's behind the "Database checking error"?
It means that the database tables aren't the expected for the current app version. This message shouldn't have been displayed since the upgrade process should have redirected to the upgrade page...
Why is my upgradeKey emtpy?
It should have set it when complained about Upgrade needed
Sorry, I can't figure out what is going on, it seems a permissions issue (not related to the files owner).
Regards
Hi,
I tried the other way exporting a backup from 2.1 and reimporting it to 3.0, but all the settings are missing afterwards and the group assignments are gone. Would be a pain to go through 500+ passwords and reassign everything.
I might install an intermediate syspass plain without docker to see if that works, maybe i can then use the docker container to read the then updated database without performing an upgrade. Will take some time though.
Thanks
Hi,
i'm struggeling migrating a 2.1 docker container to 3.0.4 (on another host). Orientation according to https://doc.syspass.org/en/3.0/updating/v3.html, ignoring the installation steps, as the container should contain everything already.
What I did was:
sysPass/app/config/config.xml
now!)www-data:user
(according to the other files and apache process within docker file)<upgradeKey></upgradeKey>
, which was EMPTY in my config.xmlWhen accessing the page I receive the error in browser: Host has sent invalid response. ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION
Checking the logs I find a lot of these "Context not initialized" exceptions, assuming they are not relevant:
Then it complains not being able to access the config.xml. Permissions are correct, and after the http request the file has been wiped (0 bytes), so it absolutely had write access to it:
Then it notices upgrade is needed, but fails to check the database:
And that's where I end up currently. Any clue what's happening here?