"permission denied" error executing post-update "Common Steps" for 3.2.6

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

"permission denied" error executing post-update "Common Steps" for 3.2.6

Post by solano1 »

Hello,

Following guide here:
https://docs.mayan-edms.com/releases/3.2.6.html

Under section "Common Steps" where it says...

"Update the supervisord configuration file. Replace the environment variables values show here with your respective settings. This step will refresh the supervisord configuration file with the new queues and the latest recommended layout:"

Code: Select all

sudo MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf
We get:
-bash: /etc/supervisor/conf.d/mayan.conf: Permission denied
file /etc/supervisor/conf.d/mayan.conf is owned by root:root with rw r r permissions (644)

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

Re: "permission denied" error executing post-update "Common Steps" for 3.2.6

Post by solano1 »

Same problem here with Ubuntu 18.04 and 3.2.7 following instructions here:

https://docs.mayan-edms.com/chapters/de ... deployment

crodler
Posts: 1
Joined: Thu Nov 14, 2019 6:48 am

Re: "permission denied" error executing post-update "Common Steps" for 3.2.6

Post by crodler »

create /etc/supervisor/conf.d/mayan.conf by hand and copy text from https://wiki.mayan-edms.com/index.php?t ... deployment. Then restart supervisor.

User avatar
rosarior
Developer
Developer
Posts: 522
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico
Contact:

Re: "permission denied" error executing post-update "Common Steps" for 3.2.6

Post by rosarior »

Try this form, seems not all Linux shells behave the same in regards to redirecting the sudo output:

Code: Select all

sudo sh -c "MAYAN_DATABASE_ENGINE=django.db.backends.postgresql MAYAN_DATABASE_NAME=mayan \
MAYAN_DATABASE_PASSWORD=mayanuserpass MAYAN_DATABASE_USER=mayan \
MAYAN_DATABASE_HOST=127.0.0.1 MAYAN_MEDIA_ROOT=/opt/mayan-edms/media \
/opt/mayan-edms/bin/mayan-edms.py platformtemplate supervisord > /etc/supervisor/conf.d/mayan.conf"

Post Reply