Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235208 - net-misc/tor-{0.1.2.19-r2,0.2.0.30} fails to run from init script
Summary: net-misc/tor-{0.1.2.19-r2,0.2.0.30} fails to run from init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gustavo Felisberto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-19 18:12 UTC by Jacob Frederick
Modified: 2008-09-03 06:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Frederick 2008-08-19 18:12:01 UTC
Aug 19 18:28:35.637 [warn] Error setting to configured GID: Operation not permitted
Aug 19 18:28:35.637 [warn] Failed to parse/validate config: Problem with User or Group value. See logs for details.

Reproducible: Always

Steps to Reproduce:
1.run "/etc/init.d/tor start" using default torrc from torrc.sample
2.
3.

Actual Results:  
Tor fails to start.

Expected Results:  
remove all instances "--chuid tor" from /etc/init.d/tor
OR
comment/remove "Group tor" from /etc/tor/torrc

Default config or init script should probably be changed to reflect this.

This was from a fresh install of tor-0.1.2.19-r2 and tor-0.2.0.30
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-19 21:23:34 UTC
Please post your `emerge --info' too.
Comment 2 Jacob Frederick 2008-08-19 22:19:43 UTC
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 Intel(R) Core(TM)2 Duo CPU T5250 @ 1.50GHz
Timestamp of tree: Tue, 19 Aug 2008 12:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -fomit-frame-pointer -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/xorg.conf /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -fomit-frame-pointer -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3ds X a52 aac aalib ace acl acpi alsa amr amrr ao apm asf audiofile bash-completion berkdb bidi bl blas bluetooth bonobo branding bzip2 cairo cardbus cdda cddb cdr cdrom cli colordiff cpudetection cracklib crypt css cups curl cvs daap dbus dhcp divx djvu dri dts dv dvb dvd dvdr dvdread dvi enca encode esd fame fasttrack fat ffmpeg flac fortran ftp gaim gdbm ggi gif gimp glitz gmail gmedia gnutils gpm gps gs gsm gstreamer gtk gtk2 gvim hal hbci hpn i8x0 ibam ical iconv icq id3 idn ieee1394 imagemagick imlib ipv6 irda it jack java javascript jbig jpeg jpeg2k kde kqemu lame latex ldap libcaca libnotify libsexy lirc live lm_sensors mad mailwrapper matroska mbrola midi mikmod mjpeg mmx mmxext mod modplug mp3 mp4 mp4live mpeg mpeg2 mplayer msn mtp mudflap musepack nautilus ncurses netmeeting network nfs nls nptl nptlonly nsplugin ntfs nvidia nvtv offensive ofx ogg opengl openmp pam pcmcia pcre pda pdf perl png pppd python qt3 qt4 quicktime rar readline real realmedia realms reflection reiser4 reiserfs rhythmbox rtc rtsp ruby samba screen sdl sdl-image sdl-sound sdlaudio sensord session skins slang smartcard sms source speex spell spl sqlite sse sse2 ssl stream subtitles subversion svg svga symlink syslog tcpd tga theora thesaurus threads thunderbird tiff timidity tk totem transcode truetype unicode upnp usb userlocales v4l v4l2 vcd vidix vim-syntax vlm vnc vncviewer vorbis widescreen wifi win32codecs wma wmf wmp x264 x86 xanim xcomposite xine xinerama xml xorg xosd xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics evdev mouse keybord" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" LIRC_DEVICES="accent act200l act220l adaptec all alsa_usb animax asusdh atilibusb atiusb audio audio_alsa avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 breakoutbox bte bw6130 caraca chronos cmdir cph06x creative creative_infracd devinput digimatrix dsp dvico ea65 exaudio flyvideo gvbctv5pci hauppauge hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_pad imon_pad2keys imon_rsc inputlirc irdeo irdeo_remote irman irreal it87 knc_one kworld leadtek_0007 leadtek_0010 leadtek_pvr2000 livedrive_midi livedrive_seq logitech macmini mceusb mceusb2 mediafocusI mouseremote mouseremote_ps2 mp3anywhere nslu2 packard_bell parallel pcmak pcmak_usb pctv pixelview_bt878 pixelview_pak pixelview_pro provideo realmagic remote_wonder_plus remotemaster sa1100 sasem sb0540 serial serial_igor_cesko silitek sir slinke streamzap tekram tekram_bt829 tira ttusbir tuxbox tvbox udp uirt2 uirt2_raw usb_uirt_raw usbirboy usbx userspace xboxusb" USERLAND="GNU" VIDEO_CARDS="v4l vesa vga fbdev i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2008-08-21 06:36:18 UTC
I don't have this problem...also with the default config.  Does the group/user tor exist?  Do you start tor as a user or as root (the latter I assume)?  What are the permissions and UID/GID values on /etc/tor/torrc and the data directories as /var/{log,run,lib}/tor?
Comment 4 Jacob Frederick 2008-08-21 20:56:15 UTC
all directorys and files are tor:tor

tor is set to run in the boot sequence (default, not boot) but it fails thru the script if started off the command line as well as thru the startup. 

Everything is as it should be as far as i can tell; from Tor's irc channel im told that the problem was that the init.d and the torrc were both specifying a group. tor would run from the command line (just running `tor`), but not the script (`/etc/init.d/tor start`), hence having to disable one of the 2 modes to specify a group. it ran from the command line because it didnt have the init script telling it to change groups as well as the torrc.
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2008-09-03 06:56:32 UTC
Initscript fixed, thanks for the report.