Page 1 of 1

Upload of file via web interface

Posted: 07 Nov 2008, 09:10
by trencarbe
Went to the web login page and uploaded a file in 'WEB BASED FILE MANAGER' (chapter 'Storage' in User Guide), that is 45 kb.

THe upload dialogue was up forever, and the admin gui is now not accessible from outside.
The links 'Users Manual', 'Webmail' are working, but not the 'Administration' link. It gives the following error msg after a while:

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at 90.228.213.151 Port 80


Suggestions for which logs to look into??

Posted: 07 Nov 2008, 10:36
by Hape
(are you familiar with linux commandline?)

You'll find the webserverlogs in:

/var/log/apache2/error.log
/var/log/apache2/access.log

might be a start.

Posted: 07 Nov 2008, 15:30
by trencarbe
Found this amongst other info in /var/log/apache2/error.log:

Code: Select all

[Fri Nov 07 22:04:50 2008] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Nov 07 22:04:50 2008] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Fri Nov 07 22:04:51 2008] [notice] FastCGI: process manager initialized (pid 2417)
[Fri Nov 07 22:04:53 2008] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Nov 07 22:04:53 2008] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match server name!?
[Fri Nov 07 22:04:54 2008] [notice] Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c configured -- resuming normal operations
[Fri Nov 07 22:08:18 2008] [error] [client 90.228.213.151] FastCGI: comm with server "/usr/share/web-admin/admin/index.php" aborted: idle timeout (120 sec), referer: http://90.228.213.151/admin/upload/index/home/user1/bla/bla%20bla
I tried the other evening to follow the HowTo on setting up VPN on Bubba (http://forum.excito.net/viewtopic.php?t=1230), but due to lack of time I just completed half of it. Could my newly generated certificates be in conflict with the standard certificates that come with the Bubba??

Posted: 07 Nov 2008, 18:59
by Hape
Certificate would IMHO hinder you only in SSH and HTTPS, only 'complaining' that cert is not valid ("..do you want to continue?..")

You mentioned "from the outside".

Do you mean via WAN interface? or via VPN and LAN?

If using WAN, please first check Bubba's websetup, connected http via LAN, user 'admin',

Network -> Firewall (http://bubba/admin/network/fw)

- Allow SSH from WAN: ?
- Allow WWW from WAN: ?

Are these settings correct?


Next, the line from error.log

Code: Select all

[Fri Nov 07 22:08:18 2008] [error] [client 90.228.213.151] FastCGI: comm with server "/usr/share/web-admin/admin/index.php" aborted: idle timeout (120 sec), referer: http://90.xyz.xyz.xyz/admin/upload/index/home/user1/bla/bla%20bla
You should look into access.log, and find the 'actions' around that same time. Something like this should be there after a successful upload via web-upload from normal user:

Code: Select all

192.168.0.5 - - [07/Nov/2008:23:46:26 +0000] "GET /admin/index.php/login HTTP/1.1" 200 2529 
                                              "" "MozillaFirefox/3.0.3"
192.168.0.5 - - [07/Nov/2008:23:46:29 +0000] "POST /admin/index.php/login HTTP/1.1" 302 - 
                                              "http://bubba/admin/index.php/login" "MozillaFirefox/3.0.3"
192.168.0.5 - - [07/Nov/2008:23:46:30 +0000] "GET /admin/index.php HTTP/1.1" 200 3108 
                                              "http://bubba/admin/index.php/login" "MozillaFirefox/3.0.3"
192.168.0.5 - - [07/Nov/2008:23:46:33 +0000] "GET /admin/filemanager HTTP/1.1" 200 7344 
                                              "http://bubba/admin/index.php" "MozillaFirefox/3.0.3"
192.168.0.5 - - [07/Nov/2008:23:46:34 +0000] "GET /admin/system/application/views/default/_icons/filemanager.gif HTTP/1.1" 200 197 
                                               "http://bubba/admin/filemanager" "MozillaFirefox/3.0.3"
192.168.0.5 - - [07/Nov/2008:23:46:43 +0000] "GET /admin/upload/index/home/hape HTTP/1.1" 200 6491 
                                               "http://bubba/admin/filemanager" "MozillaFirefox/3.0.3"
192.168.0.5 - - [07/Nov/2008:23:47:50 +0000] "GET /admin/upload/progress/upl4914d3636ed86 HTTP/1.1" 200 144 
                                               "http://bubba/admin/upload/index/home/hape" "MozillaFirefox/3.0.3"
Find the place where the error exactly occurred in time and try to continue searching from here.

You could also monitor the PID for FASTCGI, or try to find out to what IP the webinterface (/admin/filemanager) tries to connect to.
It might be that it's looking for an internal IP ?

Have fun ;-)


Hapé


p.s. you'll find the files for web-admin at /usr/share/web-admin/

Posted: 09 Nov 2008, 14:24
by trencarbe
strange, upgraded to the latest image (with flags format=0, partition=0) and the problem is gone.

Will though watch it carefully till the problem appears again! 8)