-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Upgrade to v60.4 fails #96
Comments
This is related to Issue ddavness#96 "Upgrade to v60.4 fails"
debian 11 |
I see, I can kinda reproduce the problem when running
(It's possible that this is caused by a configuration setting somewhere, however MIAB should still just work around this kind of stuff) |
cat: /root/.sqliterc: No such file or directory |
There is nothing in /etc/ either that I can see. This machine's sole purpose is to run the mail server. It was originally a fresh install with only the setup.sh run. There is nothing else on there. |
Alright, let's chalk it up to the mysteries of life (or something like that) |
Yep, something like that. I have really no idea. I am just happy that I was able to debug it and get up and running again fast. Thanks for your fast responses and your great work! |
* Fix bug with quota field detection This is related to Issue #96 "Upgrade to v60.4 fails" * Update setup/mail-users.sh sqlite_schema isn't supported everywhere yet Co-authored-by: David Duque <github@duqued.net>
Fixed on v60.5 |
Today I tried to upgrade from 56 (I think - the last one before the 60 series) and the upgrade failed with this
After chasing this around I found the problem to be in setup/mail-users.sh.
The problem is that the script was trying to add the quota column to the users table when it already existed and this was not properly caught by the script. The elif line did not return correctly that the column already existed:
The quick fix was to comment the line out and re-run the install and I am back up and running, but this is a bug.
Trying to nail this down and come up with a solution, I found that:
sqlite3 /home/user-data/mail/users.sqlite ".schema users"
when run in the terminal works and gives the table structure with the quota field as follows:
But notice how this is in multiple lines! So the inverse grep only filters out the quota line and still returns truthy.
I played around with sqllite3 --line option but could not get it to work. Ultimately it worked replacing:
with
There might be more elegant versions. I am really not a bash expert, but for all it worth I've put that into a pull request here:
#97
The text was updated successfully, but these errors were encountered: