Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Snapper complains about locale and fails upon dbus fatal exception
@ 2020-12-09 14:27 Mek101
  2020-12-09 14:48 ` ericonr
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Mek101 @ 2020-12-09 14:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

New issue by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/27047

Description:
### System

* xuname:  
  `Void 5.9.13_1 x86_64-musl AuthenticAMD uptodate rFFFF`

* package:  
  `snapper-0.8.14_1`

### Expected behavior
After enabling and ensuring that `snapperd` is running, `snapper` should run without errors.

### Actual behavior
Snapper complains about the locale, an issue that has already been reported 2 years ago but ignored #5212.

But most importantly, attempting to run snapper results in a fatal exception, which makes the program unusable.

Running `snapper`:
```
[mek101@home-server ~]$ snapper -c public_storage create-config /mountpoints/public_storage/
Failed to set locale. Fix your system.
Failure (dbus fatal exception)
[mek101@home-server ~]$
```

Running `snapperd`:
```
[mek101@home-server ~]$ snapperd
terminate called after throwing an instance of 'DBus::FatalException'
  what():  dbus fatal exception
Aborted
[mek101@home-server ~]$ 
```


### Steps to reproduce the behavior
Install the `snapper` package and run any command


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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
@ 2020-12-09 14:48 ` ericonr
  2020-12-09 14:51 ` Mek101
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ericonr @ 2020-12-09 14:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741819596

Comment:
Do you have the `dbus` system service running?

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
  2020-12-09 14:48 ` ericonr
@ 2020-12-09 14:51 ` Mek101
  2020-12-09 14:59 ` ericonr
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Mek101 @ 2020-12-09 14:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 354 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741821628

Comment:
I installed the `dbus` package and enabled the service. Now `snapper` appears to work.
Perhaps it shoulld be added in the dependencies of `snapper` (plus a post-installation message to remember to start `dbus`?)

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
  2020-12-09 14:48 ` ericonr
  2020-12-09 14:51 ` Mek101
@ 2020-12-09 14:59 ` ericonr
  2020-12-09 15:06 ` Mek101
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ericonr @ 2020-12-09 14:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 786 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741825993

Comment:
Making `snapper` depend on `dbus` sounds reasonable to me. Could you open a PR for it?

Having documentation in the install message is a bit complicated, though. Few people read them, and accessing them isn't something most people remember how to do, so if they miss it during installation they are unlikely to ever read them.

Void doesn't have dbus enabled by default and leaves that as something the user can choose to enable or not. Therefore, it's expected that a fatal error about dbus would prompt the user to try and enable the service. Information about dbus is covered in https://docs.voidlinux.org/config/session-management.html

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (2 preceding siblings ...)
  2020-12-09 14:59 ` ericonr
@ 2020-12-09 15:06 ` Mek101
  2020-12-09 15:08 ` Mek101
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Mek101 @ 2020-12-09 15:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741830710

Comment:
Correction: the command above (`snapper -c public_storage create-config /mountpoints/public_storage/`) still reports an error
```
[root@home-server mek101]# snapper -v -c public_storage create-config /mountpoints/public_storage/\@data/
Failed to set locale. Fix your system.
Failure (error.something).
[root@home-server mek101]#
```
Although the effects as listed on the [arch wiki](https://wiki.archlinux.org/index.php/Snapper#Create_a_new_configuration) seem to have worked fine.

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (3 preceding siblings ...)
  2020-12-09 15:06 ` Mek101
@ 2020-12-09 15:08 ` Mek101
  2020-12-09 15:31 ` ericonr
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Mek101 @ 2020-12-09 15:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 618 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741832194

Comment:
> Making `snapper` depend on `dbus` sounds reasonable to me. Could you open a PR for it?

I need to check what to do first, but ok.

> Having documentation in the install message is a bit complicated, though. Few people read them, and accessing them isn't something most people remember how to do, so if they miss it during installation they are unlikely to ever read them.

I was more thinking on something simple like "Snapper requires a running dbus session to work!"

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (4 preceding siblings ...)
  2020-12-09 15:08 ` Mek101
@ 2020-12-09 15:31 ` ericonr
  2020-12-09 16:24 ` loreb
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: ericonr @ 2020-12-09 15:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741847532

Comment:
The issue is more that nearly no one reads post install messages :/

That said, I'm not super strongly opposed to adding the warning to the package. You'd have to add an `INSTALL.msg` file and put a message like "Snapper requires the dbus service to work."

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (5 preceding siblings ...)
  2020-12-09 15:31 ` ericonr
@ 2020-12-09 16:24 ` loreb
  2020-12-09 16:48 ` Mek101
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: loreb @ 2020-12-09 16:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 407 bytes --]

New comment by loreb on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741884224

Comment:
Isn't it just the service, snapperd, that requires dbus? The program, snapper, has a --no-dbus that iirc some distros used
to manage snapshots from cron.{hourly,daily,weekly,monthly}, so **IF** memory serves me /etc/sv/snapper/run should check that dbus is running.

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (6 preceding siblings ...)
  2020-12-09 16:24 ` loreb
@ 2020-12-09 16:48 ` Mek101
  2020-12-09 16:54 ` loreb
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: Mek101 @ 2020-12-09 16:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741899207

Comment:
There's no such check in the snapperd service
```
[root@home-server mek101]# cat /etc/sv/snapperd/run 
#!/bin/sh
exec snapperd
[root@home-server mek101]#
```

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (7 preceding siblings ...)
  2020-12-09 16:48 ` Mek101
@ 2020-12-09 16:54 ` loreb
  2020-12-09 17:36 ` ericonr
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: loreb @ 2020-12-09 16:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 399 bytes --]

New comment by loreb on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741903322

Comment:
LOL yeah, I meant like "if I remember correctly (about --no-dbus), the fix should go in /etc/sv/snapperd/run".
That being said, I checked the most likely candidate (artix) and it appears I misremembered:
they do run snapper from cron, but not without dbus.

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (8 preceding siblings ...)
  2020-12-09 16:54 ` loreb
@ 2020-12-09 17:36 ` ericonr
  2020-12-10 13:36 ` ericonr
  2020-12-10 13:36 ` [ISSUE] [CLOSED] " ericonr
  11 siblings, 0 replies; 13+ messages in thread
From: ericonr @ 2020-12-09 17:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 376 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-741928856

Comment:
```
[root@home-server mek101]# cat /etc/sv/snapperd/run 
#!/bin/sh
exec snapperd
```

Tbh, that check is necessary only if the program tries to launch its own dbus or something. If it fails at launch, that's all we really need.

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

* Re: Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (9 preceding siblings ...)
  2020-12-09 17:36 ` ericonr
@ 2020-12-10 13:36 ` ericonr
  2020-12-10 13:36 ` [ISSUE] [CLOSED] " ericonr
  11 siblings, 0 replies; 13+ messages in thread
From: ericonr @ 2020-12-10 13:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/27047#issuecomment-742525266

Comment:
I'm closing this issue for now.

If any of you come up with a better solution, please make a PR or open a new issue for discussion. We could also improve the void-docs page, though I'm not sure what that'd look like.

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

* Re: [ISSUE] [CLOSED] Snapper complains about locale and fails upon dbus fatal exception
  2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
                   ` (10 preceding siblings ...)
  2020-12-10 13:36 ` ericonr
@ 2020-12-10 13:36 ` ericonr
  11 siblings, 0 replies; 13+ messages in thread
From: ericonr @ 2020-12-10 13:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1134 bytes --]

Closed issue by Mek101 on void-packages repository

https://github.com/void-linux/void-packages/issues/27047

Description:
### System

* xuname:  
  `Void 5.9.13_1 x86_64-musl AuthenticAMD uptodate rFFFF`

* package:  
  `snapper-0.8.14_1`

### Expected behavior
After enabling and ensuring that `snapperd` is running, `snapper` should run without errors.

### Actual behavior
Snapper complains about the locale, an issue that has already been reported 2 years ago but ignored #5212.

But most importantly, attempting to run snapper results in a fatal exception, which makes the program unusable.

Running `snapper`:
```
[mek101@home-server ~]$ snapper -c public_storage create-config /mountpoints/public_storage/
Failed to set locale. Fix your system.
Failure (dbus fatal exception)
[mek101@home-server ~]$
```

Running `snapperd`:
```
[mek101@home-server ~]$ snapperd
terminate called after throwing an instance of 'DBus::FatalException'
  what():  dbus fatal exception
Aborted
[mek101@home-server ~]$ 
```


### Steps to reproduce the behavior
Install the `snapper` package and run any command


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

end of thread, other threads:[~2020-12-10 13:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-09 14:27 [ISSUE] Snapper complains about locale and fails upon dbus fatal exception Mek101
2020-12-09 14:48 ` ericonr
2020-12-09 14:51 ` Mek101
2020-12-09 14:59 ` ericonr
2020-12-09 15:06 ` Mek101
2020-12-09 15:08 ` Mek101
2020-12-09 15:31 ` ericonr
2020-12-09 16:24 ` loreb
2020-12-09 16:48 ` Mek101
2020-12-09 16:54 ` loreb
2020-12-09 17:36 ` ericonr
2020-12-10 13:36 ` ericonr
2020-12-10 13:36 ` [ISSUE] [CLOSED] " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).