YunoHost-Apps / piwigo_ynh

Piwigo package for YunoHost

Home Page:http://piwigo.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade from 13.8.0~ynh1 to 14.0.0~ynh1 fails

0utl4w opened this issue · comments

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

  • Hardware: VPS bought online (gandi)
  • YunoHost version: 11.2.8.2 (stable)
  • I have access to my server: Through SSH and through the webadmin
  • Using, or trying to install package version/branch: 14.0.0~ynh1
  • If upgrading, current package version: 13.8.0~ynh1

Expected behavior

Upgrade successfull.

Logs

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

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

Nothing? No answer?

yes, a little help could be nice please

@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?

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

same for me

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

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

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...

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

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"

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