【问题标题】:What is the cause of this error in mini-httpd in an ROS project?ROS项目中mini-httpd出现这个错误的原因是什么?
【发布时间】:2020-06-10 00:34:51
【问题描述】:

错误:

[mini_httpd-2] 进程已经死亡 [pid 6395, exit code 127, cmd /home/santiago/catkin_ws/src/map_nav_manager/scripts/mini-httpd.sh __name:=mini_httpd __log:=/home/santiago/.ros/log/53d109f0-aaae-11ea-83ba-7085c2b46229/mini_httpd-2.log]。 日志文件: /home/santiago/.ros/log/53d109f0-aaae-11ea-83ba-7085c2b46229/mini_httpd-2*.log

mini-httpd.sh 中的代码:

#!/bin/sh 

# Run the mini-httpd webserver on the port defined in the
# mini-httpd.conf file and set the document directory to the current
# directory

PID=`pidof mini-httpd`

if [ ! -z $PID ]; then
    kill $PID
fi

sleep 1

echo "Launching mini-httpd..."

/usr/sbin/mini-httpd -C `rospack find map_nav_manager`/scripts/mini-httpd.conf -d `rospack find map_nav_manager`

mini-httpd.conf 中的代码:

# Example config for mini_httpd.
# Author: Marvin Stark <marv@der-marv.de>

# Uncomment this line for turning on ssl support.
#ssl

# On which host mini_httpd should bind?
host=*

# On which port mini_httpd should listen?
port=8181

# Which user mini_httpd should use?
user=nobody

# Run in chroot mode?
#chroot # yes
nochroot # no

# Working directory of mini_httpd.
#dir=<work_dir>

# We are the web files stored?
# Please change this to your needs.
data_dir=./web/

# CGI path
cgipat=cgi-bin/*

# Which certificate to use?
#certfile=<certfile>

# Which logfile to use?
#logfile=

# Which pidfile to use?
#pidfile=/dev/null

# Which charset to use?
charset=iso-8859-1"

有谁知道可能是什么错误?

【问题讨论】:

    标签: ros mini-httpd


    【解决方案1】:

    日志是怎么说的?

    也许用户nobody没有读取或访问/home/santiago/catkin_ws/src/map_nav_manager/./web/的权限。

    【讨论】:

    • 推测不是一个可接受的答案。请尝试使用您实际知道或已经过测试的信息发布回复。
    猜你喜欢
    • 2020-12-10
    • 1970-01-01
    • 1970-01-01
    • 2018-09-01
    • 2015-04-23
    • 2021-04-09
    • 2016-05-10
    • 1970-01-01
    • 2023-04-07
    相关资源
    最近更新 更多