YunoHost-Apps / piwigo_ynh

Piwigo package for YunoHost
http://piwigo.org/
GNU General Public License v2.0
6 stars 3 forks source link

Upgrade from 13.8.0~ynh1 to 14.0.0~ynh1 fails #115

Open 0utl4w opened 7 months ago

0utl4w commented 7 months ago

Describe the bug

Upgrade from 13.8.0-ynh1 to 14.0.0-ynh1 through yunohost web interface fails with "WARNING - parse error: Invalid numeric literal at line 1, column 10"

Context

Expected behavior

Upgrade successfull.

Logs

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

isAAAc commented 7 months ago
root@gourzoot:~# yunohost --version
yunohost: 
  repo: stable
  version: 11.2.9.1
yunohost-admin: 
  repo: stable
  version: 11.2.4
moulinette: 
  repo: stable
  version: 11.2
ssowat: 
  repo: stable
  version: 11.2
root@gourzoot:~# yunohost app info piwigo
description: Open source photo gallery for the web
domain_path: gourzoot.org/piwigo
name: Piwigo
version: 13.8.0~ynh1

error here too:
https://paste.yunohost.org/raw/ziregurata

0utl4w commented 6 months ago

Nothing? No answer?

isAAAc commented 6 months ago

yes, a little help could be nice please

0utl4w commented 6 months ago

@isAAAc did you disable the ldap-plugin? I did and maybe that#s the reason but I don't get the ldap-plugin back to work. Any ideas?

europrimus commented 6 months ago

Hello, I have the same issue

WARNING - parse error: Invalid numeric literal at line 1, column 10

I think a WARNING don't need to fully stop the upgrade process, but I'm new to yunohost

my full log : https://paste.yunohost.org/raw/yitiqevoyu

I think the error is that the upgrade scripts try to get the connection token, but piwigo return the database upgrade page

2024-02-03 20:50:42,311: DEBUG - <p>This page proposes to upgrade the database from your old Piwigo version to the new version. The upgrade assistant thinks you are currently running <strong>release 13.0.0</strong> (or equivalent).</p>
2024-02-03 20:50:42,311: DEBUG - <p>Only an administrator can run an upgrade: please sign in below.</p>

so jq (a json parser) can't parse the token

lenybernard commented 5 months ago

same for me

0utl4w commented 5 months ago

Still the same problem with the new update to 14.2.0~ynh1

Find the full log here: https://paste.yunohost.org/raw/dugolujepi

0utl4w commented 5 months ago

This is not a new problem, there are much older open issues here reporting the same problem. But well, they're still open, without reactions or anything...

0utl4w commented 5 months ago

Found this online, will try it and give you an update after: https://forum.yunohost.org/t/update-error-piwigo/14968/4

0utl4w commented 5 months ago

SUCCESS!!! What Aleks wrote in his post worked for me, update successful.

"The fix/workaround was to edit the settings file for piwigo:

nano /etc/yunohost/apps/piwigo/settings.yml

and replace the value for admin_pwd with the actual admin password"

isAAAc commented 5 months ago

because i have some special characters in the passwd, i needed to set simple quote around the passwd too.

upgrade is ok on my side with @alexAubin workaround + simple quotes