您尚未登录。

#1 2014-04-29 18:51:38

yhylord
会员
注册时间: 2013-11-16
帖子: 84

在/etc/goagent中填入appid无效

# systemctl status -l goagent
● goagent.service - GoAgent Service
   Loaded: loaded (/usr/lib/systemd/system/goagent.service; enabled)
   Active: failed (Result: exit-code) since Tue 2014-04-29 18:47:00 CST; 4s ago
  Process: 2759 ExecStart=/usr/share/goagent/local/goagent (code=exited, status=1/FAILURE)
 Main PID: 2759 (code=exited, status=1/FAILURE)

Apr 29 18:47:00 localhost goagent[2759]: File "/usr/lib/python2.7/ConfigParser.py", line 305, in read
Apr 29 18:47:00 localhost goagent[2759]: self._read(fp, filename)
Apr 29 18:47:00 localhost goagent[2759]: File "/usr/lib/python2.7/ConfigParser.py", line 512, in _read
Apr 29 18:47:00 localhost goagent[2759]: raise MissingSectionHeaderError(fpname, lineno, line)
Apr 29 18:47:00 localhost goagent[2759]: ConfigParser.MissingSectionHeaderError: File contains no section headers.
Apr 29 18:47:00 localhost goagent[2759]: file: /usr/share/goagent/local/goagent.user.ini, line: 1
Apr 29 18:47:00 localhost goagent[2759]: 'appid=my_appid\n'
Apr 29 18:47:00 localhost goagent[2759]: Exception KeyError: KeyError(140553727822896,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
Apr 29 18:47:00 localhost systemd[1]: goagent.service: main process exited, code=exited, status=1/FAILURE
Apr 29 18:47:00 localhost systemd[1]: Unit goagent.service entered failed state.
# cat /etc/goagent
appid=my_appid

按wiki上的说法应该就是在/etc/goagent里面填啊……可是不成功
我现在每次都是改/usr/share/goagent/local/goagent.ini……

离线

#2 2014-04-29 19:01:50

atmouse
会员
注册时间: 2011-08-24
帖子: 701

Re: 在/etc/goagent中填入appid无效

facebook跟youtube,这两个只是被dns污染, 没完全禁掉

离线

#3 2014-04-30 10:25:05

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,917
个人网站

Re: 在/etc/goagent中填入appid无效

配置文件没有写节(section)名。例如:

[gae]
appid = xxx

离线

#4 2014-04-30 11:42:29

atmouse
会员
注册时间: 2011-08-24
帖子: 701

Re: 在/etc/goagent中填入appid无效

仙子眼睛犀利ConfigParser.MissingSectionHeaderError: File contains no section headers.

离线

#5 2014-04-30 13:03:08

yhylord
会员
注册时间: 2013-11-16
帖子: 84

Re: 在/etc/goagent中填入appid无效

百合仙子 说:

配置文件没有写节(section)名。例如:

[gae]
appid = xxx

啊……原来还要写上这个……仙子是厉害。

离线

页脚