Latest update of Snappymail fails

My YunoHost server

Hardware: VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / …
YunoHost version: 11.2.27 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no / yes
If yes, please explain:
If your request is related to an app, specify its name and version: Snappymail 2.36.3~ynh4

Description of my issue

Hello all…

I have just accepted an update of Snappymail from 2.36.3~ynh3 to 2.36.3~ynh4

Once complete I tried to go to my Snappymail instance but unfortunately all I get is a blank white screen.

Reverted to the back up for now.

Any help would be fab

Kind regards

Dj

1 Like

Any upgrade logs?

hi
this was the case for me before tonight! Yunohost 11.2.27
No Backup and No logs

the Yunohost system update worked and then the Snappy update too.
Also I remain in the same context of absence of logs for another FirefoxSync application.

same bug like my support question
https://forum.yunohost.org/t/impossible-dinstaller-applications-backup-impossible-pour-dns-non-reconnu-firefoxsync-nextcloud/30680

[FR]
c’etait le cas pour moi avant ce soir ! Yunohost 11.2.27
la mise a jour system de Yunohost a fontionné puis la mise à jour de Snappy également.
Néanmoiins je reste dans le meme contexte d’absence de logs pour un autre application FirefoxSync.

@orhtej2 Sorry Im an idiot…

I had the log clipped up but forgot to paste…

Here we go:

https://paste.yunohost.org/raw/aruzarowil

The log says it was a “SUCCESS” but when you go to the site, it’s just a blank screen. All good once restored to the previous version.

Thanks very much

Dj

Can you try upgrading to testing branch as outlined in the README?

sudo yunohost app upgrade snappymail -u https://github.com/YunoHost-Apps/snappymail_ynh/tree/testing

@orhtej2 Hello…

Did the following:

sudo yunohost app upgrade snappymail -u https://github.com/YunoHost-Apps/snappymail_ynh/tree/testing

Launched the app. Same thing, a blank white screen. Restoring the backup as I type.

Regards

Dj

Are you getting any errors in the devtools console perhaps?

@orhtej2 sorry, that bit is above my pay grade.

Where do I find that…?

Dj

1 Like

I have the same issue.

In the

/var/log/nginx/domain.xyz/domain.xyz-error.log

I have this message:

/var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Utils.php:155
Stack trace:
#0 /var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Config/AbstractConfig.php(315): RainLoop\Utils::saveFile()
#1 /var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Config/Application.php(161): RainLoop\Config\AbstractConfig->Save()
#2 /var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Config/AbstractConfig.php(248): RainLoop\Config\Application->Save()
#3 /var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Config/Application.php(19): RainLoop\Config\AbstractConfig->Load()
#4 /var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Api.php(23): RainLoop\Config\Application->Load()
#5 /var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Service.php(22): RainLoop
2024/08/05 09:57:50 [error] 2328671#2328671: *345928 FastCGI sent in stderr: "PHP message: PHP Warning:  mkdir(): Permission denied in /var/www/snappymail/app/snappymail/v/2.36.4/setup.php on line 82; PHP message: PHP Warning:  file_put_contents(/var/www/snappymail/app/data/_data_/_default_/.htaccess): Failed to open stream: Permission denied in /var/www/snappymail/app/snappymail/v/2.36.4/setup.php on line 83; PHP message: PHP Warning:  mkdir(): Permission denied in /var/www/snappymail/app/snappymail/v/2.36.4/setup.php on line 95; PHP message: PHP Warning:  mkdir(): Permission denied in /var/www/snappymail/app/snappymail/v/2.36.4/setup.php on line 95; PHP message: PHP Warning:  mkdir(): Permission denied in /var/www/snappymail/app/snappymail/v/2.36.4/setup.php on line 95; PHP message: PHP Warning:  mkdir(): Permission denied in /var/www/snappymail/app/snappymail/v/2.36.4/setup.php on line 95; PHP message: PHP Warning:  mkdir(): Permission denied in /var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Utils.php on line 154; PHP message: PHP Fatal error:  Uncaught RuntimeException: Failed to create directory "/var/www/snappymail/app/data/_data_/_default_/configs" in /var/www/snappymail/app/snappymail/v/2.36.4/app/libraries/RainLoop/Utils.php:155
1 Like

Ah, I was too eager with the permissions :confused: Fix incoming at some point in the future.

As a workaround

chown -R :www-data /var/www/snappymail/app/data
chmod -R 750 /var/www/snappymail/app/data
chown -R :snappymail /var/www/snappymail/app/data/_data_
chmod -R 600 /var/www/snappymail/app/data/_data

@orhtej2 Thats fantastic… Thanks very much for your help with this. I know my way around my server pretty well, but I’m at a loss for the real nitty gritty!.

Have a great day
Dj

Perhaps this should be

chmod -R 700 /var/www/snappymail/app/data/_data_

?

2 Likes

:person_shrugging:
I don’t think you need +x, but who knows?

In my configuration

/var/www/snappymail/app/data/_data_/

is a directory so without the x attribute is strange, right?

I also have the same issue, here are my update logs:

https://paste.yunohost.org/raw/icayanuyur

Thank you.

Hi All…

@orhtej2 I did the 4 line fix of permission changes. That didn’t work however, the change of ownership from @lnoferin

chmod -R 700 /var/www/snappymail/app/data/_data_

did the trick…

The new version is now up and running. So for anyone else wanting to do the work around, it’s the folllowing:

chown -R :www-data /var/www/snappymail/app/data
chmod -R 750 /var/www/snappymail/app/data
chown -R :snappymail /var/www/snappymail/app/data/_data_
chmod -R 700 /var/www/snappymail/app/data/_data_

Many thanks to you all, and of course special thanks for making SnappyMail available. Thank you thank you thank you.

Have a great day

Dj

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.