LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-07-2012, 08:36 AM   #1
Takido
LQ Newbie
 
Registered: Jun 2012
Location: France
Distribution: Crunchbang, Ubuntu, Xbian
Posts: 12

Rep: Reputation: Disabled
DBUS session on a read-only filesystem


Hello,

I'm trying to use DBUS to make two programs communicate with each other.

Everything works perfectly on my computer, but when I try it on the hardware it is supposed to run on, some problems come. Actually, dbus-monitor doesn't work for the session bus (but works for the system bus) and fails with this error :
Quote:
Failed to open connection to session bus: Failed to connect to socket /tmp/dbus-BFeo9CVcs1: Connection refused
Why I'm sure that it is a RO/RW problem is because when I switch the system to RW mode, it works perfectly.
I've been trying to see what file DBUS was trying to change but it is only reading files and connecting to a socket located in /tmp (which is mounted as RW).

Does someone have an idea ?

Thanks !
 
Old 08-08-2012, 05:32 AM   #2
Takido
LQ Newbie
 
Registered: Jun 2012
Location: France
Distribution: Crunchbang, Ubuntu, Xbian
Posts: 12

Original Poster
Rep: Reputation: Disabled
I finally found a way to solve this problem.

Actually, DBUS session bus needs to write into ~/.dbus (because it is a session bus). So a way to make the session bus work on a RO filesystem is to link this ~/.dbus folder to another folder in a RW filesystem. It's not a perfect solution, but I guess it can help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to execute dbus-launch to autolaunch D-Bus session wds Linux - Desktop 1 04-21-2012 05:39 PM
[SOLVED] No DBUS session-bus found Widgeteye Slackware 1 06-22-2010 03:46 PM
Fedora Core 9 update dbus.exception & dbus.proxies & DBus.Error.AccessDenied errors trien27 Fedora 1 12-08-2008 11:23 PM
Raid disk problem : Attempt to read block from filesystem resulted in short read ElmPie Linux - General 5 08-26-2008 05:21 AM
[Dapper-upgrade] /etc/gdm/Xsession: Executing /usr/bin/gnome-session failed (dbus??) kiwibird Linux - Software 0 06-05-2006 05:12 PM


All times are GMT -5. The time now is 05:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration