LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-25-2016, 05:13 PM   #61
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled

Quote:
Originally Posted by Emerson View Post
There seems to be discrepancy in that post, the actual pid file is /var/run/dbus.pid, remove it and restart dbus.
My bad, I posted first and then went checking, found the pid file in /var/run.
 
Old 04-25-2016, 05:15 PM   #62
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Quote:
Originally Posted by GT-Force View Post
Below is what I was referring to, when I wrote "can you explain what the last post means in the first link, and how to do it":

"For some reason (probably related to the unchecking of dbus in the Services app), in /etc/rc2.d the startup script for dbus was S50dbus while hal was S24hal. I didn't know run level 2 was used but just trying anything I mv'ed S50dbus to S12dbus and all works fine again."
I do not know enough about Ubuntu startup scripts to tell if the execution order affects your issue or not. You can definitely try and rename S50dbus to S12dbus, if it fixes your problem then we both know more.
 
Old 04-25-2016, 05:15 PM   #63
GT-Force
Member
 
Registered: Apr 2016
Posts: 43

Original Poster
Rep: Reputation: Disabled
I do not have a /var/run/dbus.pid file
 
Old 04-25-2016, 05:25 PM   #64
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Quote:
Originally Posted by GT-Force View Post
I do not have a /var/run/dbus.pid file
OK, that means dbus wasn't started for some other reason. Can you start it by hand? Do you get any error messages when starting it?
 
Old 04-25-2016, 05:25 PM   #65
GT-Force
Member
 
Registered: Apr 2016
Posts: 43

Original Poster
Rep: Reputation: Disabled
By the way, I thought of uninstalling and reinstalling dbus, but to my horror, it lists MANY packages that will be removed with dbus.

I think, these others depend on dbus, so since dbus is being removed, they will also be removed, is that right? Or is it that these are the dependencies dbus needs, and since dbus is being removed they are not needed and will also be removed.

If it is the former, I do not want to reinstall all those after removing and installing dbus. If it is the latter, they would be automatically installed with dbus, right?

Is uninstalling and reinstalling something like dbus, which looks like a central part of the OS, even a good idea?

Thanks.

Last edited by GT-Force; 04-25-2016 at 05:30 PM.
 
Old 04-25-2016, 05:27 PM   #66
GT-Force
Member
 
Registered: Apr 2016
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
OK, that means dbus wasn't started for some other reason. Can you start it by hand? Do you get any error messages when starting it?
Looks like, although I do not have that pid file, dbus was actually started. Because, if I run

sudo service dbus start

it says "job is already running".

Last edited by GT-Force; 04-25-2016 at 05:29 PM.
 
Old 04-25-2016, 05:33 PM   #67
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Quote:
Originally Posted by GT-Force View Post
Looks like, although I do not have that pid file, dbus was actually started. Because, if I run

sudo service dbus start

it says "job is already running".
This may be false positive. In case your Ubuntu does not keep the pid file in /var/run but somewhere else (I hate when distros use unconventional locations) it is found and considered proof the service is running, while the process may be actually dead and the pid file is stale. What was the location mentioned in this thread earlier again? /usr/local/something ... maybe your stale pid file is somewhere there ...
 
Old 04-25-2016, 05:35 PM   #68
GT-Force
Member
 
Registered: Apr 2016
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
This may be false positive. In case your Ubuntu does not keep the pid file in /var/run but somewhere else (I hate when distros use unconventional locations) it is found and considered proof the service is running, while the process may be actually dead and the pid file is stale. What was the location mentioned in this thread earlier again? /usr/local/something ... maybe your stale pid file is somewhere there ...
Are you referring to this?

[ 12.691095] init: Unable to connect to the D-Bus system bus: Failed to connect to socket /usr/local/var/run/dbus/system_bus_socket: Connection refused

If so, I now removed that, too, and restarted. Still the same...

Last edited by GT-Force; 04-25-2016 at 05:44 PM.
 
Old 04-25-2016, 07:37 PM   #69
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Did you look into /usr/local/var/run/, if the dbus.pid is there remove it and try starting dbus again.
 
Old 04-26-2016, 10:39 AM   #70
GT-Force
Member
 
Registered: Apr 2016
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
Did you look into /usr/local/var/run/, if the dbus.pid is there remove it and try starting dbus again.
No dbus.pid file there. Just /usr/local/var/run/dbus/system_bus_socket, which I've removed (and rebooted). Didn't work.

Any other suggestions?

Thanks.
 
Old 04-26-2016, 10:40 AM   #71
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
What message you get when you stop the dbus?
 
Old 04-26-2016, 10:43 AM   #72
GT-Force
Member
 
Registered: Apr 2016
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
What message you get when you stop the dbus?
Just a confirmation that it is stopped.
 
Old 04-26-2016, 10:44 AM   #73
GT-Force
Member
 
Registered: Apr 2016
Posts: 43

Original Poster
Rep: Reputation: Disabled
When I go to /etc and execute

ls -l rc?.d | grep dbus

I get nothing!

According to this thread

http://ubuntuforums.org/showthread.php?t=819551

I should have a line in one of these rc#.d files to start dbus, right?
 
Old 04-26-2016, 10:45 AM   #74
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Quote:
Originally Posted by GT-Force View Post
Just a confirmation that it is stopped.
OK, now try to start it again. What message you get if any.
 
Old 04-26-2016, 10:48 AM   #75
GT-Force
Member
 
Registered: Apr 2016
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
OK, now try to start it again. What message you get if any.
$ sudo service dbus stop

dbus stop/waiting


$ sudo service dbus start

dbus start/running


that is all I get.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ubuntu 11.10 black screen after boot screen makrylemis Ubuntu 30 01-17-2012 01:46 PM
Acer A0A 110 has a black screen during boot up along with a black cursor sw3etpinay Linux - Newbie 23 12-29-2010 11:05 AM
I messed with the screen resolution and now Redhat will boot into a black screen! Mr. Hill Linux - Newbie 29 05-04-2009 11:52 AM
black screen on first boot up 57210788 Linux - Software 0 01-09-2006 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration