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 !

No web interface

Got problems with Bubba? Then this forum is for you.
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

No web interface

Post by Hammer »

The starting web page is gone.

By that I mean when surfing to http://bubba or using the external IP, I get "Internet Explorer cannot display the webpage".

Everything else works fine, including the itunes web page.

Have tried rebooting bubba, restarting ftd.

No bleeding luck.

Any ideas?
pa
Posts: 308
Joined: 06 Dec 2006, 04:38
Location: Sweden
Contact:

Post by pa »

Can you reach the web-interface directly with http://bubba/web-admin?

If not, can you try to ping bubba from the commandline? My interest here is to see if your computer manages to solve the hostname "bubba" to an ip-adress.

/PA
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

No.

Even when using the IP no + "/web-admin" I get this:



Network Error (tcp_error)

A communication error occurred: "Connection refused"
The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

For assistance, contact your network support team.
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Does "normal" file access from within the windows filemanager work? Are you able to access your the home and storage shares from the network? Do you run any firewall on your computer?

/Tor
Co-founder OpenProducts and Ex Excito Developer
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

Yes, I can browse to Bubba with wincmd/explorer and transfer files from the primary computer, no problems.

I can stream from bubba to a second computer (on the LAN).

I can access the iTunes applet and have it sing for me.

Might it have something to do with ports?
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi Hammer,

Just to make sure that the web server is running, could you log in on Bubba and issue:

Code: Select all

ps ax | grep apache
and

Code: Select all

netstat -tl
and return the output.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

6345 pts/0 S+ 0:00 grep apache

AND

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:49152 *:* LISTEN
tcp 0 0 *:imaps *:* LISTEN
tcp 0 0 *:daap *:* LISTEN
tcp 0 0 *:netbios-ssn *:* LISTEN
tcp 0 0 *:imap2 *:* LISTEN
tcp 0 0 *:10000 *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 *:ipp *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:microsoft-ds *:* LISTEN
tcp 0 0 *:222 *:* LISTEN
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Post by Ubi »

Hi

the ps command only works properly when the correct switches are placed:

Code: Select all

ps auxw | grep apache2 | grep -v grep
if that gives nothing try (as root!):

Code: Select all

/etc/init.d/apache2 status
if it says something else than [running], try:

Code: Select all

/etc/init.d/apache2 restart
as your netstat is not listening to port 80, you may probably skip straight to that last command :)

if that does not work, you can test the apache2 config file:

Code: Select all

apache2ctl -t
Ubi
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hammer,

Ubi is right in that apache, the webserver does not seem to run. Strange that a restart of bubba does not fix this.

What happens if you try the last two suggestions from Ubi?

/Tor
Co-founder OpenProducts and Ex Excito Developer
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

First command gives nothing.

Second gives:
"Usage: /etc/init.d/apache2 start|stop|restart|reload|force-reload"

Third gives:
"Forcing reload of web server: Apache2 ... no pidfile found! not running?"

Fourth:
"Syntax OK"

Then I got creative and tried
"/etc/init.d/apache2 reload"
which gave me

"Reloading web server config...httpd not running, trying to start
done."

and while I were at it also the "force-reload" switch.

Here I stopped this mindless hacking and just typed in bubba in my browser, and alas, it works!

Anyone got any idea of why??

Thanks for your help guys!
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi Hammer,

Nice to hear that you can access web-admin again.

It seems like apache somehow either did not start or crashed for some reason. Thats why when you issued "/etc/init.d/apache2 reload" it probably started.

The big question is why a restart of Bubba it self did not solve this. It should have been started at boot. So there is a big risk that when you restart bubba next time, apache wont run.

If that happens, please let us know.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

Ok, now it has happened again.
I have restarted SSH, FTD and Apache2.
I can login to webmin and do everything, but when I go the downloads page the whole web interface freezes.

¤#%&"#¤%"¤&!!!!!

That felt better.

This started when I entered a torrent via my cell phone. (http://torrents.thepiratebay.org/385313 ... PB.torrent)


Here's a little output:

bubba:/home# ps ax | grep apache
13249 pts/0 S+ 0:00 grep apache
bubba:/home# /etc/init.d/apache2 reload
Reloading web server config...httpd not running, trying to start
done.
bubba:/home# ps ax | grep apache
13256 ? Rs 0:07 /usr/sbin/apache2 -k graceful
13258 pts/0 S+ 0:00 grep apache
bubba:/home# /etc/init.d/ftd restart
Restarting Filetransfer daemon: ftdbubba:/home#
bubba:/home# /etc/init.d/ssh restart
Restarting OpenBSD Secure Shell server: sshd.
bubba:/home# ps ax | grep apache
13256 ? Ss 0:10 /usr/sbin/apache2 -k graceful
13259 ? S 0:00 /usr/sbin/apache2 -k graceful
13260 ? S 0:00 /usr/sbin/apache2 -k graceful
13261 ? S 0:00 /usr/sbin/apache2 -k graceful
13262 ? S 0:00 /usr/sbin/apache2 -k graceful
13263 ? S 0:00 /usr/sbin/apache2 -k graceful
13281 pts/0 S+ 0:00 grep apache


Why so many apache2 processes after this sequence??
tor
Posts: 703
Joined: 06 Dec 2006, 12:24
Contact:

Post by tor »

Hi Hammer,

The many apache processes are completely normal. Apache starts that many instances of the web server to be able to serve requests more efficient.

/Tor
Co-founder OpenProducts and Ex Excito Developer
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Post by Ubi »

I think this is actually a general bug in FTD or its interaction with apache. On some torrents, or on some days, I see this exact behaviour. Maybe ftd is waiting for something, but not timing out properly. Often restarting both apache and ftd is the only thing to solve the freeze. Some days everything goes fine. I acknowledge that this inconsistency makes debugging a nightmare, but it is IMHO the single biggest bug in Bubba (Fortunately, a new version is in the works).

BTW1; restarting SSHd is really not useful here. It has nothing to do with this issue.

BTW2: please do not confuse web-admin with webmin (http://www.webmin.com/). They are quite different but both can exist on Bubba.

Ubi
Last edited by Ubi on 23 Oct 2007, 14:23, edited 1 time in total.
Hammer
Posts: 124
Joined: 02 Oct 2007, 13:37

Post by Hammer »

tor: ok, thanks, but got anything to say on the actual problem?

Ubi: Agree on the bug assessment and both your BTWs noted, thanks. I write those up to my infinitesmal knowledge of linux.

It doesn't matter how many times I restart ftd and apache2, it still hangs.
There is nothing in the torrents directory, can there be remnants of this infernal Dexter torrent somewhere else that clogs things up?
Locked