Description

This article describes the troubleshooting procedure to resolve the issue of web-management not working on EX-series switches due to access error: errno 13.

Symptoms

Web management fails even after establishing http-session with the switch and the switch logs errno 13 on to httpd.log:

[Error: Can't make temp file /tmp/MPR_37491_383.tmp, errno 13= ]

Solution

Checking the access levels for writing tmp files and setting it up if required.


Explanation and steps to follow:


Error 13 is an access error. When a HTTP session is established on the device, the HTTP service tries to write temp files to the location- /var/jail/tmp . If the process fails to access this folder, you would see the TCP session happening from the httpd.log; but after the three way handshake a TCP FIN is sent out to the client and the connection is closed, resulting in the web browser hanging for a while and logging the error- 'Could not Connect'.


On the switch you can find similar logs:

root> show log httpd.log | last 10

httpServer:2 main New connection from 10.209.240.148 on ifc me0.0 for :80
httpServer:2 main New connection from 10.209.240.148 on ifc me0.0 for :80
default:2 main [Tue Aug 11 11:59:36 2009]
httpServer:2 main New connection from 10.209.240.148 on ifc me0.0 for :80
default:1 main Error: Can't make temp file /tmp/MPR_5579_131.tmp, errno 13
default:1 main Error: Can't create stdio files
default:1 main Error: Can't open CGI output files
httpServer:2 main New connection from 10.209.240.148 on ifc me0.0 for :80
default:1 main Error: Can't make temp file /tmp/MPR_5579_259.tmp, errno 13
default:1 main Error: Can't create stdio files
default:1 main Error: Can't open CGI output files

root>

What to check :

Check for the access level:


root@UO17SPVC01A:RE:2% cd /var/jail
root@:RE:0% ls -ltr
total 12
drwxrwxr-x 2 root wheel 512 Aug 9 17:34 run
drwxrwxr-x 2 root wheel 512 Aug 9 17:57 etc
dr-xr-xr-t 3 root wheel 512 Aug 11 11:37 tmp


Here we see no write access on the tmp .We can change this as shown below:


root@:RE:0% chmod g+w,a+w /var/jail/tmp
root@:RE:0% ls -ltr
total 12
drwxrwxr-x 2 root wheel 512 Aug 9 17:34 run
drwxrwxr-x 2 root wheel 512 Aug 9 17:57 etc
drwxrwxrwt 3 root wheel 512 Aug 11 12:09 tmp


This should resolve the issue. Please contact J-TAC, if the issue persists.