FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-30-2012, 09:50 AM
Yohan Pereira
 
Default Systemd systemctl : Failed to get D-Bus connection

Hi,

Wanted to see whats all the fuss about so I tried installing Systemd on a laptop. following the guide on wiki.gentoo.org [1].

*

But I am having trouble running systemctl to configure the services I want started. Heres what I get (both as root and as a normal user).

*

# systemctl --all --full

Failed to get D-Bus connection: No connection to service manager.

*

I know Dbus is running for sure.

*

$ ps ax | grep dbus

2094 ? Ss 0:09 /usr/bin/dbus-daemon --system

2803 ? S 0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session

2804 ? Ss 0:06 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session

*

I tried booting with systemd to see what happens. It starts booting fine up to the point where it starts mounting the partitions. It just stops after mounting my /home partition. Nothing works at this point apart from a hard reboot. My partitioning is simple separate partitions for boot, home, root and the portage tree (all ext4). No separate /usr (phew). Also I do not have an initramfs.

*

What am I missing? do I need to modify any of the systemd config files? etc?

*

*

Here are the details of some of the packages.



sys-fs/udev-182-r2 (gudev hwdb keymap openrc rule_generator -build -debug -doc -floppy -introspection -selinux -static-libs)

*

sys-apps/systemd-43 (acl pam tcpd -audit -cryptsetup -gtk -lzma -plymouth -selinux)

*

Thanks.

*

[1] http://wiki.gentoo.org/wiki/Systemd

*

--

*

- Yohan Pereira

*

The difference between a Miracle and a Fact is exactly the difference

between a mermaid and a seal.

-- Mark Twain
 
Old 03-30-2012, 06:06 PM
Canek Peláez Valdés
 
Default Systemd systemctl : Failed to get D-Bus connection

On Fri, Mar 30, 2012 at 3:50 AM, Yohan Pereira <yohan.pereira@gmail.com> wrote:
> Hi,
>
> Wanted to see whats all the fuss about so I tried installing Systemd on a
> laptop. following the guide on wiki.gentoo.org [1].
>
>
>
> But I am having trouble running systemctl to configure the services I want
> started. Heres what I get (both as root and as a normal user).
>
>
>
> # systemctl --all --full
>
> Failed to get D-Bus connection: No connection to service manager.

This will only work if you boot into systemd. Otherwise it doesn't.

> I know Dbus is running for sure.
>
>
>
> $ ps ax | grep dbus
>
> 2094 ? Ss 0:09 /usr/bin/dbus-daemon --system
>
> 2803 ? S 0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
>
> 2804 ? Ss 0:06 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7
> --session
>
>
>
> I tried booting with systemd to see what happens. It starts booting fine up
> to the point where it starts mounting the partitions. It just stops after
> mounting my /home partition. Nothing works at this point apart from a hard
> reboot. My partitioning is simple separate partitions for boot, home, root
> and the portage tree (all ext4). No separate /usr (phew). Also I do not have
> an initramfs.

Can I see your kernel command line as specified in /boot/grub/grub.cfg
(or /boot/grub2/grub.cfg)? The whole GRUB config would be useful.

Also, a cat /etc/fstab should shed some light on the issue.

> What am I missing? do I need to modify any of the systemd config files? etc?
>
>
>
>
>
> Here are the details of some of the packages.
>
> sys-fs/udev-182-r2 (gudev hwdb keymap openrc rule_generator -build -debug
> -doc -floppy -introspection -selinux -static-libs)
>
>
>
> sys-apps/systemd-43 (acl pam tcpd -audit -cryptsetup -gtk -lzma -plymouth
> -selinux)
>
>
>
> Thanks.
>
>
>
> [1] http://wiki.gentoo.org/wiki/Systemd

Regards.
--
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México
 
Old 03-30-2012, 07:40 PM
Yohan Pereira
 
Default Systemd systemctl : Failed to get D-Bus connection

On Friday 30 Mar 2012 12:06:52 Canek Peláez Valdés wrote:

> > # systemctl --all --full

> >

> > Failed to get D-Bus connection: No connection to service manager.

>

> This will only work if you boot into systemd. Otherwise it doesn't.

*

Oh the wiki page instructed me to configure systemd before enabling it .. weird.

*

> Can I see your kernel command line as specified in /boot/grub/grub.cfg

> (or /boot/grub2/grub.cfg)? The whole GRUB config would be useful.

>

> Also, a cat /etc/fstab should shed some light on the issue.

>

*

Ok after reading your mail I looked into my fstab and tried disabling everything one by one. Turns out this line in my fstab was the culprit.

*

#tmp in ram

none /tmp tmpfs defaults 1 2

*

Found this bug report [1] and so I changed the above entry to

*

#tmp in ram

tmpfs /tmp tmpfs defaults 0 0

*

works fine now. Like the fast boot and shut down.

*

[1] https://bugzilla.redhat.com/show_bug.cgi?id=717794

*

Thanks for the hint.

*

--

*

- Yohan Pereira

*

The difference between a Miracle and a Fact is exactly the difference

between a mermaid and a seal.

-- Mark Twain
 

Thread Tools




All times are GMT. The time now is 04:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org