Community discussions

MikroTik App
 
User avatar
alejot17
just joined
Topic Author
Posts: 8
Joined: Tue Jun 19, 2007 2:19 pm
Location: Chile
Contact:

/container: Permission denied (13)

Sun Oct 23, 2022 5:51 pm

Hello.

I am using docker container in RB5009UPr+S+ with RouterOS 7.6

Some containers does not start because "Permission denied (13)".

/container envs
add name=phpmyadmin key=PMA_HOST value=172.17.0.4
/container
add remote-image=phpmyadmin:latest interface=veth4 root-dir=disk1/phpmyadmin envlist=phpmyadmin logging=yes

10:41:50 container,info,debug import successful, container 772a7f2f-3e38-4b7f-a365-6fe1767bd26f
10:41:57 container,info,debug [23-Oct-2022 13:41:57] ERROR: failed to open error_log (/proc/self/fd/2): Permission denied (13)
10:41:57 container,info,debug [23-Oct-2022 13:41:57] ERROR: failed to post process the configuration
10:41:57 container,info,debug [23-Oct-2022 13:41:57] ERROR: FPM initialization failed


/container envs
add name=phpmyadmin key=PMA_HOST value=172.17.0.4
/container
add remote-image=phpmyadmin:fpm-alpine interface=veth4 root-dir=disk1/phpmyadmin envlist=phpmyadmin logging=yes

10:31:10 container,info,debug import successful, container 9ac4440a-4dd7-402a-9856-2d945b4ee175
10:31:28 container,info,debug AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.5. Set the 'ServerName' directive globally to suppress this
message
10:31:28 container,info,debug (13)Permission denied: AH00091: apache2: could not open error log file /var/log/apache2/error.log.
10:31:28 container,info,debug AH00015: Unable to open logs


It also happens with these cotainers:
* openspeedtest/latest:latest
* httpd:latest
/container/add remote-image=openspeedtest/latest:latest logging=yes interface=veth3 root-dir=disk1/openspeedtest

/container/add remote-image=httpd:latest logging=yes interface=veth4 root-dir=disk1/httpd

Please, can anyone help me with it.

Regards.
 
User avatar
alejot17
just joined
Topic Author
Posts: 8
Joined: Tue Jun 19, 2007 2:19 pm
Location: Chile
Contact:

Re: /container: Permission denied (13)

Sun Oct 23, 2022 6:45 pm

wordpress is not working:

/container/add remote-image=wordpress:php7.4-apache interface=veth4 root-dir=disk1/wordpress logging=yes

12:41:19 container,info,debug import successful, container 34429066-3c6a-4198-a04f-aebf2c64a348
12:41:38 container,info,debug WordPress not found in /var/www/html - copying now...
12:41:49 container,info,debug Complete! WordPress has been successfully copied to /var/www/html
12:41:51 container,info,debug AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.5. Set the 'ServerName' directive globally to suppress this
message
12:41:51 container,info,debug (13)Permission denied: AH00091: apache2: could not open error log file /var/log/apache2/error.log.
12:41:51 container,info,debug AH00015: Unable to open logs



Regards.
 
elbob2002
Member Candidate
Member Candidate
Posts: 252
Joined: Tue May 15, 2018 8:15 pm
Location: Ireland

Re: /container: Permission denied (13)

Mon Oct 24, 2022 2:02 am

Disk1 one is attached storage I presume - is it formatted as Ext4?

Edit - just tried on a CHR and I get the same permissions errors. Are there any variables that should be set? Any mountpoints according to the image documentation?
 
tangent
Forum Guru
Forum Guru
Posts: 1330
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: /container: Permission denied (13)

Mon Oct 24, 2022 4:27 am

apache2: could not open error log file /var/log/apache2/error.log.
12:41:51 container,info,debug AH00015: Unable to open logs

So map /var/log/apache2 to a volume the container can write to.
 
kangarie
just joined
Posts: 24
Joined: Mon Apr 17, 2017 7:28 am

Re: /container: Permission denied (13)

Mon Oct 24, 2022 9:06 am

i don't know if this a good solution, but this work
Untitled.png
You do not have the required permissions to view the files attached to this post.
 
elbob2002
Member Candidate
Member Candidate
Posts: 252
Joined: Tue May 15, 2018 8:15 pm
Location: Ireland

Re: /container: Permission denied (13)

Mon Oct 24, 2022 9:44 am

Worked for me on the Openspeedtest container thanks!:
add dst=/var/log/nginx name=openspeed src=/disk1/openspeed/var
 
User avatar
antonsb
MikroTik Support
MikroTik Support
Posts: 385
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Re: /container: Permission denied (13)  Topic is solved

Mon Oct 24, 2022 10:56 am

Thank you for reporting this, we found main cause for this issue, but it will take same time until fix will be available. Currently as workaround please mount /var/log as explained by previous posters.
 
User avatar
antonsb
MikroTik Support
MikroTik Support
Posts: 385
Joined: Sun Jul 24, 2016 3:12 pm
Location: Riga, Latvia

Re: /container: Permission denied (13)

Mon Oct 31, 2022 11:48 am

Fix for this will be available in next upcoming versions

Who is online

Users browsing this forum: teleport and 3 guests