Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

openrc support thread

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Locked
Advanced search
820 posts
  • Page 5 of 33
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 33
  • Next
Author
Message
skylen
n00b
n00b
Posts: 3
Joined: Fri Apr 11, 2008 8:44 pm

Post by skylen » Fri Apr 18, 2008 9:21 pm

alex.blackbit wrote:@skylen:
you were complaining that the behavior of baselayout-2 sucks.
since you are quite new to the forums i assume you are quite new to gentoo in general.
so, why do you run a ~arch system if you are not able to deal with the predictable results?
i suggest to use a stable system. i think this is more what you expect.
Sure, I guess I'm new to Gentoo, if using Gentoo on 4-5 computers for 4+ years now counts as new. :roll:

I have never had upgrades wipe out my config files before. I don't recall the /etc/conf.d/net being part of the dispatch-conf file set after the upgrade either... just flag out wiped out in the blink of an eye.

I run ~arch because the 'stable' arch has, at many times been waaaaay behind what I need as a software developer (w.r.t. gcc versions, etc.), and mixing arch and ~arch ad-hoc became a nightmare.
Top
j-kidd
Apprentice
Apprentice
User avatar
Posts: 213
Joined: Thu Feb 20, 2003 5:27 pm

Post by j-kidd » Sat Apr 19, 2008 2:41 am

skylen wrote:
alex.blackbit wrote:@skylen:
you were complaining that the behavior of baselayout-2 sucks.
since you are quite new to the forums i assume you are quite new to gentoo in general.
so, why do you run a ~arch system if you are not able to deal with the predictable results?
i suggest to use a stable system. i think this is more what you expect.
Sure, I guess I'm new to Gentoo, if using Gentoo on 4-5 computers for 4+ years now counts as new. :roll:

I have never had upgrades wipe out my config files before. I don't recall the /etc/conf.d/net being part of the dispatch-conf file set after the upgrade either... just flag out wiped out in the blink of an eye.

I run ~arch because the 'stable' arch has, at many times been waaaaay behind what I need as a software developer (w.r.t. gcc versions, etc.), and mixing arch and ~arch ad-hoc became a nightmare.
The conf.d/net bug is at http://bugs.gentoo.org/show_bug.cgi?id=217848 and should have been fixed (it's a proper fix, not just adding a note that the network config files are beeing deleted :lol:)

As for upgrades wiping out user's files, it has certainly happened before (also to ~arch). See http://bugs.gentoo.org/show_bug.cgi?id=83575

The similiarity in both cases is that apparently no developer stood up and admit the screw up, which is rather sad.

@alex.blackbit
A bug that eats user's file, and that requires fixes in 2 ebuilds, shouldn't appear in ~arch. What's the point of package.mask them for 3 weeks if a serious bug like this still leaked through?
Top
uzz75
n00b
n00b
Posts: 34
Joined: Mon Aug 29, 2005 7:18 pm
Location: Italy

Post by uzz75 » Sat Apr 19, 2008 6:36 am

How can i use splash now

emerge splashutils -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] media-gfx/splashutils-1.5.4-r1 USE="gpm mng png truetype -fbcondecor -hardened" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB


there is no /etc/init.d/splash
Michele
Top
natros
n00b
n00b
Posts: 70
Joined: Fri Sep 26, 2003 10:46 pm

Post by natros » Sat Apr 19, 2008 10:21 am

I' have a few problems that i want to fix before rebooting.

1) i have a problem with emerge world:

Code: Select all

# emerge -uavDN world
These are the packages that would be merged, in order:
Calculating world dependencies... done!
[ebuild  N    ] sys-fs/udev-115-r1  USE="(-selinux)" 210 kB
[blocks B     ] <sys-fs/udev-118-r2 (is blocking sys-apps/openrc-0.2.2)
2) do i need to call "rc-update add raid boot" for sata raid?
-=[abit ip35 pro core2quad q6600 (oc 3.0 ghz) 8 gb ram 2x320 raid0 ext4 xfx8800gt 512mb]=-
Top
uzz75
n00b
n00b
Posts: 34
Joined: Mon Aug 29, 2005 7:18 pm
Location: Italy

Post by uzz75 » Sat Apr 19, 2008 11:47 am

natros wrote:I' have a few problems that i want to fix before rebooting.

1) i have a problem with emerge world:

Code: Select all

# emerge -uavDN world
These are the packages that would be merged, in order:
Calculating world dependencies... done!
[ebuild  N    ] sys-fs/udev-115-r1  USE="(-selinux)" 210 kB
[blocks B     ] <sys-fs/udev-118-r2 (is blocking sys-apps/openrc-0.2.2)
2) do i need to call "rc-update add raid boot" for sata raid?

i use udev-118-r2
Michele
Top
keba
Guru
Guru
User avatar
Posts: 328
Joined: Fri Jun 02, 2006 5:45 pm
Location: Switzerland

netmount problem

Post by keba » Sat Apr 19, 2008 12:27 pm

Hi Guys,

I have just updated to OpenRC and Baselayout-2. They are great except that I'm having some starting problems :-(
1) Keymaps problem (I don't know whether this warning is important or not since everything seems to work:

Code: Select all

keymaps ¦loadkeys: warning: this map uses Unicode symbols
keymaps ¦(perhaps you want to do 'kbd-mode -u'?)
keymaps ¦ * Setting keyboard mode to [UTF-8]
...
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
keymaps ¦usage: kbd-mode [-a¦-u¦-k¦-s]
2) When booting, the process hangs while trying to start powersaved (maybe around 5min). And of course xdm doesn't start and I don't know what to do:

Code: Select all

net.eth0 ¦ * Bringing up interface eth0
net.eth0 ¦ *    Starting ifplugd on eth0
net.eth0 ¦ *       Backgrounding
net.eth0 ¦ * WARNING: net.eth0 has started but is inactive
INIT: Entering Runlevel 3
acpid          ¦ * Starting acpid                [ok]
dbus           ¦ * Starting dbus                 [ok]
syslog-ng      ¦ * Starting syslog-ng           [ok]
vixie-cron     ¦ * Starting vixie-cron           [ok]
hald           ¦ * Starting hald                  [ok]
powersaved     ¦ * Starting powersaved    "looooooooooong delay"                 [ok]
cupsd          ¦ * cupsd: timed out waiting for netmount
xdm            ¦ * xdm: timed out waiting for netmount
dhcdbd         ¦ * dhcdbd: timed out waiting for netmount
netmount       ¦ * netmount: timed out waiting for xdm
NetworkManager ¦ * NetworkManager: timed out waiting for netmount
local          ¦ * local: timed out waiting for netmount
netmount       ¦ * netmount: Mounting network filesystems               [ok]
xdm            ¦/lib/rc/runscript.sh: line 120: ebegin: command not found
xdm            ¦/lib/rc/runscript.sh: line 122: save_options: command not found
xdm            ¦/lib/rc/runscript.sh: line 133: eend: command not found
xdm            ¦ ERROR: xdm failed to start
cupsd          ¦ * Starting cupsd                [ok]
dhcdbd         ¦ * Starting dhcdbd              [ok]
NetworkManager ¦ * Starting NetworkManager    [ok]
local          ¦ * Starting local                [ok]
After that, the login (shell) comes up.

Can you please help me? Thanks a lot.
Prayer can change the world!
Top
jabol
Apprentice
Apprentice
Posts: 269
Joined: Wed Oct 05, 2005 7:18 pm
Contact:
Contact jabol
Website

Post by jabol » Sat Apr 19, 2008 1:04 pm

Well, I've installed Gentoo ~x86 with baselayout-2 and openrc and it runs just great. Is it just my impression or is it quite a bit faster than the previous init sequence?
Top
alex.blackbit
Advocate
Advocate
Posts: 2397
Joined: Tue Jul 26, 2005 8:04 pm

Post by alex.blackbit » Sat Apr 19, 2008 5:19 pm

natros, just do "emerge -av udev". that should get you a newer version that openrc is happy with.
Top
natros
n00b
n00b
Posts: 70
Joined: Fri Sep 26, 2003 10:46 pm

Post by natros » Sat Apr 19, 2008 5:32 pm

alex.blackbit wrote:natros, just do "emerge -av udev". that should get you a newer version that openrc is happy with.
Thanks, it's working :)
-=[abit ip35 pro core2quad q6600 (oc 3.0 ghz) 8 gb ram 2x320 raid0 ext4 xfx8800gt 512mb]=-
Top
Quaoar
n00b
n00b
Posts: 10
Joined: Sun Jan 13, 2008 7:50 am

Post by Quaoar » Sat Apr 19, 2008 6:57 pm

just updated to baselayout2/openrc - runs fine here :)
two comments:

1) I've had to do an

Code: Select all

rc-update del swap boot
rc-update add swap default
to get my encrypted swap work again which wasn't mentioned in the migration-guide

2) I have two root-directories now which are obviously the same. no problem so far but very irretating

Code: Select all

# df -h
Filesystem            Size  Used Avail Use% Mounted on
rootfs                4.7G  3.8G  899M  82% /
/dev/root             4.7G  3.8G  899M  82% /
Top
ccgoo
n00b
n00b
Posts: 47
Joined: Thu Jul 19, 2007 9:40 am

net config and scripts is really confusing in openrc

Post by ccgoo » Sat Apr 19, 2008 7:03 pm

This post is a bit long, please please be patient. Thanks very much:)

First of all, I wanna say "where is my original /etc/conf.d/net".
After I emerged baselayout2 and openrc, something I changed(e.g. /etc/conf.d/local.start, /lib/rcscripts/net/arping.sh, etc.) is reserved(That's good:), something is updated by dispatch-conf(normally), but my original /etc/conf.d/net is covered by an empty file without prompt. Why??? I lost all net configs. Sigh :(

I saw what alex.blackbit posted in thread "openrc support thread"
alex.blackbit wrote:@developers:
baselayout-2 brings feelable speedup during boot. well done.
nevertheless i suggest to add at least a note that the network config files are beeing deleted.
Agree! I have the same feeling and complaining.


Ok, let me talk in this thread.
Why I opened this new thread instead of following that sticky thread "openrc support thread" is that there are too many posts, too many pages, but I want you people to pay much attention to this problem, this openrc problem.

What I'm talking about below is not merely bug, I think, but most may be flaw, may be something need to be changed more proper and easier to use.

When using baselayout1, how to write net config has confused me for some time, not a long time but not a short time either.
The net config example provided is not clear for users who want to config some complicated circumstances. So are the related online docs.
So, in order to get to know those too many variables, and the relationship between them, and how they influence on each other, I have to read the net scripts, including /etc/init.d/net, /lib/rcscripts/net/* and something related. Finally I wrote a perfect net config (at least I think so, but lost with pity:( ), and could employ those vars flexibly, however that's not an easy process.

Now I began to use baselayout2 and openrc. The situation is so much same as using baselayout1. I read some scripts about net in openrc, of cource including net.example. But I am still confused now. More confused.

In http://www.gentoo.org/doc/en/openrc-migration.xml, I'm told that "/etc/conf.d/net no longer uses bash-style arrays for configuration". And the doc take an example:

Code: Select all

Old style
config_eth0=( "192.168.1.37 netmask 255.255.255.0 brd 192.168.1.255" )

Code: Select all

New style
config_eth0="192.168.1.37 netmask 255.255.255.0 brd 192.168.1.255"
The local net.example also take some examples:

Code: Select all

config_eth0="192.168.0.2/24"
config_eth0="192.168.0.2/24 192.168.0.3/24 192.168.0.4/24"
config_eth0="192.168.0.{2..4}/24"
config_eth0="noop 192.168.0.2/24"
config_eth0="null"
config_eth0="dhcp"
config_eth0="arping"
config_192168000001="192.168.0.2/24"
All the examples forget about one important thing: If /etc/conf.d/net no longer uses bash-style arrays for configuration now, how to represent multi-config in one config variable, how to convert the old bash-style arrays to new style (You would say there is a convertion example above, but that is too simple, that example has only one config in config variable).

These examples above seem to tell users you can separate multi-config by whitespace in one config variable (config_eth0="noop 192.168.0.2/24" and config_eth0="192.168.0.2/24 192.168.0.3/24 192.168.0.4/24").

So you may write a net config like this:

Code: Select all

config_eth0="192.168.0.123/24 arping"
dns_servers_192168000001_001234567890="202.202.202.202"
gateways_eth0="192.168.0.1,00:12:34:56:78:90"
routes_eth0="default via 192.168.0.1"
dns_servers_eth0="192.168.0.1"
(This config is mine actually)
Then /etc/init.d/net.eth0 restart
Then ... congratulations, you got an infinite loop. Net init script perform "add address first; then arping" endlessly.
If change config_eth0 into this:

Code: Select all

config_eth0="192.168.0.123/24
arping"
, everything is right.
This is the problem1.

If you want to set two addresses to eth0 with non-CIDR address style, how do you do? Before, when using baselayout1, you can write like this:

Code: Select all

config_eth0=( "192.168.0.2 netmask 255.255.255.0", "192.168.0.33 netmask 255.255.255.0" )
But now, how to write, as bash array is not supported any longer. Write like this? Separate two config by whitespace too?

Code: Select all

config_eth0="192.168.0.2 netmask 255.255.255.0 192.168.0.33 netmask 255.255.255.0"
Of course, it's invalid. Which whitespace should be considered as the separator of two config? There is no example to explain this case.
This is the problem2.

The "routes" variable has same problem, but fortunately there is an example to show users how to set routes.

Code: Select all

routes_eth0="default via 192.168.0.1
10.0.0.0/8 via 192.168.0.1
::/0"
So you may guess net init script uses newline to separate multi-config in one variable. So you may write two addresses config like this:

Code: Select all

config_eth0="192.168.0.2 netmask 255.255.255.0
192.168.0.33 netmask 255.255.255.0"
But why some "config_eth0" variable still uses whitespace to separate multi-config (see above), and some other variables uses whitespace too(like preferred_aps="'SSID 1' 'SSID 2'").

This is one confusing point. However, you would say if config value contains whitespace of its own, you can not use whitespace as separator, you must use newline instead, that's simple. Yes, maybe you are right, but how do you explain the problem1 above. And neither local net.example nor online docs tell me this explicitily. Neither of them tell me newline is a prefered separator either. So all of these are just guess.

There are so many implicit questions: perfered_aps="'SSID 1' 'SSID 2'" and perfered_aps="SSID 1\nSSID 2", which one is correct or better? Can I use config_eth0="'192.168.0.2 netmask 255.255.255.0' '192.168.0.33 netmask 255.255.255.0'" instead of config_eth0="192.168.0.2 netmask 255.255.255.0\n192.168.0.33 netmask 255.255.255.0"? Why does config_eth0="192.168.0.123/24 arping" cause an infinite loop, however, at least it is valid (the whitespace in its value is not ambiguous).

So in order to understand clearly, I have to read net init scripts (/lib/rc/sh/net.sh, /lib/rc/net/*, etc.) again.

In the net init scripts, the code proves those guess mentioned above.
In /lib/rc/sh/net.sh, there is a variable

Code: Select all

__IFS="
"
Its value is a newline.

And note two functions: _get_array and _load_config.
After read them, you can know _get_array convert bash array into one variable, the elements of array is separated by newline in that variable.
_load_config uses newline as the default IFS. In addition, it also supports one-line config separated by whitespace ("noop 192.168.0.123/24" or "192.168.0.2/24 192.168.0.3/24" or "192.168.0.2/24 arping"). The code below is part of _load_config.

Code: Select all

local IFS="$__IFS"
set -- ${config}
# We should support a space separated array for cidr configs
if [ $# = 1 ]; then
	unset IFS
	set -- ${config}
	# Of course, we may have a single address added old style.
	case "$2" in
		netmask|broadcast|brd|brd+)
			local IFS="$__IFS"
			set -- ${config}
			;;
	esac
fi
Ok, after read the code above I know exactly how net init script parse "config_eth0" variable, i.e. I know exactly how to write "config_eth0" variable.

But there is still a problem, the problem1 above. Why "192.168.0.123/24 arping" causes an infinite loop. And this is a bug I am sure.
_load_config parse "192.168.0.123/24 arping" into "192.168.0.123/24" and "arping", so net init script add address "192.168.0.123/24" first, and perform arping_start which is in /lib/rc/net/arping.sh. The bug is just in the latter.

In arping_start, there are such code like this:

Code: Select all

_configure_variables ${conf}
...
# Ensure that we have a valid config - ie arping is no longer there
local IFS="$__IFS"
for i in $(_get_array "config_${IFVAR}"); do
	if [ "${i}" = "arping" ]; then
		eend 1 "No config found for ${ip} (config_${conf}="...")"
		continue 2
	fi
done
unset IFS

_load_config
This code means that arping_start convert config_${gateways} to new config_${iface}, and load the new config. If there is no config_${gateways} or config_${gateways} still contains "arping", then _load_config would not be called in order to ensure the old config or the new config which contains "arping" would not be loaded again by mistake. I.e, If the config_${iface} is invalid, if the config_${iface} still contains "arping" (old config or new config which contains "arping"), then _load_config would not be called again, because calling _load_config in this situation would cause an infinite loop.
But the bug is just in this code.

Generally, user would write net config like this to employ arping module.

Code: Select all

config_eth0="arping"
gateways_eth0="192.168.0.1,00:12:34:56:78:90"
config_192168000001_001234567890="192.168.0.123/24"
config_eth0="arping" causes arping_start is called. arping_start calls "_configure_variables ${conf}" to convert config_192168000001_001234567890 to config_eth0, so now config_eth0="192.168.0.123/24", there is not "arping" in config, so arping_start go on to call _load_config to load new config. Everything is ok.

But in my sample above, my net config is:

Code: Select all

config_eth0="192.168.0.123/24 arping"
dns_servers_192168000001_001234567890="202.202.202.202"
gateways_eth0="192.168.0.1,00:12:34:56:78:90"
routes_eth0="default via 192.168.0.1"
dns_servers_eth0="192.168.0.1"
This config is meant to config a static ip address as 192.168.0.123 with netmask 255.255.255.0 and gateway as 192.168.0.1. And if gateway's mac is 00:12:34:56:78:90, dns server is 202.202.202.202, otherwise dns server is 192.168.0.1.

There is no config_192168000001_001234567890 defined. So arping_start should not call _load_config.
In order to confirm whether config is valid or not, arping_start checks if "arping" is one element of the config_${iface} value. There is no config_${gateways} in the above problem-config, so config_${iface} still the old one -- "192.168.0.123/24 arping". "arping" is one element of config_${iface} value, so arping_start should not call _load_config.

But the fact is _load_config is called, "192.168.0.123/24 arping" is loaded again, so net init script add address again, call arping_start again, and arping_start call _load_config again, and net init script add address again, call arping_start again .... Inifinite loop.

Why _load_config is called. Because of this:

Code: Select all

local IFS="$__IFS"
for i in $(_get_array "config_${IFVAR}"); do
arping_start doesn't support one-line config separated by whitespace. To it, only newline can be separator. But in my config, config_eth0="192.168.0.123/24 arping", arping_start considers this as one config, not two. This config has only one element "192.168.0.123/24 arping" which is not "arping", so _local_config is called.

So, come to the conclusion, if _load_config supports two kinds of separator in config_${iface} variable, newline and whitespace, the other functions which would use config_${iface} variable also need support newline and whitespace both as separator. That means the below code belonging to _load_config need to be reused in place:

Code: Select all

local IFS="$__IFS"
set -- ${config}
# We should support a space separated array for cidr configs
if [ $# = 1 ]; then
	unset IFS
	set -- ${config}
	# Of course, we may have a single address added old style.
	case "$2" in
		netmask|broadcast|brd|brd+)
			local IFS="$__IFS"
			set -- ${config}
			;;
	esac
fi
OK, OK, this post is much longer than I expected. What I'm talking about is the net config is not clear enough to use, the docs miss some important concepts to make things explicit (of course, there are so many examples in docs, but they are just examples, they are not explicit enough to explain some problem) and there is a bug in arping_start (may be in other related functions too).

BTW: when arping_start find the config is not valid, it will print an error message which is "No config found for ${ip} (config_${conf}="...")". But I don't think this message is explicit enough either. Because if somebody defines config_192168000001_001234567890="arping", then he will get the error message: "No config found for ${ip} (config_${conf}="...")", then he will be confused if he hasn't read the code of arping_start.
Top
wonski
n00b
n00b
Posts: 37
Joined: Tue Apr 10, 2007 6:56 pm

Re: netmount problem

Post by wonski » Sat Apr 19, 2008 7:11 pm

keba wrote:
2) When booting, the process hangs while trying to start powersaved (maybe around 5min). And of course xdm doesn't start and I don't know what to do:

Code: Select all

net.eth0 ¦ * Bringing up interface eth0
net.eth0 ¦ *    Starting ifplugd on eth0
net.eth0 ¦ *       Backgrounding
net.eth0 ¦ * WARNING: net.eth0 has started but is inactive
INIT: Entering Runlevel 3
acpid          ¦ * Starting acpid                [ok]
dbus           ¦ * Starting dbus                 [ok]
syslog-ng      ¦ * Starting syslog-ng           [ok]
vixie-cron     ¦ * Starting vixie-cron           [ok]
hald           ¦ * Starting hald                  [ok]
powersaved     ¦ * Starting powersaved    "looooooooooong delay"                 [ok]
cupsd          ¦ * cupsd: timed out waiting for netmount
xdm            ¦ * xdm: timed out waiting for netmount
dhcdbd         ¦ * dhcdbd: timed out waiting for netmount
netmount       ¦ * netmount: timed out waiting for xdm
NetworkManager ¦ * NetworkManager: timed out waiting for netmount
local          ¦ * local: timed out waiting for netmount
netmount       ¦ * netmount: Mounting network filesystems               [ok]
xdm            ¦/lib/rc/runscript.sh: line 120: ebegin: command not found
xdm            ¦/lib/rc/runscript.sh: line 122: save_options: command not found
xdm            ¦/lib/rc/runscript.sh: line 133: eend: command not found
xdm            ¦ ERROR: xdm failed to start
cupsd          ¦ * Starting cupsd                [ok]
dhcdbd         ¦ * Starting dhcdbd              [ok]
NetworkManager ¦ * Starting NetworkManager    [ok]
local          ¦ * Starting local                [ok]
After that, the login (shell) comes up.

Can you please help me? Thanks a lot.
i've had this too ;/
now i must login as root and type 'kdm' to start my kde ;/
Top
uzz75
n00b
n00b
Posts: 34
Joined: Mon Aug 29, 2005 7:18 pm
Location: Italy

Post by uzz75 » Sat Apr 19, 2008 7:59 pm

Quaoar wrote:just updated to baselayout2/openrc - runs fine here :)
two comments:

1) I've had to do an

Code: Select all

rc-update del swap boot
rc-update add swap default
to get my encrypted swap work again which wasn't mentioned in the migration-guide
Take a look at this, me too had problem with crypt swap


/etc/conf.d/dmcrypt

and add dmcrypt start on boot runlevel

(But i don't know if you have random key like me)
Michele
Top
Tolstoi
l33t
l33t
User avatar
Posts: 678
Joined: Thu May 20, 2004 8:06 am

Post by Tolstoi » Sat Apr 19, 2008 8:32 pm

Works fine here too :D. The only issue I have is that there is an error message when booting complaining that "/etc/mtab is not updatable".
Yes it is in the boot runlevel.
Top
uzz75
n00b
n00b
Posts: 34
Joined: Mon Aug 29, 2005 7:18 pm
Location: Italy

Post by uzz75 » Sat Apr 19, 2008 10:07 pm

someone have notice about poweroff time ?

i shutdown in 3 sec.

it's normal ?
Michele
Top
whiz
n00b
n00b
Posts: 25
Joined: Tue Mar 21, 2006 11:11 am

mpd, postgresql, and apache doesn't work anymore.

Post by whiz » Sun Apr 20, 2008 4:41 am

My mpd, postgresql, and apache doesn't work after upgrading baselayout and installing openrc. But no error reported at boot time.

Code: Select all

$ mpc update
MPD_HOST and/or MPD_PORT environment variables are not set
error: problems connecting to "localhost" on port 6600: Network is unreachable

Code: Select all

$ ls -l /etc/init.d/
lrwxrwxrwx 1 root root    6 04-20 05:17 net.eth0 -> net.lo
lrwxrwxrwx 1 root root   18 04-18 20:22 net.lo -> //lib/rc/sh/net.sh
I have used /usr/share/doc/openrc/net.example replacing the old /etc/conf.d/net.
Portage 2.1.5_rc4 (default/linux/x86/2008.0, gcc-4.2.3, glibc-2.7-r2, 2.6.25-gentoo-r1 i686)
=================================================================
System uname: 2.6.25-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.80GHz
Timestamp of tree: Sun, 20 Apr 2008 03:18:01 +0000
app-shells/bash: 3.2_p33
dev-java/java-config: 1.3.7, 2.1.5
dev-lang/python: 2.5.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.2.2
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.62
sys-devel/automake: 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils: 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-gentoo-linux-uclibc"
CFLAGS="-Os -mtune=i386 -pipe"
CHOST="i686-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-Os -mtune=i386 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org"
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN"
MAKEOPTS="-j12"
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"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/layman/pro-audio /usr/local/layman/science /usr/local/layman/sunrise /usr/local/layman/emacs"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acpi alsa bash-completion bitmap-fonts bzip2 cjk crypt cups dbus dri dvd fortran gdbm gif gtk hal iconv ipv6 jpeg latex mmx mmxext mp3 mudflap ncurses nls nptl nptlonly openmp pam pcre pdf png postgres profile readline reflection sse sse2 ssl svg tcpd truetype truetype-fonts type1-fonts ucs2 unicode vhosts x86 xft xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_dbd authn_default authz_default authz_host autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Last edited by whiz on Sun Apr 20, 2008 7:54 am, edited 1 time in total.
Top
Tolstoi
l33t
l33t
User avatar
Posts: 678
Joined: Thu May 20, 2004 8:06 am

Post by Tolstoi » Sun Apr 20, 2008 7:31 am

# ls -l /etc/runlevels/boot/ used to show mtab as link to /proc/mounts . I removed that link and created a normal /etc/mtab file and now
# ls -l /etc/runlevels/boot/ shows mtab linked to /etc/init.d/mtab.
Top
keba
Guru
Guru
User avatar
Posts: 328
Joined: Fri Jun 02, 2006 5:45 pm
Location: Switzerland

Re: netmount problem

Post by keba » Sun Apr 20, 2008 10:57 am

wonski wrote: i've had this too ;/
now i must login as root and type 'kdm' to start my kde ;/
I even had to start NetworkManager and dhcdbd manually because they crashed!
Doesn't anyone have a solution or at least an idea on what to look for? thx
Prayer can change the world!
Top
Tolstoi
l33t
l33t
User avatar
Posts: 678
Joined: Thu May 20, 2004 8:06 am

Post by Tolstoi » Sun Apr 20, 2008 11:11 am

No error message now about /etc/mtab. But I'm not sure if my workaround was the correct one to choose.
Top
arcterex
Tux's lil' helper
Tux's lil' helper
Posts: 109
Joined: Mon Sep 30, 2002 1:39 pm

openrc times out waiting for evms... never finishes booting

Post by arcterex » Sun Apr 20, 2008 4:55 pm

OpenRC started out just fine, but the last time or three I rebooted it gives a 'timed out waiting for evms' message, and then everything else seems to time out, and then when (if) the system gets to the end of the boot sequence, it never completes and I'm unable to use the system. The last thing on the console is "starting local - started" with a green star, but at that point there's no login prompt, nothing on the other VTs, and even using the alt-sysrq to term/kill the openrc process doesn't do anything.

I think the evms timeout might be due to another set of RAID disks on the same system but not used here (dual boot in a way). Then the things that are timing out for evms blocks the next processes, etc etc.

Any thoughts?
Top
crowbert
Tux's lil' helper
Tux's lil' helper
Posts: 147
Joined: Mon Apr 28, 2003 6:42 pm

Post by crowbert » Sun Apr 20, 2008 5:00 pm

I still can't get ifplugd to work with openrc.
Top
ccgoo
n00b
n00b
Posts: 47
Joined: Thu Jul 19, 2007 9:40 am

Post by ccgoo » Sun Apr 20, 2008 6:56 pm

What a pity, no reply here. I don't know why. Is it too long to read? Or what I'm talking about is not important enough to make people pay a little attention to?

Any way, I will go on and talk about another bug. Soon, I will report these bugs to bugzilla.

This bug is about ssidnet.sh and wpa_supplicant.sh

In ssidnet.sh, ssidnet_pre_start need variable SSID which should be defined before to convert config_SSID to config_IFACE.
If you take wpa_supplicant as modules (modules_eth0="wpa_supplicant"), the SSID should be defined by wpa_supplicant_pre_start which is in wpa_supplicant.sh.

In baselayout1, in wpa_supplicant.sh, at the bottom of wpa_supplicant_pre_start, the SSID is reported for essidnet. See code:

Code: Select all

# Only report wireless info for wireless interfaces
if wpa_supplicant_exists "${iface}" ; then
	# Set ESSID for essidnet and report
	ESSID=$(wpa_supplicant_get_essid "${iface}" )
	ESSIDVAR=$(bash_variable "${ESSID}")
	save_options "ESSID" "${ESSID}"

	local -a status=()
	eval status=( $(wpa_cli -i"${iface}" status | sed -n -e 's/^\(bssid\|pairwise_cipher\|key_mgmt\)=\([^=]\+\).*/\"\U\2\"/p' | tr '[:lower:]' '[:upper:]') )
	einfo "${iface} connected to \"${ESSID//\\\\/\\\\}\" at ${status[0]}"

	if [[ ${status[2]} == "NONE" ]] ; then
		if [[ ${status[1]} == "NONE" ]] ; then
			ewarn "not using any encryption"
		else
			veinfo "using ${status[1]}"
		fi
	else
		veinfo "using ${status[2]}/${status[1]}"
	fi
	eoutdent
else
	einfo "${iface} connected"
fi
And in baselayout1, essidnet_pre_start also would call wireless_get_essid to get ESSID.

Code: Select all

local ESSID=$(wireless_get_essid "${iface}")
But in openrc, these related code does not exist in either ssidnet.sh or wpa_supplicant.sh.
So if you write config like this:

Code: Select all

config_NETGEAR="192.168.0.123/24"
It does not work! Have a try.
Top
slackline
Veteran
Veteran
User avatar
Posts: 1479
Joined: Fri Apr 01, 2005 7:22 pm
Location: /uk/sheffield
Contact:
Contact slackline
Website

Post by slackline » Sun Apr 20, 2008 7:52 pm

Just updated my laptop, and all seems good with one exception.

A number of network services (sshd/netmount/dnsmasq/nfsmount/etc.) are waiting for net.eth0, which is fine when I'm plugged in, but when I'm on wireless it should start after /etc/conf.d/net.wlan0 starts (which it does fine, as I'm currently using it).

According to the docs adding 'need net' to the depend section of the init-script forces it to wait for a network interface (only lists it waiting for one).

Currently it seems to that its dnsmasq that is the first step thats hanging it since...

Code: Select all

# /etc/init.d/net.eth0 restart
 * Bringing down interface eth0
 *   Stopping ifplugd on eth0 ...                                                            [ ok ]
 * Bringing up interface eth0
 *   Starting ifplugd on eth0 ...                                                            [ ok ]
 *     Backgrounding ...
 * WARNING: net.eth0 has started, but is inactive
# /etc/init.d/netmount restart
 * WARNING: dnsmasq is scheduled to start when net.eth0 has started
 * WARNING: dnsmasq is scheduled to start when net.eth0 has started
 * WARNING: nfsmount is scheduled to start when net.eth0 has started
 * WARNING: netmount is scheduled to start when net.eth0 has started

And the config for dnsmasq has

Code: Select all

# more /etc/init.d/dnsmasq 
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-dns/dnsmasq/files/dnsmasq-init,v 1.13 2008/01/29 15:06:30 fl
ameeyes Exp $

opts="reload"

depend() {
        provide dns
        need localmount net
        after bootmisc
}

start() {
        ebegin "Starting ${SVCNAME}"
        start-stop-daemon --start --exec /usr/sbin/dnsmasq \
            --pidfile /var/run/dnsmasq.pid \
            -- -x /var/run/dnsmasq.pid ${DNSMASQ_OPTS}
        eend $?
}

stop() {
        ebegin "Stopping ${SVCNAME}"
        start-stop-daemon --stop --exec /usr/sbin/dnsmasq \
            --pidfile /var/run/dnsmasq.pid
        eend $?
}

reload() {
        ebegin "Reloading ${SVCNAME}"
        if ! service_started "${SVCNAME}" ; then
            eend 1 "${SVCNAME} is not started"
            return 1
        fi
        start-stop-daemon --stop --oknodo --signal HUP \
            --exec /usr/sbin/dnsmasq --pidfile /var/run/dnsmasq.pid
        eend $?
}
Can anyone suggest how to get dnsmasq to accept either net.eth0 or net.wlan0 which ever comes available first?

Cheers,

slack

P.S. - Apologies if this isn't directly related to upgrading to openrc/baselayout-2.0, but it happened after the upgrade.

[EDIT]

Okay I've decided I don't actually need dnsmasq (at least not on this comp) so have unmerged it, and I don't really need /etc/init.d/nfsmount and /etc/init.d.netmount to mount the network file systems so have removed the former, but /etc/init.d/netmount still waits for /etc/init.d/net.eth0 and doesn't recognise that /etc/init.d/net.wlan0 has started, obtained an IP addres, blah, blah....

Code: Select all

 # /etc/init.d/net.eth0 restart
 * Bringing down interface eth0
 *   Stopping ifplugd on eth0 ...                                                            [ ok ]
 * Bringing up interface eth0
 *   Starting ifplugd on eth0 ...                                                            [ ok ]
 *     Backgrounding ...
 * WARNING: net.eth0 has started, but is inactive
 # /etc/init.d/netmount restart
 * WARNING: netmount is scheduled to start when net.eth0 has started

Would this have anything to do with ifplugd?
"Science is what we understand well enough to explain to a computer.  Art is everything else we do." - Donald Knuth
Top
Cazzantonio
Bodhisattva
Bodhisattva
User avatar
Posts: 4514
Joined: Sat Mar 20, 2004 8:57 pm
Location: Somewere around the world

Post by Cazzantonio » Sun Apr 20, 2008 9:20 pm

Here there is a discussion about the doubled root entry in /proc/mounts.
Why opernrc mounts rootfs two times? The correct mount options (set in fstab) are present only on the second entry.
Any mans death diminishes me, because I am involved in Mankinde; and therefore never send to know for whom the bell tolls; It tolls for thee.
-John Donne
Top
drizzt
Guru
Guru
User avatar
Posts: 428
Joined: Sun Jul 21, 2002 8:30 pm

Post by drizzt » Mon Apr 21, 2008 6:30 am

@slack---line:
Have you tried to change the "strict" variable I mentioned some posts ago ? This one helped me with the similar problem of net.eth0 / net.eth1.

But I have now a different problem:
net.lo isn't counted as network for services depending on net.*
E.g. apache isn't starting if neither eth0 nor eth1 is present :(
Any suggestions ?
People don't have to earn my respect. I offer my respect to them, but be careful to lose my respect...
Top
Locked

820 posts
  • Page 5 of 33
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 33
  • Next

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic