DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 29th December 2010
zylorx zylorx is offline
Port Guard
 
Join Date: Dec 2010
Posts: 10
Default issues with "Dbus"

Got myself a copy of OpenBSD 4.8 AMD64 and installed without any problems. But once i installed Gnome things got unstable to say the least.

I keep getting these in /log/messages

"bsd gnome-session[31230]: WARNING: Could not connect to ConsoleKit: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory"

tried deinstalling / reinstalling everything related to DBUS and / or Gnome

tried adding users such as messagebus and systembus

tried followup on approx 25-30 google threads

tried (just to see) manually creating /var/run/dbus/system_bus_socket, and that changes error message to "socket operation on non-socket"

tried about everything i can think of except complete reinstall of OBSD from scratch (wich i am severely reluctant to do since it took a great deal of time just to get X running at all)

What is wrong? broken dependencies? broken libs? missing users? bad / wrong user / daemon rights?
Reply With Quote
  #2   (View Single Post)  
Old 29th December 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

You need to start dbus:

Code:
# /etc/rc.d/dbus_daemon start
Then /var/run/dbus/system_bus_socket will be created properly:

Code:
# ls -l /var/run/dbus/system_bus_socket                                        
srwxrwxrwx  1 root  _dbus  0 Dec 29 12:06 /var/run/dbus/system_bus_socket
Reply With Quote
  #3   (View Single Post)  
Old 29th December 2010
zylorx zylorx is offline
Port Guard
 
Join Date: Dec 2010
Posts: 10
Default

/etc/rc.d does not even exist

locate says:
bash-4.1# locate rc.d
/home/cvs/src/etc/rc.d
/home/cvs/src/etc/rc.d/rc.subr,v
/home/cvs/src/gnu/usr.bin/binutils/gas/testsuite/gas/arc/Attic/rrc.d,v
/usr/local/share/gtk-doc/html/orc/orc.devhelp
/usr/local/share/gtk-doc/html/orc/orc.devhelp2
bash-4.1#


an alternative attempt?

bash-4.1# dbus-daemon --system
Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": No such file or directory
bash-4.1#
Reply With Quote
  #4   (View Single Post)  
Old 29th December 2010
rocket357's Avatar
rocket357 rocket357 is offline
Real Name: Jonathon
Wannabe OpenBSD porter
 
Join Date: Jun 2010
Location: 127.0.0.1
Posts: 429
Default

Quote:
Originally Posted by zylorx View Post
/etc/rc.d does not even exist
That change must've taken place after RELEASE. I'm running CURRENT.

what does "pkg_info -L dbus | grep rc.d" say?
Reply With Quote
  #5   (View Single Post)  
Old 29th December 2010
zylorx zylorx is offline
Port Guard
 
Join Date: Dec 2010
Posts: 10
Default

i get no response / output at all from that command:

bash-4.1# pkg_info -L dbus | grep rc.d

then tried

bash-4.1# pkg_info -v -L dbus | grep rc.d

then tried

bash-4.1# pkg_info -vvvvv -L dbus | grep rc.d
bash-4.1#

no response whatsoever
Reply With Quote
  #6   (View Single Post)  
Old 29th December 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

I really dislike dbus, but, if you're going to run it.. I recommend NOT running it system wide.

You can create ~/.dbus/session.conf, and launch dbus in your .xinitrc file.
Code:
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
	<type>session</type>
	<keep_umask/>
	<listen>unix:tmpdir=~/.dbus/tmp</listen>
	<policy context="default">
		<allow send_destination="*" eavesdrop="true"/>
		<allow eavesdrop="true"/>
		<allow own="*"/>
		<allow user="zylorx"/>
	</policy>
</busconfig>
I specify a non-default location for the socket, as you can see.

You'll also need something like this in your .xinitrc/.xsession, for example..
exec /usr/local/bin/dbus-launch --sh-syntax --exit-with-session --config-file=~/.dbus/session.conf /usr/X11R6/bin/cwm

I use cwm and this lets my desktop applications play nicely, most should automatically start a dbus session on their own if it doesn't already exist.

This is just how I start it, preferred instructions are installed as part of the dbus package.. in 4.8-current these are installed in /usr/local/share/doc/pkg-readmes/:
Code:
To start a session bus instance of dbus-daemon (needed by at least gvfs
aware applications and /usr/local/share/dbus-1/services/*.service),
add the following lines in .xinitrc or .xsession before starting the
window manager (see dbus-launch(1) for more info) -- note that some
session managers, e.g. gnome-session(1) already do this for you.

if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ]; then
	eval `dbus-launch --auto-syntax --exit-with-session`
fi
Hope that helps.
Reply With Quote
  #7   (View Single Post)  
Old 29th December 2010
zylorx zylorx is offline
Port Guard
 
Join Date: Dec 2010
Posts: 10
Default

I went to ~/.dbus/ checked ls, there was only "session-bus" so i did "touch session.conf"

then went on with .xinitrc and .xsession, in my normal user account NONE of them existed!

in root account there is a .xinitrc though
Reply With Quote
  #8   (View Single Post)  
Old 29th December 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

It would appear you have more problems than the apparent dbus configuration issue, I for one will not assist you with those.
Reply With Quote
  #9   (View Single Post)  
Old 29th December 2010
zylorx zylorx is offline
Port Guard
 
Join Date: Dec 2010
Posts: 10
Default

ok, well i appriciate your help, X and gnome is running after all, if the errors wont cause more than some log contents i think ill leave it as it for the time being
Reply With Quote
Old 30th December 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

When you install a package, if there is any manual action you must take, such as starting services, a message will be produced on the console. It is common for new users to ignore these messages as unimportant, especially when they come from dependent applications like dbus.

These messages often describe exactly what must be done in rc.local to start a daemon at boot time.

You can reproduce these install messages with pkg_info. Please review the man page.
Reply With Quote
Old 30th December 2010
zylorx zylorx is offline
Port Guard
 
Join Date: Dec 2010
Posts: 10
Default

ye, thats what happened to me, however, i corrected it some days ago, but still get same errors, is it important to follow the "post-install" instructions immediately after packet install? or is it possible to correct those bloopers afterwards? e.g can my system be salvaged? or new install a definitive must-do?
Reply With Quote
Old 30th December 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

This is the message you should have seen:
Code:
To start systemwide message dbus daemon whenever the machine boots,
add the following lines to /etc/rc.local:

if [ -x /usr/local/bin/dbus-daemon ]; then
	install -d -o _dbus -g _dbus /var/run/dbus
	echo -n ' dbus'; /usr/local/bin/dbus-daemon --system
fi
Did you see this message, and did you place this exact set of shell script in /etc/rc.local?

I ask because it is not clear to me that is what you saw and did.
Reply With Quote
Old 19th March 2012
passthejoe passthejoe is offline
Real Name: Steven
Port Guard
 
Join Date: Oct 2010
Location: Los Angeles
Posts: 30
Default

Quote:
Originally Posted by jggimi View Post
This is the message you should have seen:
Code:
To start systemwide message dbus daemon whenever the machine boots,
add the following lines to /etc/rc.local:

if [ -x /usr/local/bin/dbus-daemon ]; then
	install -d -o _dbus -g _dbus /var/run/dbus
	echo -n ' dbus'; /usr/local/bin/dbus-daemon --system
fi
Did you see this message, and did you place this exact set of shell script in /etc/rc.local?

I ask because it is not clear to me that is what you saw and did.
I just tried this in an OpenBSD 5.0/GNOME installation, and it works perfectly.
Reply With Quote
Old 31st December 2010
zylorx zylorx is offline
Port Guard
 
Join Date: Dec 2010
Posts: 10
Default

ye, i saw that text and followed the instructions a couple of days ago, however today i had another look at rc.local and might have spotted a flaw.

if [ -x /usr/local/bin/dbus-daemon ]; then
install -d -o _dbus -g _dbus /var/run/dbus
echo -n ' dbus'; /usr/local/bin/dbus-daemon --system
fi

the above doesnt produce as much error logging as the one below (my previous):

if [ -x /usr/local/bin/dbus-daeon ]; then
install -d -o _dbus -g _dbus /var/run/dbus
echo -n ' dbus'; /usr/local/bin/dbus-daemon --system
fi
Reply With Quote
Old 20th March 2012
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Yes it will work, but it is no longer best practice. This OS now uses rc.d scripts.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace "ectags" with "ctags"? fender0107401 OpenBSD Packages and Ports 5 16th April 2013 10:01 AM
OSI "categorically rejects" IIPA's attack on open source J65nko News 0 5th March 2010 06:00 PM
wpa_supplicant errors: "CTRL-EVENT-SCAN-RESULTS" jackburke FreeBSD General 0 1st February 2010 12:07 AM
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
"Thanks" and "Edit Tags". diw Feedback and Suggestions 2 29th March 2009 12:06 AM


All times are GMT. The time now is 09:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick