Followed UBUNTU guide: Server Errors and issues updating /dev/stdin permission denied

When things doesn't work as they should.
Post Reply
solano1
Posts: 8
Joined: Tue Jul 02, 2019 11:09 pm

Followed UBUNTU guide: Server Errors and issues updating /dev/stdin permission denied

Post by solano1 » Tue Jul 02, 2019 11:40 pm

Hello,

We followed the guide here:
https://wiki.mayan-edms.com/index.php?t ... untu_18.04

Mayan 3.1.10 was successfully installed and it is working out pretty good. Mostly no issues other than fairly frequent "internal server errors" and "server errors" during login or operations. Again, followed the guide above.

We would like to upgrade to the latest version but it's not clear if you can go directly from 3.1.10 to 3.2.4, or if you are required to incrementally update like 3.1.11, 3.1.12, etc. The only backwards compatibility note I saw was at 3.2.0

Either way... following the update guide (i.e. for 3.1.11) produces an error anyway so we are stuck...

When we execute...

Code: Select all

curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt | sudo -u mayan /opt/mayan-edms/bin/pip uninstall -r /dev/stdin
(as indicated by https://docs.mayan-edms.com/releases/3.1.11.html, for direct installations ... where full /path/to/pip is defined)

We get the following error:
0DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
100 164 100 164 0 0 366 0 --:--:-- --:--:-- --:--:-- 365
WARNING: The directory '/home/rootuser/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
ERROR: Could not open requirements file: [Errno 13] Permission denied: '/dev/stdin'
Any help would be appreciated.

User avatar
rosarior
Posts: 274
Joined: Tue Aug 21, 2018 3:28 am

Re: Followed UBUNTU guide: Server Errors and issues updating /dev/stdin permission denied

Post by rosarior » Wed Jul 10, 2019 7:09 am

While it is always a good idea to upgrade sequentially, upgrades work between minor versions. Upgrades from 3.1.10 to 3.2.5 should work. Micro versions receive only bug fixes and very rarely a new feature (most of the time the feature was required to fix an issue).

We are constantly fine tuning the installation and upgrade guides to reduce the commands to their most minimal version while working on the most amount of installations. Use this updated version of the step:

Code: Select all

sudo -u mayan curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt -o /tmp/removals.txt && sudo -u mayan /opt/mayan-edms/bin/pip uninstall -y -r /tmp/removals.txt

solano1
Posts: 8
Joined: Tue Jul 02, 2019 11:09 pm

Re: Followed UBUNTU guide: Server Errors and issues updating /dev/stdin permission denied

Post by solano1 » Thu Jul 11, 2019 6:14 pm

Thanks... that new command for updating direct installs seems to have resolved the failures.

The next command (to actually update the code base to 3.2.5) would appear to be:

Code: Select all

sudo -u mayan /opt/mayan-edms/bin/pip install --no-cache-dir mayan-edms==3.2.5
Unfortunately the update (to 3.2.6 from 3.1.10) doesn't appear to have resolved the "internal server error" problems we get more than intermittently. We are also unable to upload files (happening before on 3.1.10 as well). I'll create new thread for that so that this thread can be linked to the update process fixes.

Post Reply