Re: Help! I just killed my Guix System!

2025-04-10 Thread Tanguy Le Carrour
Hi,


On Mon Apr 7, 2025 at 10:22 AM CEST, Rutherther wrote:
> "Tanguy Le Carrour"  writes:
>> TL;DR my Guix System refuses to boot and I’m left with a "scheme screen of
>> death". It’s a single system+data encrypted partition. How am I supposed to 
>> fix
>> that?
> […]
> Let me guess, you have /etc/guix/acl file pointing to a non existing
> store location.
> See https://issues.guix.gnu.org/77201, there is a bug with that that has
> the same symptom as you're experiencing.
>
> To fix it, delete this file in a live iso, and you should be good to go
> further.

It’s alive!! 🥳

I booted from a live ISO, removed the `acl` file… rebooted… and… it’s alive! 🥳
(yeah, I know, I already said that! 😅)

I wanted to try to do it in Scheme, but… well, you know, I like my good old
shell! 😁

Anyway, thanks again!

-- 
Tanguy



Re: Help! I just killed my Guix System!

2025-04-10 Thread Tanguy Le Carrour
Hi,


On Mon Apr 7, 2025 at 10:29 AM CEST, Tobias Geerinckx-Rice wrote:
> Once the initial panic wears off & as long as your file system isn't actually
> hosed, Guix Systems are actually extremely easy to re{pair,build,deploy}.
> More so than others.  I've become rather cavalier about ‘breaking’ my system.
>
>>Can someone think of a clever way to fix it from the "scheme screen of death"
>>or a way to voodoo-cross reinstall without wiping out the data.
>
> Well, I'd do neither.
>
> If you can still luksOpen & fsck & mount the partition(s) from an external
> system…

This worked, but…


> such as the Guix System installer, you can simply ‘guix system init’
> from your existing system configuration, no?

I’ll definitively try the chroot-init next time! Seems like something one needs
to know how to do. I just hope that "next time" won’t be too soon! 😅

Thanks,

-- 
Tanguy



Re: Help! I just killed my Guix System!

2025-04-10 Thread Tanguy Le Carrour
Hi,


On Thu Apr 10, 2025 at 9:28 AM CEST, Rutherther wrote:
> On April 10, 2025 9:12:43 AM GMT+02:00, Tanguy Le Carrour 
>  wrote:
>>I wanted to try to do it in Scheme, but… well, you know, I like my good old
>>shell! 😁
>
> You can get to a shell from the scheme environment as long as disk has been 
> mounted, and it was in your case. `(invoke "/bin/sh")`. Of course most stuff 
> wont work, you need to set up PATH etc. 

Good to know, thanks. I really need to work on my scheme! 😅

-- 
Tanguy



Re: [fr] Moment de convivialité Guix@Paris en mars

2025-04-10 Thread Nicolas Graves
Avec pas mal de retard mais beaucoup plus de maturité sur le sujet, j'ai
mis à jour la présentation que j'ai faite sur les extensions Guix :

https://github.com/nicolas-graves/guix-extensions/blob/main/presentation.org

J'ai ajouté notamment pas mal d'exemples et une clarification sur les
travaux récents sur les extensions Guix qui ont significativement
amélioré le développement d'extensions dans des canaux.

Dans les prochaines semaines, je vais probablement essayer d'en faire un
article sur le blog Guix, et peut-être même finir par rédiger la doc
pour le manuel.

Bonne journée !

Nicolas Graves

On 2025-03-05 12:16, Tanguy Le Carrour wrote:

> (Warning: this email is in french because the meeting is supposed
> to be held in French… and in person.)
>
> Bonjour Guix,
>
> Jeudi 20 mars à 19h se tiendra la sixième soirée de la 3ème saison
> des rencontres Guix à Paris.
>
> Retrouvez tous les détails sur l’Agenda du Libre :
> 
>
> En espérant vous y retrouver nombreu·ses.

-- 
Best regards,
Nicolas Graves



Shepherd stalls on `herd restart nginx`

2025-04-10 Thread Samuel Willey via
Hello, I host my homelab on GNU Guix and it runs pretty well. I do have 
a couple of issues, one being the namesake of this email. I'm not 
entirely certain the /exact /logs that y'all might need to help but here 
is what I think might help:


guix describe 

/var/log/messages  (Beginning with a 
`guix system reconfigure` and ending - stalling - with `sudo herd 
restart nginx`)


config.scm 

nginx.scm  (Module I use for my 
nginx-related configs)



If y'all need anything else, please let me know. I'm not sure whether or 
not I would make a separate issue for this but I can't reboot using 
--kexec, either.



Thanks!


Re: [fr] Moment de convivialité Guix@Paris en mars

2025-04-10 Thread Tanguy Le Carrour
Salut Nicolas,


On Thu Apr 10, 2025 at 10:58 AM CEST, Nicolas Graves wrote:
> Avec pas mal de retard mais beaucoup plus de maturité sur le sujet, j'ai
> mis à jour la présentation que j'ai faite sur les extensions Guix :
>
> https://github.com/nicolas-graves/guix-extensions/blob/main/presentation.org

Merci ! Ça aurai été mieux en Markdown, mais bon, personne n’est parfait ! 😉
J’ai ajouté le lien sur le Pad Guix@Paris… que personne ne lit car je
n’ai pas diffusé le lien ! Mais, un jour, ça finira sur la page dédiée de la
Guix Foundation !


> J'ai ajouté notamment pas mal d'exemples et une clarification sur les
> travaux récents sur les extensions Guix qui ont significativement
> amélioré le développement d'extensions dans des canaux.

Je n’hésiterai pas à te faire signe dès que j’aurais écrit ma prochaine
extension ! 😎


> Dans les prochaines semaines, je vais probablement essayer d'en faire un
> article sur le blog Guix, et peut-être même finir par rédiger la doc
> pour le manuel.

Ça, ça serait trop cool !

Bonne fin de semaine et à jeudi prochain j’espère,

-- 
Tanguy



Re: Help! I just killed my Guix System!

2025-04-10 Thread Tobias Geerinckx-Rice
Hi Tanguy,

Once the initial panic wears off & as long as your file system isn't actually 
hosed, Guix Systems are actually extremely easy to re{pair,build,deploy}.  More 
so than others.  I've become rather cavalier about ‘breaking’ my system.

>Can someone think of a clever way to fix it from the "scheme screen of death"
>or a way to voodoo-cross reinstall without wiping out the data.

Well, I'd do neither.

If you can still luksOpen & fsck & mount the partition(s) from an external 
system… such as the Guix System installer, you can simply ‘guix system init’ 
from your existing system configuration, no?

Just roughly—and alertly—follow the manual installation steps.  The ‘init’ only 
repopulates the target store, it won't touch anything else.

(This kind of ‘just re{pair,build} my system’ mode could conceivably be 
automated, some day, either from the installer or straight from the GRUB menu.  
It could also incorporate ‘guix gc --verify’.  Ah, to dream.)



Then, if you haven't yet, it's time to finally set up those automatic back-ups 
of /home & /etc & friends, so you can sleep again… :-)

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.



Re: adding Samba to config.scm

2025-04-10 Thread gfp

Hi,

thanks very much for your help.


sudo -E smbpasswd -a gast

and then the new password


does not work

I guess that everything that is configured in the config.scm file
is like set in stone
you can´t change it by a terminal command

I don´t know what will happen
if I delete this line in the config.scm:

 (password (crypt "firsttimepass" "$6$abc"))

But as you wrote I can log in without password as well.

2.
Still no success.

It could be a problem with KDE Desktop.

At the moment I can´t check with the MATE Desktop
because it doesn´t work.

It is interesting, that opening the file manager caja from MATE desktop
I can enter via Samba through network into my user file and also into 
the second user file created by samba.


The file manager dolphin (KDE) does not allow me to enter into the Samba 
network.

it gives an error:

"No connection to the computer for smb://tuxedo.local/


Gottfried



Am 09.04.25 um 08:00 schrieb Ignas Lapėnas:

Hi,


So what is exactly the wording?


sudo -E smbpasswd -a gast
and then the new password

Atleast that is what I did on VM
You also should not need to login to the guest account. Failing to
login should automatically use the gast user account as the user
connected.
Setting is controlled via `map to guest = Bad User`


What else do I have to do?


Nothing that I can think off. You have the unix account added via
(operating system ...)
You also have the samba user added via
smbpasswd

I mean it's possible to check if the folder itself is readable/writeable
by the user, but I kinda doubt that's where the issue lies.

\\{server}\public should be the UNC

You also do now seem to hit any special sections (there are 3 global,
printers, homes)

https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html

I'm pretty sure you've checked the logs. If not maybe there are some
issues that are registered, although not visible...

cd /var/log/samba




OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: Help! I just killed my Guix System!

2025-04-10 Thread Rutherther
Hi Tanguy, 

On April 10, 2025 9:12:43 AM GMT+02:00, Tanguy Le Carrour 
 wrote:
>Hi,
>
>
>On Mon Apr 7, 2025 at 10:22 AM CEST, Rutherther wrote:
>> "Tanguy Le Carrour"  writes:
>>> TL;DR my Guix System refuses to boot and I’m left with a "scheme screen of
>>> death". It’s a single system+data encrypted partition. How am I supposed to 
>>> fix
>>> that?
>> […]
>> Let me guess, you have /etc/guix/acl file pointing to a non existing
>> store location.
>> See https://issues.guix.gnu.org/77201, there is a bug with that that has
>> the same symptom as you're experiencing.
>>
>> To fix it, delete this file in a live iso, and you should be good to go
>> further.
>
>It’s alive!! 🥳
>
>I booted from a live ISO, removed the `acl` file… rebooted… and… it’s alive! 🥳
>(yeah, I know, I already said that! 😅)

Great!

>
>I wanted to try to do it in Scheme, but… well, you know, I like my good old
>shell! 😁

You can get to a shell from the scheme environment as long as disk has been 
mounted, and it was in your case. `(invoke "/bin/sh")`. Of course most stuff 
wont work, you need to set up PATH etc. 

>
>Anyway, thanks again!
>



Re: Help! I just killed my Guix System!

2025-04-10 Thread Tanguy Le Carrour
Hi Rutherther,

On Mon Apr 7, 2025 at 10:22 AM CEST, Rutherther wrote:
> Let me guess, you have /etc/guix/acl file pointing to a non existing
> store location.
> See https://issues.guix.gnu.org/77201, there is a bug with that that has
> the same symptom as you're experiencing.

Sounds like something that could have happened, as last week, I was trying to
setup qemu/libvirt!

I’ll read that and give a try to what you’re suggesting… I soon as I dare to go
back to work as I’m surrounded by Debian Sysadmins that love to make fun of me
and my "funny OS"! 😅
Their first reaction this morning was suggesting me to install Debian! 😁

Regards,

-- 
Tanguy



How can empty generated files in the store happen? Has someone experienced this?

2025-04-10 Thread Nicolas Graves


As in my critical december failure, I happen once again to have empty
files for files expected in my store: 

path `/gnu/store/31s8mcacwk8mma2kkxak13aawxqp58fg-module-import.drv' was 
modified! expected hash 
`274fd21f99bd7505109a1b348d1c46b93a418cb193710b25463a7b06906e82ce', got 
`77ac62e2629d8e45f624589c0c8bf99e24b3a722349bf1e79bc186008534e246'
path `/gnu/store/5495sw004194zdmmw50s5fgh9ym6p99r-kexec-load-system.scm' was 
modified! expected hash 
`77e18169214f6d9b13a6c6d0b0b451344f46fd07fe75dca8e506fdd75bc00982', got 
`34e00b8592a6ad465851a46a67464e076102fd5106ca6cb33a2f15009d30d590'
error: error parsing derivation 
`/gnu/store/rs1lp7lbb6ab6sf67gg8b91kf4hahhrg-kexec-load-system.scm.drv': 
expected string `Derive(['
error: error parsing derivation 
`/gnu/store/l0hs8cydj71z1l38d79bjzizr2lmarq9-upgrade-shepherd-services.scm.drv':
 expected string `Derive(['
path `/gnu/store/793bzzxy43slryabjqajwi9jri5cby26-module-import-builder' was 
modified! expected hash
`e33b72af5b867cc868e4804ffe6bcbac6693b043777a9dfdd2a92d488c5ac867', got
`77ac62e2629d8e45f624589c0c8bf99e24b3a722349bf1e79bc186008534e246'

How can that even happen?  I have a customized but pretty normal usage
of guix.

I use a btrfs file system, I don't if it can be the culprit, but this is
extremely annoying, as it can even break boots (if a boot configuration file
is empty).

-- 
Best regards,
Nicolas Graves