Mayan update via pip does not appear to have been applied.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Mayan update via pip does not appear to have been applied.

smyth
This post has NOT been accepted by the mailing list yet.
I have run the "pip install -U mayan-edms" command (which appeared to successfully install mayan-edms-2.1.6) and restarted the nginx and supervisor services, but the about page on the server still shows Mayan EDMS (Version 2.1.3).

One of my users also checked a bug that was fixed in 2.1.4, and it is still there.  The  "Fix statistics namespace list display view."  When visiting the /statistics page, we get the error, "Server error  There's been an error. It's been reported to the site administrators via e-mail and should be fixed shortly. Thanks for your patience."

Rerunnig the pip update command suggests mayan-edms is already the latest version:
#pip install -U mayan-edms
Requirement already up-to-date: mayan-edms in /usr/local/lib/python2.7/dist-packages

Any ideas?
Reply | Threaded
Open this post in threaded view
|

Re: Mayan update via pip does not appear to have been applied.

smyth
This post has NOT been accepted by the mailing list yet.
I was looking at the output of the command "pip install -U mayan-edms" and took note of the mayan location:
Requirement already up-to-date: mayan-edms in /usr/local/lib/python2.7/dist-packages

Then I looked at the simlink for mayan:
ls -la /usr/share/mayan-edms/mayan
lrwxrwxrwx 1 www-data www-data 33 Oct 11 10:57 /usr/share/mayan-edms/mayan -> lib/python2.7/site-packages/mayan

It looks like I have installed Mayan twice in two different places maybe?

#ls -la /usr/local/lib/python2.7/dist-packages/mayan
total 56
drwxr-sr-x  5 root staff 4096 Nov 29 09:05 .
drwxrwsr-x 92 root staff 4096 Nov 29 14:21 ..
drwxr-sr-x 35 root staff 4096 Nov 29 09:05 apps
drwxr-sr-x  2 root staff 4096 Nov 29 09:05 bin
-rw-r--r--  1 root staff  333 Nov 29 09:03 celery.py
-rw-r--r--  1 root staff  756 Nov 29 09:05 celery.pyc
-rw-r--r--  1 root staff  348 Nov 29 09:03 __init__.py
-rw-r--r--  1 root staff  601 Nov 29 09:05 __init__.pyc
-rw-r--r--  1 root staff  591 Nov 29 09:03 LICENSE
drwxr-sr-x  3 root staff 4096 Nov 29 09:05 settings
-rw-r--r--  1 root staff  832 Nov 29 09:03 urls.py
-rw-r--r--  1 root staff 1039 Nov 29 09:05 urls.pyc
-rw-r--r--  1 root staff  396 Nov 29 09:03 wsgi.py
-rw-r--r--  1 root staff  601 Nov 29 09:05 wsgi.pyc

#ls -la lib/python2.7/site-packages/mayan
total 60
drwxr-xr-x  6 www-data www-data 4096 Oct 11 10:57 .
drwxr-xr-x 99 www-data www-data 4096 Nov 28 16:07 ..
drwxr-xr-x 35 www-data www-data 4096 Oct 11 10:51 apps
drwxr-xr-x  2 www-data www-data 4096 Oct 11 10:51 bin
-rw-r--r--  1 www-data www-data  333 Oct 11 10:51 celery.py
-rw-r--r--  1 www-data www-data  768 Oct 11 10:51 celery.pyc
-rw-r--r--  1 www-data www-data  348 Oct 11 10:51 __init__.py
-rw-r--r--  1 www-data www-data  607 Oct 11 10:51 __init__.pyc
-rw-r--r--  1 www-data www-data  591 Oct 11 10:51 LICENSE
drwxr-xr-x  5 www-data www-data 4096 Oct 13 12:37 media
drwxr-xr-x  3 www-data www-data 4096 Nov 28 16:30 settings
-rw-r--r--  1 www-data www-data  832 Oct 11 10:51 urls.py
-rw-r--r--  1 www-data www-data 1045 Oct 11 10:51 urls.pyc
-rw-r--r--  1 www-data www-data  396 Oct 11 10:51 wsgi.py
-rw-r--r--  1 www-data www-data  607 Oct 11 10:51 wsgi.pyc

Maybe all I have to do to correct the problem is change the simlink?
Reply | Threaded
Open this post in threaded view
|

Re: Mayan update via pip does not appear to have been applied.

smyth
This post has NOT been accepted by the mailing list yet.
I removed the link and replaced it with a link to the location given by the "pip install -U mayan-edms" command:
rm mayan
ln -s /usr/local/lib/python2.7/dist-packages/mayan .
chown www-data:www-data /usr/share/mayan-edms -R
/etc/init.d/nginx restart && /etc/init.d/supervisor restart

About page still reflects "Mayan EDMS (Version 2.1.3)" and /statistics still gives the "Server error There's been an error." error.

Reply | Threaded
Open this post in threaded view
|

Re: Mayan update via pip does not appear to have been applied.

smyth
This post has NOT been accepted by the mailing list yet.
In reply to this post by smyth
It looks like I have 4 different Mayan installations.  The smyth/venv from when I was testing to make sure Mayan would work on the system.  Then there is a 2.1.3 in site-packages.  Then I think I mistakenly installed 2.1.6 under my user account.  And finally, there is a 2.1.6 in dist-packages.

How may I cleanly remove the two Mayan installations in my user directory?  Is it safe to run pip uninstall mayan-edms as my user?

Any thoughts on the two installation locations for Mayan, site-packages vs dist-packages?

#locate 2.1.3 | grep mayan
/home/smyth/venv/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info
/home/smyth/venv/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/DESCRIPTION.rst
/home/smyth/venv/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/METADATA
/home/smyth/venv/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/RECORD
/home/smyth/venv/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/WHEEL
/home/smyth/venv/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/metadata.json
/home/smyth/venv/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/top_level.txt
/usr/share/mayan-edms/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info
/usr/share/mayan-edms/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/DESCRIPTION.rst
/usr/share/mayan-edms/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/METADATA
/usr/share/mayan-edms/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/RECORD
/usr/share/mayan-edms/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/WHEEL
/usr/share/mayan-edms/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/metadata.json
/usr/share/mayan-edms/lib/python2.7/site-packages/mayan_edms-2.1.3.dist-info/top_level.txt

#locate 2.1.6 | grep mayan
/home/smyth/.local/lib/python2.7/site-packages/mayan_edms-2.1.6.dist-info
/home/smyth/.local/lib/python2.7/site-packages/mayan_edms-2.1.6.dist-info/DESCRIPTION.rst
/home/smyth/.local/lib/python2.7/site-packages/mayan_edms-2.1.6.dist-info/INSTALLER
/home/smyth/.local/lib/python2.7/site-packages/mayan_edms-2.1.6.dist-info/METADATA
/home/smyth/.local/lib/python2.7/site-packages/mayan_edms-2.1.6.dist-info/RECORD
/home/smyth/.local/lib/python2.7/site-packages/mayan_edms-2.1.6.dist-info/WHEEL
/home/smyth/.local/lib/python2.7/site-packages/mayan_edms-2.1.6.dist-info/metadata.json
/home/smyth/.local/lib/python2.7/site-packages/mayan_edms-2.1.6.dist-info/top_level.txt
/usr/local/lib/python2.7/dist-packages/mayan_edms-2.1.6.dist-info
/usr/local/lib/python2.7/dist-packages/mayan_edms-2.1.6.dist-info/DESCRIPTION.rst
/usr/local/lib/python2.7/dist-packages/mayan_edms-2.1.6.dist-info/INSTALLER
/usr/local/lib/python2.7/dist-packages/mayan_edms-2.1.6.dist-info/METADATA
/usr/local/lib/python2.7/dist-packages/mayan_edms-2.1.6.dist-info/RECORD
/usr/local/lib/python2.7/dist-packages/mayan_edms-2.1.6.dist-info/WHEEL
/usr/local/lib/python2.7/dist-packages/mayan_edms-2.1.6.dist-info/metadata.json
/usr/local/lib/python2.7/dist-packages/mayan_edms-2.1.6.dist-info/top_level.txt
Reply | Threaded
Open this post in threaded view
|

Re: Mayan update via pip does not appear to have been applied.

smyth
This post has NOT been accepted by the mailing list yet.
I thought that if I changed pythonpath in /usr/share/mayan-edms/uwsgi.ini from the site-packages/2.1.3 directory to the dist-packages/2.1.6 directory that would point to the upgraded Mayan.  However, this setting loses my config and I am unable to log in.

grep pythonpath /usr/share/mayan-edms/uwsgi.ini
pythonpath = /usr/share/mayan-edms/lib/python2.7/site-packages
#pythonpath = /usr/local/lib/python2.7/dist-packages