1 (edited by Marco2G 2021-08-24 01:32:17)

Topic: Cannot log in after Ubuntu 20 upgrade

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 PGSQL
- Deployed with iRedMail Easy or the downloadable installer? Installer, probably
- Linux/BSD distribution name and version: Ubuntu 18.04, now 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL I assume
- Web server (Apache or Nginx): ?
- Manage mail accounts with iRedAdmin-Pro? ?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

So I just went and did a "do-release-upgrade" on my ubuntu vServer. Mistake. It's gotten really slow for one and the other problem is neither the mail client on my phone nr my Thunderbird can access my mail account anymore.

I can still log in via Roundcube with the password (I use 1Password so I am 100% sure that the PW is correct) and check my mail but it no longer works from my phone (where I haven't changed a thing) and I can't setup the account in Thunderbird either. In both instances it tells me there's something wrong with the password.. so I'm expecting authentication issue.

The thing is I would like to try and move the whole iRedMail shebang to my homelab and only keep a mail gateway on the vServer as that thing has 1 vCPU und 1 GB RAM. But for that I would like to pull my mails from the server and I figure it would be MUCH easier to do with a client and then reupload the mails to the new installation than trying to export and import from 0.9.7 to 1.4...

Edit: Just noticed iRedmailAdmin delivers only a server error now. I think I pretty much fucked the installation.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Cannot log in after Ubuntu 20 upgrade

I have tried exporting and importing the vmail contents... that didn't work. Logging into my new setup as postmaster I get an error message now... for my newly created user of the same name as on the old system, I see only the testmail I previously sent, not the thousands of messages I should have imported.


I tried connecting to postgres:
psql: error: FATAL:  Peer authentication failed for user "postgres"

So it seems I also cannot export its config at this point.

Is there ANY way to extract my emails?

3

Re: Cannot log in after Ubuntu 20 upgrade

FYI I am still able to export mail from the old environment via .eml files... just... only one at a time... I read online that there should be a function to export a whole folder as ZIP but I cannot find it in my version...

4 (edited by Marco2G 2021-08-24 05:23:37)

Re: Cannot log in after Ubuntu 20 upgrade

My /var/log/mail.log is full of these:

ug 23 23:00:01 mail roundcube: message repeated 39 times: [ PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438]
Aug 23 23:00:01 mail roundcube: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438
Aug 23 23:00:02 mail roundcube: message repeated 12 times: [ PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438]
Aug 23 23:00:02 mail apache2: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438
Aug 23 23:00:02 mail apache2: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438
Aug 23 23:22:55 mail roundcube: message repeated 30 times: [ PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438]
Aug 23 23:22:55 mail roundcube: PHP Deprecated:  implode(): Passing glue string after array is deprecated. Swap the parameters in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php on line 915
Aug 23 23:22:55 mail roundcube: message repeated 3 times: [ PHP Deprecated:  implode(): Passing glue string after array is deprecated. Swap the parameters in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php on line 915]
Aug 23 23:22:55 mail roundcube: PHP Deprecated:  implode(): Passing glue string after array is deprecated. Swap the parameters in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_contacts.php on line 359
Aug 23 23:22:55 mail roundcube: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438
Aug 23 23:22:55 mail roundcube: PHP Deprecated:  implode(): Passing glue string after array is deprecated. Swap the parameters in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_db.php on line 915
Aug 23 23:22:55 mail roundcube: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438
Aug 23 23:22:55 mail roundcube: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438
Aug 23 23:22:55 mail apache2: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438


I'm guessing I upgraded PHP to a version that is no longer compatible or something.

Seeing as I cannot login through IMAP or POP and roundcube still works, I think the easiest way might be exporting the mails with the zipdownload plugin.. .however that just isn't working... I only get the single item download option even though the plugin is installed and listed in roundcube's about page.

5

Re: Cannot log in after Ubuntu 20 upgrade

Well, this morning postgres doesn't come online anymore...

6

Re: Cannot log in after Ubuntu 20 upgrade

Please check log files and fix the issues one by one.

Marco2G wrote:

Aug 23 23:22:55 mail apache2: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438

You may need to upgrade Roundcube to a newer version which supports PHP version running on 20.04. The latest one is 1.4.11.

7

Re: Cannot log in after Ubuntu 20 upgrade

ZhangHuangbin wrote:

Please check log files and fix the issues one by one.

Marco2G wrote:

Aug 23 23:22:55 mail apache2: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /opt/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube_plugin_api.php on line 438

You may need to upgrade Roundcube to a newer version which supports PHP version running on 20.04. The latest one is 1.4.11.

I've scrapped the old server after managing to extract my mail.

I am currently putting off configuring a smart host instead so I can run iRedMail in my lab environment rather than on a VPS.