upgrading to 1.15 problems

191 views
Skip to first unread message

martin....@gmail.com

unread,
Oct 26, 2023, 7:46:23 AM10/26/23
to archivematica
hello, i'm upgrading to 1.15 from 1.14, so first I upgraded ubuntu from 18 to 22.04.3

when installing archivematica-common I get this

 dpkg-reconfigure archivematica-dashboard
/usr/share/archivematica/dashboard /
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f4bb7288740 (most recent call first):
/var/lib/dpkg/info/archivematica-dashboard.postinst: line 5: 48591 Aborted                 (core dumped) /usr/share/archivematica/virtualenvs/archivematica/bin/python manage.py "$@"
/
/usr/share/archivematica/dashboard /
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f6a9d2f9740 (most recent call first):
/var/lib/dpkg/info/archivematica-dashboard.postinst: line 5: 48594 Aborted                 (core dumped) /usr/share/archivematica/virtualenvs/archivematica/bin/python manage.py "$@"
/
/usr/share/archivematica/dashboard /
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f2f0e7ce740 (most recent call first):
/var/lib/dpkg/info/archivematica-dashboard.postinst: line 5: 48596 Aborted                 (core dumped) /usr/share/archivematica/virtualenvs/archivematica/bin/python manage.py "$@"
/
any ideas?

best regards
martin

Amaya Rodrigo

unread,
Oct 26, 2023, 10:03:42 AM10/26/23
to archiv...@googlegroups.com
Hi, Martin

Can you send the output of running:

dpkg -l | grep python

Thanks!


--
You received this message because you are subscribed to the Google Groups "archivematica" group.
To unsubscribe from this group and stop receiving emails from it, send an email to archivematic...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/archivematica/c70f5b3a-2dfb-40df-83fe-ccdfd112fe48n%40googlegroups.com.


--
Amaya M Rodrigo Sastre (she/her/bofh) - sysadmin@artefactual

martin....@gmail.com

unread,
Oct 26, 2023, 10:06:47 AM10/26/23
to archivematica
it seems packages in missing in the virtualenv, where is this local.txt or requirements.txt? cant seem to find it

martin....@gmail.com

unread,
Oct 26, 2023, 10:08:54 AM10/26/23
to archivematica
sorry noticed your reply too late. here is the output https://dumpinen.com/2uwHi9iQE3K

martin....@gmail.com

unread,
Oct 26, 2023, 10:09:36 AM10/26/23
to archivematica

Miguel Angel Medinilla Luque

unread,
Oct 27, 2023, 9:25:23 AM10/27/23
to archivematica
Morning,

We are preparing new debian packages to fix the issues:

* Allow storage service database settings using dbconfig.
* Delete old virtualenv
* Allow to use a different server for databases

We expect to have them published this Monday or Tuesday.

Thanks,

Miguel

martin....@gmail.com

unread,
Oct 27, 2023, 9:59:55 AM10/27/23
to archivematica
thanks! I'll test them as soon as they are published.

best regards
martin

Miguel Angel Medinilla Luque

unread,
Oct 30, 2023, 3:29:46 PM10/30/23
to archivematica
Hi Martin,

I was testing new packages (not published yet) and I could reproduce your issue and found a fix using the current packages in repo. The problem is the order in the document:

https://www.archivematica.org/en/docs/archivematica-1.15/admin-manual/installation-setup/upgrading/upgrading/#upgrade-on-ubuntu-packages

It says:

4) 
  1. Update Archivematica. During the update process you may be asked about updating configuration files. Choose to accept the maintainers versions. You will also be asked about updating the database - say ‘ok’ to each of those steps. If you have set a password for the root MySQL database user, enter it when prompted.

    sudo apt-get install archivematica-common
    sudo apt-get install archivematica-dashboard
    sudo apt-get install archivematica-mcp-server
    sudo apt-get install archivematica-mcp-client
    sudo apt-get install archivematica
But the last package (archivematica) is the one that installs the python virtualenv, so it is required by the others:

So to fix the issue, I did:

apt-get upgrade   # it should update all AM packages in correct order, or at least it works in my test VM
apt-get reinstall archivematica-dashboard # to fix the error you found and run migrations

Please let me know if it fixes the issue or you find a different error.

Regards,

Miguel

Miguel Angel Medinilla Luque

unread,
Oct 30, 2023, 3:42:12 PM10/30/23
to archivematica
Hi again,

If you find any issue after applying the fix just try:

apt-get reinstall archivematica*

sudo service archivematica-storage-service restart
sudo service gearman-job-server restart
sudo service archivematica-mcp-server restart
sudo service archivematica-mcp-client restart
sudo service archivematica-dashboard restart
sudo service nginx restart

To ensure all packages are reinstalled and services restarted in correct order.

Regards,

Miguel

Zhang, Bin

unread,
Nov 7, 2023, 4:48:58 PM11/7/23
to archiv...@googlegroups.com

Hi Miguel,

 

Have the new Debian packages been published?  I am especially interested in the option to use different server for databases and specifying credentials during the installation process, rather than the hard-coded “demo” password.

 

Thanks

 

-Bin

 

Reply all
Reply to author
Forward
0 new messages