unofficial mirror of guix-devel@gnu.org 
 help / color / Atom feed
* Installer script on Fedora doesn't work properly
@ 2020-06-29 22:04 Jan Wielkiewicz
  2020-06-30 10:55 ` jbranso
  2020-06-30 12:07 ` Ricardo Wurmus
  0 siblings, 2 replies; 5+ messages in thread
From: Jan Wielkiewicz @ 2020-06-29 22:04 UTC (permalink / raw)
  To: guix-devel

Hello,

I'm trying to install Guix on Fedora using the install script, but
something is not right.
I ran the script as root, it installed everything properly, but running
"guix pull" ends up with an error message: "guix pull: failed to connect
to `/var/guix/daemon-socket/socket': No such file or directory".
I tried rebooting a few times, running "systemctl enable guix-daemon",
"systemctl start guix-daemon", but with the same result.
Any idea what's wrong?
I think the installer script should *just work at all times* - this is
crucial to make Guix popular on other distros.
My suggestion: if it's not already done, consider adding automated
tests, checking whether the installer script works on major
distributions (on a VM) and if Guix works there. This should be checked
every release.

P.S. I'm going to resume my work on Jami soon, I've been busy with my
exams lately :P


Jan Wielkiewicz


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installer script on Fedora doesn't work properly
  2020-06-29 22:04 Installer script on Fedora doesn't work properly Jan Wielkiewicz
@ 2020-06-30 10:55 ` jbranso
  2020-06-30 12:07 ` Ricardo Wurmus
  1 sibling, 0 replies; 5+ messages in thread
From: jbranso @ 2020-06-30 10:55 UTC (permalink / raw)
  To: guix-devel

I'm guessing that the systemd service to start the guix daemon failed...

Is there a way that you can manually enable & start the systemd daemon that guix ships with?

June 29, 2020 6:05 PM, "Jan Wielkiewicz" <tona_kosmicznego_smiecia@interia.pl> wrote:

> Hello,
> 
> I'm trying to install Guix on Fedora using the install script, but
> something is not right.
> I ran the script as root, it installed everything properly, but running
> "guix pull" ends up with an error message: "guix pull: failed to connect
> to `/var/guix/daemon-socket/socket': No such file or directory".
> I tried rebooting a few times, running "systemctl enable guix-daemon",
> "systemctl start guix-daemon", but with the same result.
> Any idea what's wrong?
> I think the installer script should *just work at all times* - this is
> crucial to make Guix popular on other distros.
> My suggestion: if it's not already done, consider adding automated
> tests, checking whether the installer script works on major
> distributions (on a VM) and if Guix works there. This should be checked
> every release.
> 
> P.S. I'm going to resume my work on Jami soon, I've been busy with my
> exams lately :P
> 
> Jan Wielkiewicz


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installer script on Fedora doesn't work properly
  2020-06-29 22:04 Installer script on Fedora doesn't work properly Jan Wielkiewicz
  2020-06-30 10:55 ` jbranso
@ 2020-06-30 12:07 ` Ricardo Wurmus
  2020-06-30 21:27   ` Jan Wielkiewicz
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2020-06-30 12:07 UTC (permalink / raw)
  To: Jan Wielkiewicz; +Cc: guix-devel


Hi Jan,

> I ran the script as root, it installed everything properly, but running
> "guix pull" ends up with an error message: "guix pull: failed to connect
> to `/var/guix/daemon-socket/socket': No such file or directory".

This means the daemon isn’t running.

If you use SELinux in enforcing mode then the daemon is probably
prevented from starting.

> I think the installer script should *just work at all times* - this is
> crucial to make Guix popular on other distros.

Sure.  We have a draft SELinux policy for systems like yours, but it is
probably no longer current as Fedora’s SELinux policy is not frozen in
time.  I encourage you to try it and help debug it to adjust it for
current versions of Fedora.

> My suggestion: if it's not already done, consider adding automated
> tests, checking whether the installer script works on major
> distributions (on a VM) and if Guix works there. This should be checked
> every release.

These recommendations wouldn’t help in your case.  We can’t feasibly
maintain a farm of different distros (some with SELinux and some
without) where we install Guix all the time.

-- 
Ricardo


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installer script on Fedora doesn't work properly
  2020-06-30 12:07 ` Ricardo Wurmus
@ 2020-06-30 21:27   ` Jan Wielkiewicz
  2020-06-30 22:30     ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Wielkiewicz @ 2020-06-30 21:27 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

On Tue, 30 Jun 2020 14:07:44 +0200
Ricardo Wurmus <rekado@elephly.net> wrote:

> 
> Hi Jan,
Hi!

> 
> This means the daemon isn’t running.
> 
> If you use SELinux in enforcing mode then the daemon is probably
> prevented from starting.
I'm not aware of this - I just picked all default settings, not that
the choice was big.

> 
> Sure.  We have a draft SELinux policy for systems like yours, but it
> is probably no longer current as Fedora’s SELinux policy is not
> frozen in time.  I encourage you to try it and help debug it to
> adjust it for current versions of Fedora.
That's my first day running Fedora, but if someone gives me right
directions, I can help.

> 
> These recommendations wouldn’t help in your case.  We can’t feasibly
> maintain a farm of different distros (some with SELinux and some
> without) where we install Guix all the time.
> 
Even manual testing before making a release would be good. Btw
adding checkboxes to the issue tracker would make it easier for
everyone. Anyway, Guix should work on disributions considered to be
"industry standard" such as Debian, Fedora, etc. What about a list of
distributions Guix was tested on in the manual, with a link to it
somewhere on the main page.

The first impression is really important.


Jan Wielkiewcz


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Installer script on Fedora doesn't work properly
  2020-06-30 21:27   ` Jan Wielkiewicz
@ 2020-06-30 22:30     ` Ricardo Wurmus
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2020-06-30 22:30 UTC (permalink / raw)
  To: Jan Wielkiewicz; +Cc: guix-devel


Jan Wielkiewicz <tona_kosmicznego_smiecia@interia.pl> writes:

>> This means the daemon isn’t running.
>> 
>> If you use SELinux in enforcing mode then the daemon is probably
>> prevented from starting.
> I'm not aware of this - I just picked all default settings, not that
> the choice was big.

It’s not Guix, it’s Fedora.  Fedora ships with SELinux enabled by
default, which means that all software needs to have a policy that
declares in what context it runs and what other contexts it can access.

>> Sure.  We have a draft SELinux policy for systems like yours, but it
>> is probably no longer current as Fedora’s SELinux policy is not
>> frozen in time.  I encourage you to try it and help debug it to
>> adjust it for current versions of Fedora.
> That's my first day running Fedora, but if someone gives me right
> directions, I can help.

The first thing to do is to install the guix-daemon.cil file as
explained in the manual.  That file is part of the Guix source
repository.

Then as you start guix-daemon you need to look at
/var/log/audit/audit.log (or similar) to see why SELinux blocked the
daemon from running.

-- 
Ricardo


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-29 22:04 Installer script on Fedora doesn't work properly Jan Wielkiewicz
2020-06-30 10:55 ` jbranso
2020-06-30 12:07 ` Ricardo Wurmus
2020-06-30 21:27   ` Jan Wielkiewicz
2020-06-30 22:30     ` Ricardo Wurmus

unofficial mirror of guix-devel@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-devel/0 guix-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-devel guix-devel/ https://yhetil.org/guix-devel \
		guix-devel@gnu.org
	public-inbox-index guix-devel

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.devel
	nntp://news.gmane.io/gmane.comp.gnu.guix.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git