Ask Your Question
0

coffeebot webserver open problems

asked 2015-07-21 04:00:13 -0600

Salocin808 gravatar image

Hi!

I am currently using the LAMP stack as explained in the http://learn.turtlebot.com/2015/02/01... tutorial. The goal is to order a coffee (robot driving to specific location) through a chrome extension. I am running the turtlebot_bringup minimal.launch and loaded my map on the turtlebot laptop. I installed the LAMP correctly and entered the public_dns where I had to. Here is my traceback:

nicolas@nicolas-Precision-WorkStation-T3400:~/helloworld/turtlebot$ python coffee_bot.py 
[INFO] [WallTime: 1437468105.504769] wait for the action server to come up
[INFO] [WallTime: 1437468105.787535] Anyone need coffee?
[INFO] [WallTime: 1437468105.808969] Notebook's battery is now: 68%
[INFO] [WallTime: 1437468105.811882] Kobuki's battery is now: 99.0%
[INFO] [WallTime: 1437468129.914613] Notebook's battery is now: 69%
Traceback (most recent call last):
  File "coffee_bot.py", line 298, in <module>
    while(coffebot.deliver_coffee() and not rospy.is_shutdown()):
  File "coffee_bot.py", line 102, in deliver_coffee
    data = json.load(urllib2.urlopen(self.server_public_dns + "/var/www/html/turtlebot-server/coffee_queue.php?pop"))
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 422, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error timed out>

I changed the path from

self.server_public_dns + "/turtlebot-server/coffee_queue.php?pop

to:

self.server_public_dns + "/var/www/html/turtlebot-server/coffee_queue.php?pop

because when ssh into the server, this is where it is located. But either way it is not working. Can anyone help?

Thanks in advance! Cheers

edit retag flag offensive close merge delete

Comments

Without knowing anything about this particular system: servers typically have a DocumentRoot dir, from which they serve pages. All URLs are relative to that root, which here seems to be /var/www/html/turtlebot-server. Adding the full local filesystem path wouldn't seem like a good idea.

gvdhoorn gravatar imagegvdhoorn ( 2015-07-21 06:33:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-07-21 10:24:03 -0600

Salocin808 gravatar image

The problem was that I didn't allow http in my security preferences of the web server ...

edit flag offensive delete link more

Comments

hi, same problem here. can you tell more details about how to solve this probelm?

delta45724 gravatar imagedelta45724 ( 2017-04-07 12:29:59 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-07-21 04:00:13 -0600

Seen: 241 times

Last updated: Jul 21 '15