Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

[Solved]Can't login to web interface after update

Got problems with your B2 or B3? Share and get helped!
Post Reply
mathd
Posts: 3
Joined: 09 Aug 2011, 20:06

[Solved]Can't login to web interface after update

Post by mathd »

I might have screwed up the update.

I wanted to run regular update by running a simple

Code: Select all

apt-get update
apt-get upgrade
reboot
which went trough without any errors. I rebooted and now I can't login to the web interface as any users. I looked at the forums and saw the Major update post. I ran the following commands:

Code: Select all

change_distribution elvin
apt-get -c /etc/apt/bubba-apt.conf -y update
apt-get -c /etc/apt/bubba-apt.conf -y dist-upgrade
reboot
I still can't login to the web interface. I get the web interface fine and the login prompt shows correctly but all my logins give me: Invalid user/password combination.

I don't know where the webadmin does its authentication but I can authenticate trough ssh as a regular user and su to other users without any errors. I can also login with smb.

Things to keep in mind: I changed the mysql root password and webadmin ports in the apache configuration in the past and did not get prompted for mysql password in any of the update commands I ran.

Mathieu
Last edited by mathd on 28 Aug 2011, 14:19, edited 1 time in total.
RandomUsername
Posts: 904
Joined: 09 Oct 2009, 18:49

Re: Can't login to web interface after update

Post by RandomUsername »

Have you tried changing the web admin port back to the default?
mathd
Posts: 3
Joined: 09 Aug 2011, 20:06

Re: Can't login to web interface after update

Post by mathd »

Well the web interface does show up when I type the url with the ports https://b3:4443

I found something of interest in the apache logs :

Code: Select all

FastCGI: server "/usr/share/web-admin/admin/index.php" stderr: PHP Warning:  Unknown: POST Content-Length of 0 bytes exceeds the limit of -2147483648 bytes in Unknown on line 0, referer: https://b3:4443/admin/
This is logged at the very moment I press submit on the web interface.

Code: Select all

root@b3:~# php -i | grep php.ini
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
root@b3:~# 

From /etc/php5/cli/php.ini:

Code: Select all

post_max_size = 10M
upload_max_filesize = 10M
I am not sure where to look next and also what could cause the "limit of -2147483648 bytes". Are there configuration files for FastCGI?

On a side note, I have installed lighttpd on the server and it is running on the default ports. I have seen this FastCGI error on other webapps running on the lighttpd server PRIOR to the update. I no longer think it is related to the update and might just be that I haven't to logged on the web interface in a while.
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: Can't login to web interface after update

Post by Cheeseboy »

I don't know where the webadmin does its authentication...
I find this very annoying too. A failed web interface authentication attempt does not seem to leave any traces whatsoever under /var/log. This should not happen. I think it has been up for discussion before.
mathd
Posts: 3
Joined: 09 Aug 2011, 20:06

Re: Can't login to web interface after update

Post by mathd »

I fixed the problem.

While playing around with piwigo I tried to increase my PHP max upload size and my php max post sizes in the various php.ini files under /etc/php5/ and that is what ended up breaking everything "POST" related.

I changed these to higher values (probably too high) :
post_max_size =
upload_max_filesize =


To fix this I downloaded the installation image b3-install-2.3.zip, extracted the /etc/php5 folder from the /install/payload/bubbaroot-110727-1638.tar.gz file and replaced the one on my b3.

I can now login with out any problems.
Post Reply