* bug#50941: Potential bug in guix home
@ 2021-10-01 9:14 Pascal Lorenz
2021-10-01 17:11 ` Xinglu Chen
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Pascal Lorenz @ 2021-10-01 9:14 UTC (permalink / raw)
To: 50941
[-- Attachment #1: Type: text/plain, Size: 444 bytes --]
Hi!
I assumed user privileges should be enough for guix home, but guix home reconfigure home.scm returns this result:
/gnu/store/…-home
guix home: error: mkdir: permission denied
This happens in a fresh and up to date VirtualBox VM with the only changes being a few installed packages (emacs, vim & tmux) and the guix home configuration.
Please tell me if I forgot any relevant piece of information.
Best regards,
Pascal
[-- Attachment #2: Type: text/html, Size: 1408 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: Potential bug in guix home
2021-10-01 9:14 bug#50941: Potential bug in guix home Pascal Lorenz
@ 2021-10-01 17:11 ` Xinglu Chen
2021-10-01 19:04 ` Oleg Pykhalov
2021-10-02 7:01 ` bug#50941: I can confirm this bug too jgart via Bug reports for GNU Guix
2021-10-03 19:01 ` bug#50941: XDG_RUNTIME_DIR Pascal Lorenz
2 siblings, 1 reply; 11+ messages in thread
From: Xinglu Chen @ 2021-10-01 17:11 UTC (permalink / raw)
To: Pascal Lorenz, 50941
[-- Attachment #1: Type: text/plain, Size: 734 bytes --]
On Fri, Oct 01 2021, Pascal Lorenz wrote:
> Hi!
>
> I assumed user privileges should be enough for guix home, but guix
> home reconfigure home.scm returns this result:
>
> /gnu/store/…-home
> guix home: error: mkdir: permission denied
>
>
> This happens in a fresh and up to date VirtualBox VM with the only
> changes being a few installed packages (emacs, vim & tmux) and the
> guix home configuration.
>
> Please tell me if I forgot any relevant piece of information.
It’s hard to know why this happens without some more information.
Could you share a bracktrace if there was one, and what’s the contents
of the ‘home.scm’ file?
Does the issue happen if you run ‘guix home build home.scm’?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: Potential bug in guix home
2021-10-01 17:11 ` Xinglu Chen
@ 2021-10-01 19:04 ` Oleg Pykhalov
2021-10-02 8:14 ` Xinglu Chen
0 siblings, 1 reply; 11+ messages in thread
From: Oleg Pykhalov @ 2021-10-01 19:04 UTC (permalink / raw)
To: Xinglu Chen; +Cc: 50941, Pascal Lorenz
[-- Attachment #1: Type: text/plain, Size: 846 bytes --]
Hi,
Xinglu Chen <public@yoctocell.xyz> writes:
> On Fri, Oct 01 2021, Pascal Lorenz wrote:
>
>> Hi!
>>
>> I assumed user privileges should be enough for guix home, but guix
>> home reconfigure home.scm returns this result:
>>
>> /gnu/store/…-home
>> guix home: error: mkdir: permission denied
>>
>>
>> This happens in a fresh and up to date VirtualBox VM with the only
>> changes being a few installed packages (emacs, vim & tmux) and the
>> guix home configuration.
>>
>
> Does the issue happen if you run ‘guix home build home.scm’?
I guess I reproduced this. No, guix home build has no errors.
reconfigure requires /run/user directory which doesn't produced by
%base-services, but %desktop-services with [1] probably does.
[1] (service-extension file-system-service-type (const %elogind-file-systems))
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: I can confirm this bug too
2021-10-01 9:14 bug#50941: Potential bug in guix home Pascal Lorenz
2021-10-01 17:11 ` Xinglu Chen
@ 2021-10-02 7:01 ` jgart via Bug reports for GNU Guix
2021-10-02 7:04 ` jgart via Bug reports for GNU Guix
2021-10-03 12:45 ` Efraim Flashner
2021-10-03 19:01 ` bug#50941: XDG_RUNTIME_DIR Pascal Lorenz
2 siblings, 2 replies; 11+ messages in thread
From: jgart via Bug reports for GNU Guix @ 2021-10-02 7:01 UTC (permalink / raw)
To: 50941
I was going to report this today but Pascal beat me to it.
I get the same error when running `guix home reconfigure file.scm`.
`guix home build file.scm` builds fine without errors.
Here's the config that I tested that with:
```
(use-modules (gnu home)
(gnu packages)
;(guixrus packages guix-easy)
(gnu packages bash)
(gnu packages mail)
(gnu packages messaging)
(gnu packages password-utils)
(gnu packages guile)
(guixrus packages bower)
(gnu packages guile-xyz)
(gnu packages wget)
(gnu packages version-control)
(guixrus packages bower)
(gnu packages emacs))
;;(define* (pkgs #:rest lst)
;; (map specification->package+output lst))
(define-macro (define-tools group-name . group-package-names)
"custom helper for defining groups of packages"
`(define ,group-name
(map (compose list specification->package+output)
',group-package-names)))
(define-tools jgart-profile "emacs-minimal" "offlineimap3"
"guile-pipe" "bower" "guile-colorized" "guile-readline" "tig"
"git" "gajim" "gajim-omemo" "keepassxc" "wgetpaste")
(define jgart-packages
(home-environment
(packages (list tig wgetpaste))))
jgart-packages
```
3B1D 7F19 E36B B60C 0F5B 2CA9 A52A A2B4 77B6 DD35
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: I can confirm this bug too
2021-10-02 7:01 ` bug#50941: I can confirm this bug too jgart via Bug reports for GNU Guix
@ 2021-10-02 7:04 ` jgart via Bug reports for GNU Guix
2021-10-02 7:07 ` jgart via Bug reports for GNU Guix
2021-10-03 12:45 ` Efraim Flashner
1 sibling, 1 reply; 11+ messages in thread
From: jgart via Bug reports for GNU Guix @ 2021-10-02 7:04 UTC (permalink / raw)
To: 50941
I'm forgot to mention that I tested this on void linux.
all best,
jgart
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: I can confirm this bug too
2021-10-02 7:04 ` jgart via Bug reports for GNU Guix
@ 2021-10-02 7:07 ` jgart via Bug reports for GNU Guix
0 siblings, 0 replies; 11+ messages in thread
From: jgart via Bug reports for GNU Guix @ 2021-10-02 7:07 UTC (permalink / raw)
To: 50941
Sorry for the unused code in the example.
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: Potential bug in guix home
2021-10-01 19:04 ` Oleg Pykhalov
@ 2021-10-02 8:14 ` Xinglu Chen
0 siblings, 0 replies; 11+ messages in thread
From: Xinglu Chen @ 2021-10-02 8:14 UTC (permalink / raw)
To: Oleg Pykhalov; +Cc: 50941, Pascal Lorenz
[-- Attachment #1: Type: text/plain, Size: 928 bytes --]
merge 50941 50945
thanks
On Fri, Oct 01 2021, Oleg Pykhalov wrote:
> Hi,
>
> Xinglu Chen <public@yoctocell.xyz> writes:
>
>> On Fri, Oct 01 2021, Pascal Lorenz wrote:
>>
>>> Hi!
>>>
>>> I assumed user privileges should be enough for guix home, but guix
>>> home reconfigure home.scm returns this result:
>>>
>>> /gnu/store/…-home
>>> guix home: error: mkdir: permission denied
>>>
>>>
>>> This happens in a fresh and up to date VirtualBox VM with the only
>>> changes being a few installed packages (emacs, vim & tmux) and the
>>> guix home configuration.
>>>
>>
>> Does the issue happen if you run ‘guix home build home.scm’?
>
> I guess I reproduced this. No, guix home build has no errors.
>
> reconfigure requires /run/user directory which doesn't produced by
> %base-services, but %desktop-services with [1] probably does.
Ah, then this would be the same problem as bug#50945.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: I can confirm this bug too
2021-10-02 7:01 ` bug#50941: I can confirm this bug too jgart via Bug reports for GNU Guix
2021-10-02 7:04 ` jgart via Bug reports for GNU Guix
@ 2021-10-03 12:45 ` Efraim Flashner
2021-10-06 21:31 ` jgart via Bug reports for GNU Guix
1 sibling, 1 reply; 11+ messages in thread
From: Efraim Flashner @ 2021-10-03 12:45 UTC (permalink / raw)
To: jgart; +Cc: 50941
[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]
On Sat, Oct 02, 2021 at 03:01:52AM -0400, jgart via Bug reports for GNU Guix wrote:
> I was going to report this today but Pascal beat me to it.
>
> I get the same error when running `guix home reconfigure file.scm`.
>
> `guix home build file.scm` builds fine without errors.
Can you try setting XDG_RUNTIME_DIR to someplace that you have writable
and then running reconfigure again? I have to warn you though I don't
have a good answer for what to do if it works this time and doesn't work
if you log out and log back in again.
> Here's the config that I tested that with:
>
> ```
> (use-modules (gnu home)
> (gnu packages)
> ;(guixrus packages guix-easy)
> (gnu packages bash)
> (gnu packages mail)
> (gnu packages messaging)
> (gnu packages password-utils)
> (gnu packages guile)
> (guixrus packages bower)
> (gnu packages guile-xyz)
> (gnu packages wget)
> (gnu packages version-control)
> (guixrus packages bower)
> (gnu packages emacs))
>
> ;;(define* (pkgs #:rest lst)
> ;; (map specification->package+output lst))
>
> (define-macro (define-tools group-name . group-package-names)
> "custom helper for defining groups of packages"
> `(define ,group-name
> (map (compose list specification->package+output)
> ',group-package-names)))
>
> (define-tools jgart-profile "emacs-minimal" "offlineimap3"
> "guile-pipe" "bower" "guile-colorized" "guile-readline" "tig"
> "git" "gajim" "gajim-omemo" "keepassxc" "wgetpaste")
>
> (define jgart-packages
> (home-environment
> (packages (list tig wgetpaste))))
>
> jgart-packages
> ```
>
>
> 3B1D 7F19 E36B B60C 0F5B 2CA9 A52A A2B4 77B6 DD35
>
>
>
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: XDG_RUNTIME_DIR
2021-10-01 9:14 bug#50941: Potential bug in guix home Pascal Lorenz
2021-10-01 17:11 ` Xinglu Chen
2021-10-02 7:01 ` bug#50941: I can confirm this bug too jgart via Bug reports for GNU Guix
@ 2021-10-03 19:01 ` Pascal Lorenz
2021-10-05 6:23 ` Maxime Devos
2 siblings, 1 reply; 11+ messages in thread
From: Pascal Lorenz @ 2021-10-03 19:01 UTC (permalink / raw)
To: 50941
> Can you try setting XDG_RUNTIME_DIR to someplace that you have writable and then running reconfigure again? I have to warn you though I don't have a good answer for what to do if it works this time and doesn't work if you log out and log back in again.
That did not change a thing for me:
$ mkdir ~/tmp
$ XDG_RUNTIME_DIR=~/tmp/
$ guix home reconfigure ~/home.scm
/gnu/store/dhd3pgpzjzynfyd42kgldh18j40q8zda-home
guix home: error: mkdir: Permission denied
I don't know if that matters, but XDG_RUNTIME_DIR was not set at all before (only XDG_CONFIG_DIRS and XDG_DATA_DIRS.)
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: XDG_RUNTIME_DIR
2021-10-03 19:01 ` bug#50941: XDG_RUNTIME_DIR Pascal Lorenz
@ 2021-10-05 6:23 ` Maxime Devos
0 siblings, 0 replies; 11+ messages in thread
From: Maxime Devos @ 2021-10-05 6:23 UTC (permalink / raw)
To: Pascal Lorenz, 50941
[-- Attachment #1: Type: text/plain, Size: 578 bytes --]
Pascal Lorenz schreef op zo 03-10-2021 om 21:01 [+0200]:
> > Can you try setting XDG_RUNTIME_DIR to someplace that you have writable and then running reconfigure again? I have to warn you though I don't have a good answer for what to do if it works this time and doesn't work if you log out and log back in again.
>
> That did not change a thing for me:
>
> $ mkdir ~/tmp
> $ XDG_RUNTIME_DIR=~/tmp/
> $ guix home reconfigure ~/home.scm
XDG_RUNTIME_DIR might need to be exported as an environment variable:
$ export XDG_RUNTIME_DIR=$HOME/tmp
Greetings,
Maxime.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* bug#50941: I can confirm this bug too
2021-10-03 12:45 ` Efraim Flashner
@ 2021-10-06 21:31 ` jgart via Bug reports for GNU Guix
0 siblings, 0 replies; 11+ messages in thread
From: jgart via Bug reports for GNU Guix @ 2021-10-06 21:31 UTC (permalink / raw)
To: Efraim Flashner; +Cc: 50941
On Sun, 03 Oct 2021 15:45:34 +0300 Efraim Flashner <efraim@flashner.co.il> wrote:
> On Sat, Oct 02, 2021 at 03:01:52AM -0400, jgart via Bug reports for GNU Guix wrote:
> > I was going to report this today but Pascal beat me to it.
> >
> > I get the same error when running `guix home reconfigure file.scm`.
> >
> > `guix home build file.scm` builds fine without errors.
>
> Can you try setting XDG_RUNTIME_DIR to someplace that you have writable
> and then running reconfigure again? I have to warn you though I don't
> have a good answer for what to do if it works this time and doesn't work
> if you log out and log back in again.
That fixed it for me.
Specifically `export XDG_RUNTIME_DIR=$HOME/tmp` like Maxime mentioned.
I think this should be documented for guix home users on a foreign distro so they
don't get frustrated with this detail of getting set up.
WDYT?
Or is there another way that this configuration should be managed on a foreign distro?
all best,
jgart
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-10-06 22:05 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-01 9:14 bug#50941: Potential bug in guix home Pascal Lorenz
2021-10-01 17:11 ` Xinglu Chen
2021-10-01 19:04 ` Oleg Pykhalov
2021-10-02 8:14 ` Xinglu Chen
2021-10-02 7:01 ` bug#50941: I can confirm this bug too jgart via Bug reports for GNU Guix
2021-10-02 7:04 ` jgart via Bug reports for GNU Guix
2021-10-02 7:07 ` jgart via Bug reports for GNU Guix
2021-10-03 12:45 ` Efraim Flashner
2021-10-06 21:31 ` jgart via Bug reports for GNU Guix
2021-10-03 19:01 ` bug#50941: XDG_RUNTIME_DIR Pascal Lorenz
2021-10-05 6:23 ` Maxime Devos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.