Code Monkey home page Code Monkey logo

Comments (7)

jacroe avatar jacroe commented on July 4, 2024

I've seen other people have this same issue, and I simply haven't seen it yet. I'm not going to say it's unreproducible yet because I'm going to try wiping the Pi and installing from install.sh and maybe that'll produce the bug.

Can you give me an update on this? Is it still occurring?

from pidora.

taylorkline avatar taylorkline commented on July 4, 2024

Yes, I was unfortunately never able to determine the cause.

from pidora.

jacroe avatar jacroe commented on July 4, 2024

You wouldn't happen to know of anything else on your Pi that's already using port 8080 do you?

from pidora.

jacroe avatar jacroe commented on July 4, 2024

It looks like port 8080 is already bound to by some other program/service. You could try using a different port number (anything over 1024) by changing it in cpy.conf and bar-update.py. And then running python hello.py. If it's a port binding issue, that would (read: should) solve it.

from pidora.

taylorkline avatar taylorkline commented on July 4, 2024

I'll try that next week over spring break and report back!

On February 21, 2014 2:01:02 PM Jacob Roeland [email protected] wrote:

It looks like port 8080 is already bound to by some other program/service.
You could try using a different port number (anything over 1024) by
changing it in cpy.conf and bar-update.py. And then running python hello.py. If it's a port binding issue, that would (read: should) solve it.


Reply to this email directly or view it on GitHub:
#48 (comment)

from pidora.

taylorkline avatar taylorkline commented on July 4, 2024

Unfortunately, no luck with that:

[16/Mar/2014:01:16:41] ENGINE Listening for SIGHUP.
[16/Mar/2014:01:16:41] ENGINE Listening for SIGTERM.
[16/Mar/2014:01:16:41] ENGINE Listening for SIGUSR1.
[16/Mar/2014:01:16:41] ENGINE Bus STARTING
[16/Mar/2014:01:16:41] ENGINE Started monitor thread '_TimeoutMonitor'.
192.168.1.124 - - [16/Mar/2014:01:16:55] "GET / HTTP/1.1" 200 1459 "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36"
192.168.1.124 - - [16/Mar/2014:01:16:55] "GET /css/styles.css HTTP/1.1" 200 667 "http://192.168.1.147:8111/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36"
192.168.1.124 - - [16/Mar/2014:01:16:55] "GET /imgs/love.png HTTP/1.1" 200 1037 "http://192.168.1.147:8111/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36"
192.168.1.124 - - [16/Mar/2014:01:16:55] "GET /js/pidora.js HTTP/1.1" 200 6316 "http://192.168.1.147:8111/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36"
192.168.1.124 - - [16/Mar/2014:01:16:55] "GET /imgs/pandora.png HTTP/1.1" 200 82708 "http://192.168.1.147:8111/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36"
192.168.1.124 - - [16/Mar/2014:01:16:55] "GET /imgs/favicon.ico HTTP/1.1" 200 15086 "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36"
192.168.1.124 - - [16/Mar/2014:01:16:58] "GET /api?json=%7B%22method%22%3A%22GetSongInfo%22%2C%22id%22%3A1%7D HTTP/1.1" 200 117 "http://192.168.1.147:8111/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36"
.
.
.
192.168.1.124 - - [16/Mar/2014:01:18:20] "GET /api?json=%7B%22method%22%3A%22GetSongInfo%22%2C%22id%22%3A1%7D HTTP/1.1" 200 117 "http://192.168.1.147:8111/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36"
[16/Mar/2014:01:18:22] ENGINE Error in 'start' listener <bound method Server.start of <cherrypy._cpserver.Server object at 0x14152f0>>
Traceback (most recent call last):
  File "/home/pi/pidora/cherrypy/process/wspbus.py", line 197, in publish
    output.append(listener(*args, **kwargs))
  File "/home/pi/pidora/cherrypy/_cpserver.py", line 151, in start
    ServerAdapter.start(self)
  File "/home/pi/pidora/cherrypy/process/servers.py", line 174, in start
    self.wait()
  File "/home/pi/pidora/cherrypy/process/servers.py", line 214, in wait
    wait_for_occupied_port(host, port)
  File "/home/pi/pidora/cherrypy/process/servers.py", line 427, in wait_for_occupied_port
    raise IOError("Port %r not bound on %r" % (port, host))
IOError: Port 8111 not bound on '0.0.0.0'

[16/Mar/2014:01:18:22] ENGINE Shutting down due to error in start listener:
Traceback (most recent call last):
  File "/home/pi/pidora/cherrypy/process/wspbus.py", line 235, in start
    self.publish('start')
  File "/home/pi/pidora/cherrypy/process/wspbus.py", line 215, in publish
    raise exc
ChannelFailures: IOError("Port 8111 not bound on '0.0.0.0'",)

[16/Mar/2014:01:18:22] ENGINE Bus STOPPING
[16/Mar/2014:01:18:22] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8111)) already shut down
[16/Mar/2014:01:18:22] ENGINE Stopped thread '_TimeoutMonitor'.
[16/Mar/2014:01:18:22] ENGINE Bus STOPPED
[16/Mar/2014:01:18:22] ENGINE Bus EXITING
[16/Mar/2014:01:18:22] ENGINE Bus EXITED

from pidora.

pjz avatar pjz commented on July 4, 2024

I had a similar issue where it wouldn't start at startup because the network stack wasn't fully initialized; I wrote a little start-pidora script that was:

#!/bin/bash
export PATH=${PATH}:/usr/local/bin
while ! ping -c 1 8.8.8.8 >/dev/null 2>&1 ; do
  sleep 1
done
cd /home/pi/pidora
python hello.py >/tmp/pidora.log 2>&1 

Which fixed it for me. YMMV.

from pidora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.