radziu88
Posts: 5
Joined: Mon Mar 07, 2016 8:47 pm

web.py app autostart socket.error: No socket could be created

Mon Feb 26, 2018 4:53 pm

I am trying to autostart my web. py application .

When i am starting it manualy it works perfect but when i am trying autostart i am getting

Code: Select all

Traceback (most recent call last):
  File "/pres_test/web/serwer.py", line 282, in <module>
    app.run()
  File "/usr/local/lib/python2.7/dist-packages/web/application.py", line 313, in run
    return wsgi.runwsgi(self.wsgifunc(*middleware))
  File "/usr/local/lib/python2.7/dist-packages/web/wsgi.py", line 59, in runwsgi
    return httpserver.runsimple(func, server_addr)
  File "/usr/local/lib/python2.7/dist-packages/web/httpserver.py", line 157, in runsimple
    server.start()
  File "/usr/local/lib/python2.7/dist-packages/web/wsgiserver/__init__.py", line 1753, in start
    raise socket.error(msg)
socket.error: No socket could be created
I am starting it by adding to

Code: Select all

/etc/profile

Code: Select all

sudo python /pres_test/web/serwer.py 3080 &
any ideas why ?

User avatar
rados-dataplicity
Posts: 40
Joined: Wed Aug 03, 2016 11:56 am
Location: UK
Contact: Website Facebook Twitter

Re: web.py app autostart socket.error: No socket could be created

Tue Feb 27, 2018 10:50 am

Try on a different port, for example 8000
I tinker around with Raspberry Pis daily and make sure that people can easily access theirs remotely.

Community outreach @ dataplicity.com

Return to “Python”