-
Notifications
You must be signed in to change notification settings - Fork 102
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
owner and moderator info lost on upgrade to 6.2.20 or 6.2.22 #71
Comments
I just realized that my whole admin_table had been wiped out by the sympa upgrade process, which is why no owners or moderators were found. I restored from a backup and things look good. This seems to happen due to the upgrade script: Empty the admin_table entries and recreate them
Not sure why the list doesn't get restored. My admins are not in a separate included source. |
Really, we shouldn't delete a whole table without safety belt. At the very least, a dump should be stored in case it goes wrong. Unclear why the rebuild doesn't work. @pkissman, what was the previous Sympa versions and which database system and version do you use? Also can you check your log for messages related to the admin_table rebuild event? |
Stefan,
I first encountered this problem when I upgraded from 6.2.18 to 6.2.20, and then again when going from 6.2.20 to 6.2.22 today.
Using mysql (5.5.57-0+deb7u1)
I get the standard notice in my syslog or messages log:
Oct 2 10:52:01 mlinwww02 sympa[9139]: notice Sympa::Upgrade::upgrade() Rebuilding the admin_table...
Unfortunately, I can’t seem to find anything else (mysql, system logging, or sympa logs)
Pjk
From: Stefan Hornburg (Racke) [mailto:[email protected]]
Sent: Monday, October 02, 2017 11:39 AM
To: sympa-community/sympa
Cc: Kissman, Paul (BLC); Mention
Subject: Re: [sympa-community/sympa] owner and moderator info lost on upgrade to 6.2.20 or 6.2.22 (#71)
Really, we shouldn't delete a whole table without safety belt. At the very least, a dump should be stored in case it goes wrong.
Unclear why the rebuild doesn't work. @pkissman<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pkissman&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=wCFnniy7WaZn-hdUpVp-gpaMkzQVpBhtheA3Uciza7s&s=vnVBDvy3fAFYZPT-bYpGCwMeqdX1ncHXrPAYkr0yJMc&e=>, what was the previous Sympa versions and which database system and version do you use?
Also can you check your log for messages related to the admin_table rebuild event?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sympa-2Dcommunity_sympa_issues_71-23issuecomment-2D333573314&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=wCFnniy7WaZn-hdUpVp-gpaMkzQVpBhtheA3Uciza7s&s=K2IALIRDv74CGaiN0B9uaGb2M2ChZDfx_viwOEcIL3I&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AZC1X98ng-2DJKcRDSvo09AkYnjNxMvgQ5ks5soQOlgaJpZM4PqsRG&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=wCFnniy7WaZn-hdUpVp-gpaMkzQVpBhtheA3Uciza7s&s=zDIE0DAUyFy0m8M3ZpNTpmqlu2X--nFW3D4hZrNEGZA&e=>.
|
@pkissman , though i don't know why, list config files might be broken. Restore them by doing;
Then see if owners/moderators are restored in configuration page. |
Thank you for the solution you’ve suggested.
Unfortunately, I think I will have to wait for the next upgrade to give this a try.
I had already restored the admin_table from a backup, which solved the problem until the next upgrade.
I did try to follow your advice. I deleted my config.bin files and took older version of the config files for each list (e.g config.20) and copied to config
I reinstalled sympa over the old installation and restarted.
But since there was no version change, (6.2.22 => 6.2.22) the upgrade wizard didn’t feel the need to do anything. So the admin_table was not cleared. And the problem did not reappear.
pjk
From: IKEDA Soji [mailto:[email protected]]
Sent: Monday, October 02, 2017 8:58 PM
To: sympa-community/sympa
Cc: Kissman, Paul (BLC); Mention
Subject: Re: [sympa-community/sympa] owner and moderator info lost on upgrade to 6.2.20 or 6.2.22 (#71)
@pkissman<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pkissman&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=VMFaoUSOulWFUEfe6h3O5rfkUu-GImm8ypOLZRa4mOA&s=c_-kIpQarOi_g4Tc9m8bA--1h-TguRz9ntovk44NZVA&e=> , though i don't know why, list config files might be broken. Restore them by doing;
1. Stop services, if possible.
2. Go to list directory, and overwrite config file of each list with the recent version of unbroken backup files (named config.number and placed in the same directory as config).
3. Remove config.bin, if any.
4. Start services, if you have stopped.
Then see if owners/moderators are restored in configuration page.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sympa-2Dcommunity_sympa_issues_71-23issuecomment-2D333708057&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=VMFaoUSOulWFUEfe6h3O5rfkUu-GImm8ypOLZRa4mOA&s=ZqVrY89A0X3rWIMGNuRyfEU-hJUZLswe_fYCQZKBe6g&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AZC1X31qDjki5mXbvIf67Mlr85Z5osXpks5soYajgaJpZM4PqsRG&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=VMFaoUSOulWFUEfe6h3O5rfkUu-GImm8ypOLZRa4mOA&s=kX_WVOGsRF1hQQ0JWjhN3JY26bZ7gPymz1CLbyCyyGg&e=>.
|
OK, I can confirm this problem. I'm working on a Sympa migration and it blew away my admin table as well. Too bad really 😠 |
Oh well, so it is just deleting and not adding it back (last log message added locally). |
My analysis:
With that call, Sympa doesn't consult the database but goes into the list_data directories of all the robots and searches for files named "config". If it doesn't find these files, Sympa doesn't put back in the admins into the admin table. Do you use robots in your setup, @pkissman ? |
I see, but why get_lists() omits existing lists? @racke, can you think of anything? |
Hard to tell, insufficient permissions maybe. |
Ok, I'll merge your PR. Let's wait for the next chance of upgrading. |
Stefan,
I just run lists on a single domain. There are no virtual hosts or robot.conf files. Thanks for asking. I'm not sure how that plays into your analysis below.
I tend to do upgrades as a superuser and then change ownership of files back to the sympa user after the install. so anything in the upgrade script should have sufficient permissions to read and write wherever it needs to.
pjk
…________________________________
From: Stefan Hornburg (Racke) <[email protected]>
Sent: Saturday, October 7, 2017 08:55
To: sympa-community/sympa
Cc: Kissman, Paul (BLC); Mention
Subject: Re: [sympa-community/sympa] owner and moderator info lost on upgrade to 6.2.20 or 6.2.22 (#71)
My analysis:
my $all_lists = Sympa::List::get_lists('*', 'reload_config' => 1);
With that call, Sympa doesn't consult the database but goes into the list_data directories of all the robots and searches for files named "config".
If it doesn't find these files, Sympa doesn't put back in the admins into the admin table.
Do you use robots in your setup, @pkissman<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_pkissman&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=sD72cGaI6UvLoEamQfxyRKB5p-miqC-MVMk3pxIfhQc&s=NCZ3XkxE9r86lyoNnF4eyNHe5mxtUZHz3f4Xb5CIigU&e=> ?
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sympa-2Dcommunity_sympa_issues_71-23issuecomment-2D334933258&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=sD72cGaI6UvLoEamQfxyRKB5p-miqC-MVMk3pxIfhQc&s=mlgh7OA_AZECD8fCfDGDAKb0hW2xnEy8waLYQPB2YUw&e=>, or mute the thread<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AZC1X88igX-5FqJHWn5j-5FuzrBFFJVsOfskks5sp3TMgaJpZM4PqsRG&d=DwMFaQ&c=lDF7oMaPKXpkYvev9V-fVahWL0QWnGCCAfCDz1Bns_w&r=MonHUvX27fwQ9bMHWH74_alfWcxUR3Nnj7OGF-5yS48&m=sD72cGaI6UvLoEamQfxyRKB5p-miqC-MVMk3pxIfhQc&s=v_Qlm1J4jkyeqmVl3bS5YxecU1TigpENOfroBbwFvx0&e=>.
|
I encountered this bug upgrading 6.2.22 to 6.2.23b.1. Reloading httpd and sympa services seemed to restore owners/editors. |
Before rebuilding admin_table, won't clear it #71 by ikedas
In my side, the bug was not reproduced upgrading 6.2.23b.1 to 6.2.23b.2. |
After a fix on #11, owners/moderators will no longer removed from database during upgrade. Therefore this issue is closed. |
Having upgraded to either 6.2.20 or 6.2.22, neither sympa nor wwsympa can find existing list owners and moderators. One has to edit the list ownership info and save it again (edit_list_request) in order for list ownership to be found.
Log file example:
notice Sympa::Spindle::ToModeration::_send_confirm_to_editor() Warning: No owner and editor defined at all in list Sympa::List mylist@mydomain
err main::#243 > Sympa::Spindle::spin#92 > Sympa::Spindle::ToModeration::_twist#52 > Sympa::Spindle::ToModeration::_send_confirm_to_editor#147 Impossible to send the moderation request for message Sympa::Message
[email protected] to editors of list Sympa::List mylist@mydomain Neither editor nor owner defined!
Sep 22 12:57:35 mblc sympa_msg[5113]: err main::#243 > Sympa::Spindle::spin#92 > Sympa::Spindle::ToModeration::_twist#55 Failed to send moderation request of Sympa::Message [email protected] from [email protected] for list Sympa::List mylist@mydomainto editor(s)
The text was updated successfully, but these errors were encountered: