Failed to connect

Asked by Daniel on 2008-05-21

I typed http://localhost:7080/

and it gave me an error sign. I'm using firefox 3 beta 5 in Ubuntu (8.04).

Question information

Language:
English Edit question
Status:
Answered
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Last query:
2008-05-22
Last reply:
2010-09-08
Daniel (danbar) said : #1

Failed to Connect

Firefox can't establish a connection to the server at localhost:7080.

Though the site seems valid, the browser was unable to establish a connection.

    * Could the site be temporarily unavailable? Try again later.
    * Are you unable to browse other sites? Check the computer's network connection.
    * Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing.

Daniel (danbar) said : #2

Sorry now I discovered the webpage.....http://www.schooltool.org/documentation/setting-up-a-development-server/your-development-environment

But there were some problems in the terminal........It got stuck for a long time on:

Reading configuration from /home/daniel/schooltool.stapp2008spring/instance/schooltool.conf
Starting server in PID 9180.
2008-05-21 06:34:59,428 Cannot use kill_thread_limit as ctypes/killthread is not available
serving on http://127.0.0.1:7080

Ignas Mikalajūnas (ignas) said : #3

Is it working now or are you still unable to connect?

Daniel (danbar) said : #4

Yes.

Looking above (cannot use kill_thread_limit as ctypes.....), can I continue somewhere in the terminal maybe I'll be lucky?

Tom Hoffman (tom-hoffman) said : #5

The message above doesn't indicate that the server is "stuck," but that it is running. Did you try using 127.0.0.1 instead of "localhost?" Also, are you using a svn checkout rather than the release debs?

Daniel (danbar) said : #6

What command do I need to write in the terminal to try 127 ....etc ?

Please explain svn checkout and release debs.

Tom Hoffman (tom-hoffman) said : #7

In firefox, try http://127.0.0.1:7080

Also, did you follow these instructions? http://www.schooltool.org/installing-schooltool Those are the released packages.

David Ally (david-ally) said : #8

Schooltool was working perfectly before I installed XAMPP on the same machine and tried connecting with http://localhost for Xampp. Xampp worked but thereafter Schooltool refused to work, I even uninstalled xampp yet schooltool will not work. Please help me out.

Ignas Mikalajūnas (ignas) said : #9

Can you post the contents of your /etc/hosts file?
Try connecting to http://localhost:7080/ to http://127.0.0.1:7080/
Try "ping 127.0.0.1" "ping localhost"

David Ally (david-ally) said : #10

127.0.0.1 localhost
192.168.0.1 ubunSvr710

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Above is the content of /etc/hosts file and ping 127.0.0.1 replied correctly

David Ally (david-ally) said : #11

Hi Ignas,

I can ping 127.0.0.1 and it replies. Below is the content of /etc/hosts file

127.0.0.1 localhost
192.168.0.1 ubunSvr710

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

This problem started after i installed xampp, and u know xampp also use localhost for testing page, so i uninstalled xampp, yet the prolem persist. When I tried to restart schooltool, it says :

 * Restarting SchoolTool-2008... Changing user to schooltool:schooltool (109:120)
No PID file exists in /var/run/schooltool/schooltool-2008.pid
Could not stop daemon; aborting

Please help.

Regards!

David

----- Original Message ----
From: Ignas Mikalajūnas <email address hidden>
To: <email address hidden>
Sent: Tuesday, September 16, 2008 9:43:51 PM
Subject: Re: [Question #33763]: Failed to connect

Question #33763 on SchoolTool changed:
https://answers.launchpad.net/schooltool/+question/33763

Ignas Mikalajūnas requested for more information:
Can you post the contents of your /etc/hosts file?
Try connecting to http://localhost:7080/ to http://127.0.0.1:7080/
Try "ping 127.0.0.1" "ping localhost"

--
You received this question notification because you are a direct
subscriber of the question.

missthom (thompt) said : #12

Dear all,
I just interested Schooltool. I installed schooltool - 2008, it run ok. When the Schooltool -2009 open, I updated Schooltool- 2008 to Schooltool-2009. And then I configure Schooltool view in Vietnamese language. I saw it didnt view very well. I have removed Schooltool and reInstalled it successfully. But when I run http://localhost:7080 it didnt run and view "Failed to Connect, Firefox can't establish a connection to the server at localhost:7080." I tried to run http://127.0.0.1 it view "It works!".

I try many ways but http://localhost:7080 cant work.

Can you help me fix this problems?

Thanks and the best regards,

There are problems starting schooltool after installation, so please try starting it
    /etc/init.d/schooltool-2009 start
and then http://127.0.0.1:7080 should work

merkin (drguru-is-in) said : #14

I have same problem.

Tried: starting it
    /etc/init.d/schooltool-2009 start

no go

Output:

:~$ /etc/init.d/schooltool-2009 start
open: Permission denied
 * Starting SchoolTool 2009... Traceback (most recent call last):
  File "/usr/bin/paster", line 8, in <module>
    load_entry_point('PasteScript==1.6.1.1', 'console_scripts', 'paster')()
  File "/var/lib/python-support/python2.5/paste/script/command.py", line 79, in run
    invoke(command, command_name, options, args[1:])
  File "/var/lib/python-support/python2.5/paste/script/command.py", line 118, in invoke
    exit_code = runner.run(args)
  File "/var/lib/python-support/python2.5/paste/script/command.py", line 213, in run
    result = self.command()
  File "/var/lib/python-support/python2.5/paste/script/serve.py", line 130, in command
    self.options.set_user, self.options.set_group)
  File "/var/lib/python-support/python2.5/paste/script/serve.py", line 454, in change_user_group
    os.setgid(gid)
OSError: [Errno 1] Operation not permitted
open: Permission denied
                                                                         [fail]
open: Permission denied
                                                                         [ OK ]

David Ally (david-ally) said : #15

Yes, permission will be denied like that. You need root access to issue that command. So issue it like this;

sudo  /etc/init.d/schooltool-2009 start

it will work this time.

David

________________________________
From: merkin <email address hidden>
To: <email address hidden>
Sent: Tuesday, June 9, 2009 4:49:02 PM
Subject: Re: [Question #33763]: Failed to connect

Question #33763 on SchoolTool changed:
https://answers.launchpad.net/schooltool/+question/33763

merkin requested for more information:
I have same problem.

Tried: starting it
    /etc/init.d/schooltool-2009 start

no go

Output:

:~$  /etc/init.d/schooltool-2009 start
open: Permission denied
* Starting SchoolTool 2009...                                                  Traceback (most recent call last):
  File "/usr/bin/paster", line 8, in <module>
    load_entry_point('PasteScript==1.6.1.1', 'console_scripts', 'paster')()
  File "/var/lib/python-support/python2.5/paste/script/command.py", line 79, in run
    invoke(command, command_name, options, args[1:])
  File "/var/lib/python-support/python2.5/paste/script/command.py", line 118, in invoke
    exit_code = runner.run(args)
  File "/var/lib/python-support/python2.5/paste/script/command.py", line 213, in run
    result = self.command()
  File "/var/lib/python-support/python2.5/paste/script/serve.py", line 130, in command
    self.options.set_user, self.options.set_group)
  File "/var/lib/python-support/python2.5/paste/script/serve.py", line 454, in change_user_group
    os.setgid(gid)
OSError: [Errno 1] Operation not permitted
open: Permission denied
                                                                        [fail]
open: Permission denied
                                                                        [ OK ]

--
You received this question notification because you are a direct
subscriber of the question.

TTA(OpenERP) (tta-tinyerp) said : #16

tiny@tiny-desktop:/etc/schooltool/schooltool-2009$ sudo /etc/init.d/schooltool-2009 restart
 * Restarting SchoolTool 2009... No PID file exists in /var/run/schooltool/schooltool-2009.pid
Could not stop daemon; aborting

TTA(OpenERP) (tta-tinyerp) said : #17

tiny@tiny-desktop:/etc/schooltool/schooltool-2009$ sudo /etc/init.d/schooltool-2009 restart
 * Restarting SchoolTool 2009... No PID file exists in /var/run/schooltool/schooltool-2009.pid
Could not stop daemon; aborting

please get be back the answer at <email address hidden>

Tom Hoffman (tom-hoffman) said : #18

I'm not sure why you're REstarting. This error is telling you it isn't already running. Can you just start SchoolTool?

Yes, schooltool-2009 script is a bit dumb, you can't restart a service that is not running.

$ sudo /etc/init.d/schooltool-2009 start
should work.

Can you help with this problem?

Provide an answer of your own, or ask Daniel for more information if necessary.

To post a message you must log in.