Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problem with running DenyHosts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
galandilias
n00b
n00b


Joined: 03 Jul 2011
Posts: 47

PostPosted: Tue Jun 03, 2014 4:45 pm    Post subject: [SOLVED] Problem with running DenyHosts Reply with quote

I am unable to start DenyHosts on my machine - I am posting debug output from run script below, any ideas? I have no more clues... :/

Code:

/etc/init.d/denyhosts --debug start
 * Caching service dependencies ...

Usage:
  pip <command> [options]

no such option: --jre-home

Usage:
  pip <command> [options]

no such option: --classpath                                                                                                                                                                    [ ok ]
+ _conf_d=/etc/init.d/../conf.d
+ _c=denyhosts
+ '[' -n denyhosts -a denyhosts '!=' denyhosts ']'
+ unset _c
+ sourcex -e /etc/init.d/../conf.d/denyhosts.default
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/denyhosts.default ']'
+ return 1
+ sourcex -e /etc/init.d/../conf.d/denyhosts
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/denyhosts ']'
+ return 1
+ unset _conf_d
+ sourcex -e /etc/rc.conf
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/rc.conf ']'
+ . /etc/rc.conf
++ rc_shell=/sbin/sulogin
++ unicode=YES
++ rc_tty_number=12
+ '[' -n '' ']'
++ command -v cgroup_add_service
+ '[' cgroup_add_service = cgroup_add_service ']'
+ cgroup_add_service /sys/fs/cgroup/openrc
+ for d in '/sys/fs/cgroup/*'
+ '[' -f /sys/fs/cgroup/cpuacct/tasks ']'
+ echo 0
+ for d in '/sys/fs/cgroup/*'
+ '[' -f /sys/fs/cgroup/cpuset/tasks ']'
+ echo 0
+ for d in '/sys/fs/cgroup/*'
+ '[' -f /sys/fs/cgroup/openrc/tasks ']'
+ echo 0
+ openrc_cgroup=/sys/fs/cgroup/openrc
+ '[' -d /sys/fs/cgroup/openrc ']'
+ cgroup=/sys/fs/cgroup/openrc/denyhosts
+ mkdir -p /sys/fs/cgroup/openrc/denyhosts
+ '[' -f /sys/fs/cgroup/openrc/denyhosts/tasks ']'
+ echo 0
+ cgroup_add_service /sys/fs/cgroup/systemd/system
+ for d in '/sys/fs/cgroup/*'
+ '[' -f /sys/fs/cgroup/cpuacct/tasks ']'
+ echo 0
+ for d in '/sys/fs/cgroup/*'
+ '[' -f /sys/fs/cgroup/cpuset/tasks ']'
+ echo 0
+ for d in '/sys/fs/cgroup/*'
+ '[' -f /sys/fs/cgroup/openrc/tasks ']'
+ echo 0
+ openrc_cgroup=/sys/fs/cgroup/openrc
+ '[' -d /sys/fs/cgroup/openrc ']'
+ cgroup=/sys/fs/cgroup/openrc/denyhosts
+ mkdir -p /sys/fs/cgroup/openrc/denyhosts
+ '[' -f /sys/fs/cgroup/openrc/denyhosts/tasks ']'
+ echo 0
++ command -v cgroup_set_limits
+ '[' cgroup_set_limits = cgroup_set_limits ']'
+ cgroup_set_limits
+ local blkio=
+ '[' -n '' ']'
+ local cpu=
+ '[' -n '' ']'
+ local cpuacct=
+ '[' -n '' ']'
+ local cpuset=
+ '[' -n '' ']'
+ local devices=
+ '[' -n '' ']'
+ local memory=
+ '[' -n '' ']'
+ local net_prio=
+ '[' -n '' ']'
+ return 0
+ sourcex /etc/init.d/denyhosts
+ '[' /etc/init.d/denyhosts = -e ']'
+ . /etc/init.d/denyhosts
++ extra_stopped_commands=purge
+ unset _d
+ unset _f
+ '[' -n '' ']'
+ '[' -n start ']'
+ '[' start = depend ']'
+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands' '$extra_stopped_commands'
+ '[' describe = start ']'
+ for _cmd in describe start stop status '${extra_commands:-$opts}' '$extra_started_commands' '$extra_stopped_commands'
+ '[' start = start ']'
++ command -v start
+ '[' start = start ']'
+ yesno
+ '[' -z '' ']'
+ return 1
+ for _cmd in '$extra_stopped_commands'
+ '[' purge = start ']'
+ unset _cmd
+ case $1 in
+ verify_boot
+ '[' '!' -e /run/openrc/softlevel ']'
+ return 0
++ command -v start_pre
+ '[' '' = start_pre ']'
+ start
+ ebegin 'Starting DenyHosts daemon'
 * Starting DenyHosts daemon ...
+ start-stop-daemon --start --exec /usr/bin/denyhosts.py --pidfile /var/run/denyhosts.pid -- --daemon -c /etc/denyhosts.conf

Usage:
  pip <command> [options]

no such option: --daemon
 * start-stop-daemon: failed to start `/usr/bin/denyhosts.py'
+ eend 1                                                                                                                                                                                       [ !! ]
+ exit 1
 * ERROR: denyhosts failed to start


Last edited by galandilias on Thu Jun 05, 2014 6:09 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9394

PostPosted: Wed Jun 04, 2014 1:56 am    Post subject: Reply with quote

It looks like you have set Pip as your Python interpreter, which is not a good idea since Pip is not a Python interpreter, but rather a Python script which is sad excuse for a package manager. I seem to recall seeing this problem within the last few months, where someone reported that all Python scripts were being handled by running pip. If I recall correctly, the problem was traced to having used pip in a way that caused it to overwrite /usr/bin/python (or possibly one of the related links) with a link to run Pip. Have you recently run pip as root?
Back to top
View user's profile Send private message
galandilias
n00b
n00b


Joined: 03 Jul 2011
Posts: 47

PostPosted: Wed Jun 04, 2014 8:52 am    Post subject: Reply with quote

Sure :) thats exactly what I did :) what now? /usr/bin/python leads to python-wrapper which should be okay /usr/bin/python2 leads to python2.7 and /usr/bin/python3 leads to python3.3

calling:
Code:
/usr/bin/python --version


results in:
Code:
Python 2.7.6


which sould also be fine.

Code:
find / -lname pip


gives nothing except errors from /proc ;)
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 9394

PostPosted: Thu Jun 05, 2014 2:09 am    Post subject: Reply with quote

First, never run Pip. Second, you need to repair the damage done by running Pip. Unfortunately, I do not recall the forum thread where this was reported. Normally, I would suggest using equery check to find the bad files, but that relies on a working Python.
Back to top
View user's profile Send private message
galandilias
n00b
n00b


Joined: 03 Jul 2011
Posts: 47

PostPosted: Thu Jun 05, 2014 5:49 am    Post subject: Reply with quote

Got it!

Code:
emerge -1v python-exec


from https://forums.gentoo.org/viewtopic-t-973504-start-0.html solves the problem :), thanks for pointing the path ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum