Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
@ 2021-06-28 10:51 jfcolom
  2021-06-29  1:16 ` sgn
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jfcolom @ 2021-06-28 10:51 UTC (permalink / raw)
  To: ml

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

New issue by jfcolom on void-packages repository

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

Description:
### System

* package:  
  *deluge-2.0.3_10

### Expected behavior

`deluged` service should start up with `deluge` system user, and therefore, get/set its configuration files from  /var/lib/deluge/.config/deluge

### Actual behavior

It is starts with `root` and, therefore, it gets/sets the configuration from /root/.config/deluge. As it cannot write there after that, there are some permission errors and it does not start properly.

### Workaround

In `/etc/sv/deluged/run`, replace

`exec deluged -d -U deluge -g deluge ${OPTS} 2>&1`

by

`exec chpst -u deluge:deluge deluged -d -U deluge -g deluge ${OPTS} 2>&1`

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
@ 2021-06-29  1:16 ` sgn
  2021-07-01  1:38 ` [ISSUE] [CLOSED] " sgn
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2021-06-29  1:16 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-870154269

Comment:
I think we can go further to move config to `/var/lib/deluge`, without `.config/deluge` part. Please check.

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

* Re: [ISSUE] [CLOSED] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
  2021-06-29  1:16 ` sgn
@ 2021-07-01  1:38 ` sgn
  2021-07-01  5:38 ` jfcolom
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2021-07-01  1:38 UTC (permalink / raw)
  To: ml

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

Closed issue by jfcolom on void-packages repository

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

Description:
### System

* package:  
  *deluge-2.0.3_10

### Expected behavior

`deluged` service should start up with `deluge` system user, and therefore, get/set its configuration files from  /var/lib/deluge/.config/deluge

### Actual behavior

It is starts with `root` and, therefore, it gets/sets the configuration from /root/.config/deluge. As it cannot write there after that, there are some permission errors and it does not start properly.

### Workaround

In `/etc/sv/deluged/run`, replace

`exec deluged -d -U deluge -g deluge ${OPTS} 2>&1`

by

`exec chpst -u deluge:deluge deluged -d -U deluge -g deluge ${OPTS} 2>&1`

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
  2021-06-29  1:16 ` sgn
  2021-07-01  1:38 ` [ISSUE] [CLOSED] " sgn
@ 2021-07-01  5:38 ` jfcolom
  2021-08-05 19:19 ` q66
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jfcolom @ 2021-07-01  5:38 UTC (permalink / raw)
  To: ml

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

New comment by jfcolom on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-871936844

Comment:
Thanx!


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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (2 preceding siblings ...)
  2021-07-01  5:38 ` jfcolom
@ 2021-08-05 19:19 ` q66
  2021-08-05 19:22 ` q66
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: q66 @ 2021-08-05 19:19 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-893721635

Comment:
this is a bad fix, it broke my use case (i override the user it is started as, with /etc/sv/deluged/conf, but the chpst to unprivileged user means it can't change user on its own later)

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (3 preceding siblings ...)
  2021-08-05 19:19 ` q66
@ 2021-08-05 19:22 ` q66
  2021-08-06  2:49 ` sgn
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: q66 @ 2021-08-05 19:22 UTC (permalink / raw)
  To: ml

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

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-893723155

Comment:
@sgn the proper fix is to keep things as they were, but pass `-c /var/lib/deluge` before `${OPTS}`

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (4 preceding siblings ...)
  2021-08-05 19:22 ` q66
@ 2021-08-06  2:49 ` sgn
  2021-08-08  4:11 ` sgn
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2021-08-06  2:49 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-893962243

Comment:
Maybe this https://github.com/void-linux/void-packages/pull/32357

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (5 preceding siblings ...)
  2021-08-06  2:49 ` sgn
@ 2021-08-08  4:11 ` sgn
  2021-08-08  4:12 ` [ISSUE] [CLOSED] " sgn
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2021-08-08  4:11 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-894740045

Comment:
Hm, keep things as it were shouldn't work at all https://github.com/deluge-torrent/deluge/commit/d08c3f72e94a3a2b440b5a1a36dd8f7f8641d4fa

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

* Re: [ISSUE] [CLOSED] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (6 preceding siblings ...)
  2021-08-08  4:11 ` sgn
@ 2021-08-08  4:12 ` sgn
  2021-08-18 10:46 ` jfcolom
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2021-08-08  4:12 UTC (permalink / raw)
  To: ml

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

Closed issue by jfcolom on void-packages repository

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

Description:
### System

* package:  
  *deluge-2.0.3_10

### Expected behavior

`deluged` service should start up with `deluge` system user, and therefore, get/set its configuration files from  /var/lib/deluge/.config/deluge

### Actual behavior

It is starts with `root` and, therefore, it gets/sets the configuration from /root/.config/deluge. As it cannot write there after that, there are some permission errors and it does not start properly.

### Workaround

In `/etc/sv/deluged/run`, replace

`exec deluged -d -U deluge -g deluge ${OPTS} 2>&1`

by

`exec chpst -u deluge:deluge deluged -d -U deluge -g deluge ${OPTS} 2>&1`

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (7 preceding siblings ...)
  2021-08-08  4:12 ` [ISSUE] [CLOSED] " sgn
@ 2021-08-18 10:46 ` jfcolom
  2021-08-18 10:49 ` jfcolom
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jfcolom @ 2021-08-18 10:46 UTC (permalink / raw)
  To: ml

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

New comment by jfcolom on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-901012340

Comment:
``deluged`` is now getting its configuration from /var/lib/deluge/.config instead of /var/lib/deluge/.config/deluge
This breaks ``deluge-web`` service or, at any rate creates some inconsistency, as deluge-web gets its configuration from /var/lib/deluge/.config/deluge.

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (8 preceding siblings ...)
  2021-08-18 10:46 ` jfcolom
@ 2021-08-18 10:49 ` jfcolom
  2021-08-18 10:53 ` jfcolom
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jfcolom @ 2021-08-18 10:49 UTC (permalink / raw)
  To: ml

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

New comment by jfcolom on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-901012340

Comment:
``deluged`` is now getting its configuration from /var/lib/deluge/.config instead of /var/lib/deluge/.config/deluge
This breaks ``deluge-web`` service or, at any rate creates some inconsistency, as deluge-web gets its configuration from /var/lib/deluge/.config/deluge.

Workaround: in /etc/sv/deluged/run, set the configuration path
`
exec deluged -d -U deluge -g deluge -c /var/lib/deluge/.config/deluge ${OPTS} 2>&1`

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (9 preceding siblings ...)
  2021-08-18 10:49 ` jfcolom
@ 2021-08-18 10:53 ` jfcolom
  2021-08-18 10:54 ` sgn
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: jfcolom @ 2021-08-18 10:53 UTC (permalink / raw)
  To: ml

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

New comment by jfcolom on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-901012340

Comment:
``deluged`` is now getting its configuration from /var/lib/deluge/.config instead of /var/lib/deluge/.config/deluge
This breaks ``deluge-web`` service or, at any rate creates some inconsistency, as deluge-web gets its configuration from /var/lib/deluge/.config/deluge.

Workaround: in /etc/sv/deluged/run, set the configuration path
`
exec deluged -d -U deluge -g deluge -c /var/lib/deluge/.config/deluge ${OPTS} 2>&1`

Another workaround: do not start deluged service (`sv start deluge`), but launch deluged process from the web interface offered by deluge-web.

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (10 preceding siblings ...)
  2021-08-18 10:53 ` jfcolom
@ 2021-08-18 10:54 ` sgn
  2021-08-18 10:54 ` sgn
  2021-08-18 10:55 ` jfcolom
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2021-08-18 10:54 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-901016632

Comment:
> `deluged` is now getting its configuration from /var/lib/deluge/.config instead of /var/lib/deluge/.config/deluge
> This breaks `deluge-web` service or, at any rate creates some inconsistency, as deluge-web gets its configuration from /var/lib/deluge/.config/deluge.
> 
> Workaround: in /etc/sv/deluged/run, set the configuration path
> ` exec deluged -d -U deluge -g deluge -c /var/lib/deluge/.config/deluge ${OPTS} 2>&1`

Fixed, :( programming is hard.


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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (11 preceding siblings ...)
  2021-08-18 10:54 ` sgn
@ 2021-08-18 10:54 ` sgn
  2021-08-18 10:55 ` jfcolom
  13 siblings, 0 replies; 15+ messages in thread
From: sgn @ 2021-08-18 10:54 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-901016632

Comment:
> `deluged` is now getting its configuration from /var/lib/deluge/.config instead of /var/lib/deluge/.config/deluge
> This breaks `deluge-web` service or, at any rate creates some inconsistency, as deluge-web gets its configuration from /var/lib/deluge/.config/deluge.
> 
> Workaround: in /etc/sv/deluged/run, set the configuration path
> ` exec deluged -d -U deluge -g deluge -c /var/lib/deluge/.config/deluge ${OPTS} 2>&1`

Fixed, :( programming is hard.
4588318d93e5729ccad5262e9d1782349156bf76

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

* Re: Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge
  2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
                   ` (12 preceding siblings ...)
  2021-08-18 10:54 ` sgn
@ 2021-08-18 10:55 ` jfcolom
  13 siblings, 0 replies; 15+ messages in thread
From: jfcolom @ 2021-08-18 10:55 UTC (permalink / raw)
  To: ml

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

New comment by jfcolom on void-packages repository

https://github.com/void-linux/void-packages/issues/31690#issuecomment-901017356

Comment:
Thanks

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

end of thread, other threads:[~2021-08-18 10:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 10:51 [ISSUE] Service "deluged" won't get/set its config files from /var/lib/deluge/.config/deluge but from /root/.config/deluge jfcolom
2021-06-29  1:16 ` sgn
2021-07-01  1:38 ` [ISSUE] [CLOSED] " sgn
2021-07-01  5:38 ` jfcolom
2021-08-05 19:19 ` q66
2021-08-05 19:22 ` q66
2021-08-06  2:49 ` sgn
2021-08-08  4:11 ` sgn
2021-08-08  4:12 ` [ISSUE] [CLOSED] " sgn
2021-08-18 10:46 ` jfcolom
2021-08-18 10:49 ` jfcolom
2021-08-18 10:53 ` jfcolom
2021-08-18 10:54 ` sgn
2021-08-18 10:54 ` sgn
2021-08-18 10:55 ` jfcolom

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).