Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289323 - sys-apps/openrc-0.5.1-r1: line 510: _exists: command not found
Summary: sys-apps/openrc-0.5.1-r1: line 510: _exists: command not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 14:20 UTC by Martin Mokrejš
Modified: 2010-12-21 01:26 UTC (History)
5 users (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 Martin Mokrejš 2009-10-16 14:20:25 UTC
Hi,
  with the upgrade from 0.4.3-r3 to 0.5.1 and later -r1 I do not have a working system (~amd64). It appears there are some undefined variables in init.d file:


* Bringing up interface lo
/etc/init.d/net.lo: line 510: _exists: command not found
*   ERROR: interface lo does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.lo failed to start
* Bringing up interface eth0
/etc/init.d/net.eth0: line 510: _exists: command not found
*   ERROR: interface eth0 does not exist
*   Ensure that you have loaded the correct kernel module for your hardware
* ERROR: net.eth0 failed to start
Comment 1 Martin Mokrejš 2009-10-16 14:25:42 UTC
After downgrade of openrc I have at the moment:

# emerge --info
Portage 2.1.7.1 (default/linux/amd64/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30.9-default x86_64)
=================================================================
System uname: Linux-2.6.30.9-default-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 16 Oct 2009 14:00:01 +0000
app-shells/bash:     4.0_p33
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.3, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/nfslarge/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/nfslarge/usr/portage"
PORTDIR_OVERLAY="/nfslarge/usr/portage/local/layman/science /nfslarge/usr/portage/local/layman/sunrise /nfslarge/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 apache2 berkdb bzip2 cgi crypt dri gdbm hal java jce kerberos laptop mmx modules mpi mpich2 multilib ncurses nptl nptlonly nsplugin pam pcre python readline sse sse2 ssl svg sysfs syslog tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Ben Kohler gentoo-dev 2009-10-16 18:39:17 UTC
Try merging new configs with dispatch-conf or etc-update
Comment 3 Martin Mokrejš 2009-10-16 18:41:09 UTC
(In reply to comment #2)
> Try merging new configs with dispatch-conf or etc-update
> 

I did.
Comment 4 Roy Marples 2009-10-22 19:35:50 UTC
Your net.lo is out of date  - at the top it will use RC_LIBDIR when it should be using RC_LIBEXECDIR. This is an issue with how you upgraded or the Gentoo ebuild.
Comment 5 SpanKY gentoo-dev 2009-10-22 20:37:56 UTC
run:
rm /etc/init.d/net.lo
emerge openrc

and see if the error still exists
Comment 6 William Hubbs gentoo-dev 2009-10-28 03:41:04 UTC
Is this still an issue?

Thanks,

William

Comment 7 Cyril42e 2009-10-28 10:56:43 UTC
I had the same problem when migrating from openrc 0.4.3 to openrc 0.5.2, and the solution given by SpanKY fixed it. Thanks !
Comment 8 Martin Mokrejš 2009-10-28 17:55:21 UTC
Sorry, will get physical access to the machine next week.
Comment 9 William Hubbs gentoo-dev 2009-11-06 20:52:07 UTC
I am closing this due to the solution given in comment #5 being a fix
for a user.  Please feel free to re-open if this is still an issue.

Thanks,

William

Comment 10 Martin Mokrejš 2009-11-07 17:05:17 UTC
I just retried 0.5.2-r1 on the same machine and the ebuild did update the net.lo file for me. I ran etc-update as usually (and before I started this report). Somehow, this time I have no problems. Judge yourself whether a fix could be in the current/newer ebuild. Some comments on the "OpenRC migration guide" in bug #292261.
Comment 11 Joachim Schiele 2010-12-20 23:55:54 UTC
using sys-apps/openrc-0.6.7 and sys-apps/openrc-0.6.8 both get me this error:
/etc/init.d/net.lo restart
 * Caching service dependencies ...                                                                                                                                    [ ok ]
 * Bringing up interface lo
/etc/init.d/net.lo: line 510: _exists: command not found
 *   ERROR: interface lo does not exist
 *   Ensure that you have loaded the correct kernel module for your hardware
 * ERROR: net.lo failed to start

i tried to downgrade and upgrade, i also tried to use: Comment #5 From SpanKY
with no luck!

any idea?
Comment 12 Joachim Schiele 2010-12-20 23:56:54 UTC
(In reply to comment #11)
> using sys-apps/openrc-0.6.7 and sys-apps/openrc-0.6.8 both get me this error:
> /etc/init.d/net.lo restart
>  * Caching service dependencies ...                                            
>                                                                                
>        [ ok ]
>  * Bringing up interface lo
> /etc/init.d/net.lo: line 510: _exists: command not found
>  *   ERROR: interface lo does not exist
>  *   Ensure that you have loaded the correct kernel module for your hardware
>  * ERROR: net.lo failed to start
> 
> i tried to downgrade and upgrade, i also tried to use: Comment #5 From SpanKY
> with no luck!
> 
> any idea?
> 

and before anyone replys: i did etc-update and fixed all config issues
Comment 13 Joachim Schiele 2010-12-21 01:01:40 UTC
i've experimented with these versions:
     Tue Dec 21 00:30:29 2010 >>> sys-apps/openrc-0.6.7
     Tue Dec 21 01:17:48 2010 >>> sys-apps/openrc-0.6.6
     Tue Dec 21 01:23:16 2010 >>> sys-apps/openrc-0.6.5
     Tue Dec 21 01:27:59 2010 >>> sys-apps/openrc-0.6.3
     Tue Dec 21 01:35:46 2010 >>> sys-apps/openrc-0.6.8
but that didn't help either

i also reinstalled baselayout-2.0.1-r1

here is a complete emerge history
 # genlop -l | grep openrc                                                                                                  1 1271 3 pts/5 /etc root@ebooK 10-12-21 1:55:16
     Fri Aug  8 00:58:12 2008 >>> sys-apps/openrc-9999
     Sun Sep  7 15:27:59 2008 >>> sys-apps/openrc-0.2.5
     Thu Oct  9 23:18:09 2008 >>> sys-apps/openrc-0.3.0-r1
     Wed Nov 12 21:08:02 2008 >>> sys-apps/openrc-0.3.0-r1
     Thu Nov 27 22:18:15 2008 >>> sys-apps/openrc-0.3.0-r1
     Tue Feb  3 12:45:14 2009 >>> sys-apps/openrc-0.4.2
     Thu Apr  9 05:28:06 2009 >>> sys-apps/openrc-0.4.3-r1
     Sun May 10 22:53:42 2009 >>> sys-apps/openrc-0.4.3-r2
     Thu Nov 12 23:56:34 2009 >>> sys-apps/openrc-0.5.2-r2
     Wed Dec 16 09:06:18 2009 >>> sys-apps/openrc-0.5.3
     Fri Jan  1 20:44:27 2010 >>> sys-apps/openrc-0.6.0
     Thu Jan 21 09:23:44 2010 >>> sys-apps/openrc-0.6.0
     Wed Feb 24 12:21:51 2010 >>> sys-apps/openrc-0.6.0-r1
     Tue May 18 00:20:31 2010 >>> sys-apps/openrc-0.6.1-r1
     Fri Oct  8 16:59:33 2010 >>> sys-apps/openrc-0.6.3
     Wed Nov 17 22:55:10 2010 >>> sys-apps/openrc-0.6.4
     Sat Dec 11 20:50:14 2010 >>> sys-apps/openrc-0.6.8
     Sat Dec 11 20:52:24 2010 >>> sys-apps/openrc-0.6.8
     Tue Dec 21 00:26:22 2010 >>> sys-apps/openrc-0.6.8
     Tue Dec 21 00:30:29 2010 >>> sys-apps/openrc-0.6.7
     Tue Dec 21 01:17:48 2010 >>> sys-apps/openrc-0.6.6
     Tue Dec 21 01:23:16 2010 >>> sys-apps/openrc-0.6.5
     Tue Dec 21 01:27:59 2010 >>> sys-apps/openrc-0.6.3
     Tue Dec 21 01:35:46 2010 >>> sys-apps/openrc-0.6.8

i also have problems restarting /etc/init.d/net.vpn:

 # /etc/init.d/net.vpn restart 
 * Bringing up interface vpn
 *   No configuration specified; defaulting to DHCP
/etc/init.d/net.vpn: line 544: _ifindex: command not found
/etc/init.d/net.vpn: line 544: 0 + : syntax error: operand expected (error token is "+ ")
 * ERROR: net.vpn failed to start


it seems as if some functions are just not there: 

functions not found in /etc/init.d/net.lo are: 
_exists(), 
_has_carrier(), 
_add_address() 
(and maybe more)

_add_address() is also missing in /etc/init.d/net.vpn ...
Comment 14 Joachim Schiele 2010-12-21 01:26:56 UTC
i've now removed all configs using:
emerge --noconfmem openrc

and
etc-update (with -3) which overwrites all old configs and everything is running again.

just in case someone else has the same problem