Re: [web2py] Trying to run web2py from linux, all ports fail
Yes, I got it thanks. On Friday, 30 January 2015 09:16:51 UTC-5, Michele Comitini wrote: One trick that could somewhat accelerate the release of a port not properly closed by a server is trying to connect to it. for instance: nc 127.0.0.1 8000 and then CTRL-C the trick awakes the network layer that gives a Connection Refused and from then on the port is free again -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Trying to run web2py from linux, all ports fail
One trick that could somewhat accelerate the release of a port not properly closed by a server is trying to connect to it. for instance: nc 127.0.0.1 8000 and then CTRL-C the trick awakes the network layer that gives a Connection Refused and from then on the port is free again -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Trying to run web2py from linux, all ports fail
as root do: # netstat -tanp and see what you get 2015-01-30 5:28 GMT+01:00 Mirko Scavazzin mscavaz...@gmail.com: *TIME_WAIT** is the state that typically ties up the port for several minutes after the process has completed.*The length of the associated timeout varies on different operating systems, and may be dynamic on some operating systems, however typical values are in the range of one to four minutes. HTH Le 30 janv. 2015 05:16, Aydin S hsofl...@gmail.com a écrit : Hi, I'm trying to run web2py from linux. However, it fails with this error: ERROR:Rocket.Errors.Port8000:Socket hostname:8000 in use by other process and it won't share. WARNING:Rocket.Errors.Port8000:Listener started when not ready. I have tried various ports like 8001, and it fails still. There is no other process using these ports. By the way, this does not happen in windows. I searched in the group for this problem and saw some posts but no help from those. Any help or advice is appreciated. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Trying to run web2py from linux, all ports fail
I did a test, Mirko is right, in linux if web2py is not shut down right it cannot run on any port other than what it initially run with. Other thing was my own error, for public IP I was using -i hostname this did not work. When I put exact IP address number 192.168.0.0 it works. Now the question is, my IP is dynamic, is there any way to run web2py from public IP always without the need to enter the IP address? Web2py it self gets the IP address, is there anyway to use that? sexta-feira, 30 de Janeiro de 2015 às 08:14:48 UTC-5, Aydin S escreveu: I found out what makes the root cause and any suggestion to resolve this is very appreciated: If I run the web2py by local IP, it has no problem with any port. But, if I run the web2py from public IP of machine (192.168.0.0 for example) it gives the error above. And this is limited to linux, in windows it works fine with the public IP. Any idea what's going on? sexta-feira, 30 de Janeiro de 2015 às 08:06:26 UTC-5, Aydin S escreveu: Thanks for the replies. Mirko, do you mean I should wait for couple of minutes and run web2py and it will work? Michele, here is the results of the netstat -tanp PID/Program name tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN 832/sshd tcp0 0 127.0.0.1:3950 0.0.0.0:* LISTEN 819/xrdp-sesman tcp0 0 0.0.0.0:38890.0.0.0:* LISTEN 803/xrdp tcp0 0 192.168..0.0:20 192.168.0.0: ESTABLISHED 1144/0 tcp6 0 0 :::8080 :::* LISTEN 851/apache2 tcp6 0 0 :::80 :::* LISTEN 1/systemd tcp6 0 0 :::22 :::* LISTEN 832/sshd tcp6 0 0 :::3000 :::* LISTEN 1/systemd sexta-feira, 30 de Janeiro de 2015 às 03:15:55 UTC-5, Michele Comitini escreveu: as root do: # netstat -tanp and see what you get 2015-01-30 5:28 GMT+01:00 Mirko Scavazzin mscav...@gmail.com: *TIME_WAIT** is the state that typically ties up the port for several minutes after the process has completed.*The length of the associated timeout varies on different operating systems, and may be dynamic on some operating systems, however typical values are in the range of one to four minutes. HTH Le 30 janv. 2015 05:16, Aydin S hsof...@gmail.com a écrit : Hi, I'm trying to run web2py from linux. However, it fails with this error: ERROR:Rocket.Errors.Port8000:Socket hostname:8000 in use by other process and it won't share. WARNING:Rocket.Errors.Port8000:Listener started when not ready. I have tried various ports like 8001, and it fails still. There is no other process using these ports. By the way, this does not happen in windows. I searched in the group for this problem and saw some posts but no help from those. Any help or advice is appreciated. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Trying to run web2py from linux, all ports fail
Thanks for the replies. Mirko, do you mean I should wait for couple of minutes and run web2py and it will work? Michele, here is the results of the netstat -tanp PID/Program name tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN 832/sshd tcp0 0 127.0.0.1:3950 0.0.0.0:* LISTEN 819/xrdp-sesman tcp0 0 0.0.0.0:38890.0.0.0:* LISTEN 803/xrdp tcp0 0 192.168..0.0:20 192.168.0.0: ESTABLISHED 1144/0 tcp6 0 0 :::8080 :::*LISTEN 851/apache2 tcp6 0 0 :::80 :::*LISTEN 1/systemd tcp6 0 0 :::22 :::*LISTEN 832/sshd tcp6 0 0 :::3000 :::*LISTEN 1/systemd sexta-feira, 30 de Janeiro de 2015 às 03:15:55 UTC-5, Michele Comitini escreveu: as root do: # netstat -tanp and see what you get 2015-01-30 5:28 GMT+01:00 Mirko Scavazzin mscav...@gmail.com javascript:: *TIME_WAIT** is the state that typically ties up the port for several minutes after the process has completed.*The length of the associated timeout varies on different operating systems, and may be dynamic on some operating systems, however typical values are in the range of one to four minutes. HTH Le 30 janv. 2015 05:16, Aydin S hsof...@gmail.com javascript: a écrit : Hi, I'm trying to run web2py from linux. However, it fails with this error: ERROR:Rocket.Errors.Port8000:Socket hostname:8000 in use by other process and it won't share. WARNING:Rocket.Errors.Port8000:Listener started when not ready. I have tried various ports like 8001, and it fails still. There is no other process using these ports. By the way, this does not happen in windows. I searched in the group for this problem and saw some posts but no help from those. Any help or advice is appreciated. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com javascript:. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Trying to run web2py from linux, all ports fail
I found out what makes the root cause and any suggestion to resolve this is very appreciated: If I run the web2py by local IP, it has no problem with any port. But, if I run the web2py from public IP of machine (192.168.0.0 for example) it gives the error above. And this is limited to linux, in windows it works fine with the public IP. Any idea what's going on? sexta-feira, 30 de Janeiro de 2015 às 08:06:26 UTC-5, Aydin S escreveu: Thanks for the replies. Mirko, do you mean I should wait for couple of minutes and run web2py and it will work? Michele, here is the results of the netstat -tanp PID/Program name tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN 832/sshd tcp0 0 127.0.0.1:3950 0.0.0.0:* LISTEN 819/xrdp-sesman tcp0 0 0.0.0.0:38890.0.0.0:* LISTEN 803/xrdp tcp0 0 192.168..0.0:20 192.168.0.0: ESTABLISHED 1144/0 tcp6 0 0 :::8080 :::*LISTEN 851/apache2 tcp6 0 0 :::80 :::*LISTEN 1/systemd tcp6 0 0 :::22 :::*LISTEN 832/sshd tcp6 0 0 :::3000 :::*LISTEN 1/systemd sexta-feira, 30 de Janeiro de 2015 às 03:15:55 UTC-5, Michele Comitini escreveu: as root do: # netstat -tanp and see what you get 2015-01-30 5:28 GMT+01:00 Mirko Scavazzin mscav...@gmail.com: *TIME_WAIT** is the state that typically ties up the port for several minutes after the process has completed.*The length of the associated timeout varies on different operating systems, and may be dynamic on some operating systems, however typical values are in the range of one to four minutes. HTH Le 30 janv. 2015 05:16, Aydin S hsof...@gmail.com a écrit : Hi, I'm trying to run web2py from linux. However, it fails with this error: ERROR:Rocket.Errors.Port8000:Socket hostname:8000 in use by other process and it won't share. WARNING:Rocket.Errors.Port8000:Listener started when not ready. I have tried various ports like 8001, and it fails still. There is no other process using these ports. By the way, this does not happen in windows. I searched in the group for this problem and saw some posts but no help from those. Any help or advice is appreciated. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Trying to run web2py from linux, all ports fail
Hi, I'm trying to run web2py from linux. However, it fails with this error: ERROR:Rocket.Errors.Port8000:Socket hostname:8000 in use by other process and it won't share. WARNING:Rocket.Errors.Port8000:Listener started when not ready. I have tried various ports like 8001, and it fails still. There is no other process using these ports. By the way, this does not happen in windows. I searched in the group for this problem and saw some posts but no help from those. Any help or advice is appreciated. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Trying to run web2py from linux, all ports fail
*TIME_WAIT** is the state that typically ties up the port for several minutes after the process has completed.*The length of the associated timeout varies on different operating systems, and may be dynamic on some operating systems, however typical values are in the range of one to four minutes. HTH Le 30 janv. 2015 05:16, Aydin S hsofl...@gmail.com a écrit : Hi, I'm trying to run web2py from linux. However, it fails with this error: ERROR:Rocket.Errors.Port8000:Socket hostname:8000 in use by other process and it won't share. WARNING:Rocket.Errors.Port8000:Listener started when not ready. I have tried various ports like 8001, and it fails still. There is no other process using these ports. By the way, this does not happen in windows. I searched in the group for this problem and saw some posts but no help from those. Any help or advice is appreciated. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.