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
"Internal error of module mod_mam has occurred during start" related to origin_id #4210
Comments
I realized I actually don't know if I ever migrated from the "default" to the "new" schema. I was trying to do that, using this page: https://docs.ejabberd.im/admin/configuration/database/#default-and-new-schemas But trying to run that script on mariadb, I get this error:
|
Maybe I didn't understand correctly, but it seems that you are doing three changes at the same time:
And you get some error message that says that a table is corrupted. What of the three changes is relevant here? No idea. What went wrong? No idea. How to solve it? No idea, of course. I recommend you to go back to a state where your database and ejabberd servers work perfectly. And then, decide which one of the three changes you are going to perform first. Apply that change, verify that everything runs smoothly, and only then perform the second configuration change. If something goes wrong and you cannot solve it yourself, then you can ask for help detailing one single problem that you got in one single step. There are more chances that you can get some useful help in that case. |
|
Yes, check the schema of your SQL database, more concretely the ejabberd tables that have a
|
Ok, confirmed I am already running the new schema. So it's purely the new 24.02 schema update that is failing. |
The I assume you had ejabberd 23.04 installed, MySQL database, configured like this: new_sql_schema: true And then you updated ejabberd to 24.02, maybe updated the SQL schema manually (or not), maybe enabled update_sql_schema before starting ejabberd (or not). In any case, right now your configuration says: new_sql_schema: true
update_sql_schema: true For some reason, the DESCRIBE archive; Do you have a SQL table named DESCRIBE schema_version; That table should have a row for each module that ejabberd is managing its SQL table (most of them are in version 1 right now. And there should be a row with SELECT * FROM schema_version; |
Thanks for the quick responses, really appreciated! I have not done any manual update, the release notes said that setting new_sql_schema: true
update_sql_schema: true After starting like this, ejabberd would not be able to start, resulting in the error given above. I proceeded to remove the update line and restart again which is running successfully now.
|
i can reproduce your error message this way:
no idea why you got to that state. solution: revert step 4. |
Hmm, ok setting the version manually in schema_version worked. Strange. I only have one record in that table as well. |
I'm updating my ejabberd from v23.04 to v24.02 and I set the
update_sql_schema: true
variable, and I'm getting this error:The text was updated successfully, but these errors were encountered: