View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0010956 | Taler | merchant backend | public | 2026-01-31 20:13 | 2026-02-15 20:31 |
| Reporter | vecirex | Assigned To | Florian Dold | ||
| Priority | urgent | Severity | block | Reproducibility | always |
| Status | assigned | Resolution | open | ||
| Product Version | git (master) | ||||
| Target Version | 1.5 | ||||
| Summary | 0010956: taler-merchant expects /var/lib/taler-merchant/ to exist | ||||
| Description | This folder is non-existent, only /var/lib/taler-exchange/ (by mistake, I guess; separate ticket exists: 0010588) gets created upon installation of the taler-merchant package. Using psql with the taler-merchant-httpd user, following can happen: taler-merchant=> quit could not save history to file "/var/lib/taler-merchant/.psql_history": No such file or directory Solution would be like: mkdir -p /var/lib/taler-merchant/ touch /var/lib/taler-merchant/.psql_history chown -R taler-merchant-httpd: /var/lib/taler-merchant/.psql_history | ||||
| Tags | No tags attached. | ||||
| related to | 0010588 | assigned | Florian Dold | After installing taler-merchant (Deb/trixie-testing): /var/lib/taler-merchant missing, instead /var/lib/taler-exchange is there |
| child of | 0011081 | confirmed | typst helper should not break sandbox, use local packages and/or symlinks instead |
|
|
fix UNIX commands suggested |
|
|
I'm not sure what the delta to 0010588 is here, but yes, we should probably modify the Debian package scripts to create the /var/lib/taler-merchant folder -- possibly when we create the UID/group (instead of with the above commands). |
|
|
Observation: when using taler-terms-generator to produce the /terms/ location, /var/lib/taler-merchant gets created. Contents so-then: [snip] ### root@lifeline:~# ls -l /var/lib/taler-merchant/ total 4 drwxr-xr-x 3 root root 4096 Feb 10 13:57 terms ### root@lifeline:~# ls -lR /var/lib/taler-merchant/ /var/lib/taler-merchant/: total 4 drwxr-xr-x 3 root root 4096 Feb 10 13:57 terms /var/lib/taler-merchant/terms: total 4 drwxr-xr-x 2 root root 4096 Feb 10 13:57 en /var/lib/taler-merchant/terms/en: total 48 -rw-r--r-- 1 root root 7710 Feb 10 13:57 merchant-tos-tops-v0.html -rw-r--r-- 1 root root 4401 Feb 10 13:57 merchant-tos-tops-v0.md -rw-r--r-- 1 root root 22504 Feb 10 13:57 merchant-tos-tops-v0.pdf -rw-r--r-- 1 root root 4459 Feb 10 13:57 merchant-tos-tops-v0.txt ### root@lifeline:~# [/snip] |
|
|
We need to package taler-merchant with mkdir -p /var/lib/taler-merchant/.cache # to create PDFs in reporting The folder is also needed at least in two other cases: - It gets auto-created when you create the /terms/ (ToS), but if run as root with the wrong permissions, then things being root:. - psql tries to save history to this folder, which happens bc folder is declared as the $HOME to taler-merchant-httpd (default $USER for the processes of taler-merchant) without login shell. |
|
|
The folder should be created upon installation and upgrading (prior versions don't create the folder), in case that's differentiated. Close also 0010588, by removing the creation of /var/lib/taler-exchange/ -- I assume this to be a copy-paste issue taler-exchange -> taler-merchant, but didn't check. The folder should not to be created if only taler-merchant is installed. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-01-31 20:13 | vecirex | New Issue | |
| 2026-01-31 20:16 | vecirex | Description Updated | |
| 2026-01-31 20:17 | vecirex | Relationship added | related to 0010588 |
| 2026-02-01 11:11 | vecirex | Description Updated | |
| 2026-02-01 11:11 | vecirex | Note Added: 0027521 | |
| 2026-02-01 18:15 | Christian Grothoff | Assigned To | => vecirex |
| 2026-02-01 18:15 | Christian Grothoff | Status | new => assigned |
| 2026-02-01 18:15 | Christian Grothoff | Product Version | => git (master) |
| 2026-02-01 18:15 | Christian Grothoff | Target Version | => 1.5 |
| 2026-02-01 18:17 | Christian Grothoff | Note Added: 0027534 | |
| 2026-02-05 20:12 | vecirex | Status | assigned => acknowledged |
| 2026-02-13 14:00 | vecirex | Note Added: 0027703 | |
| 2026-02-13 14:01 | vecirex | Status | acknowledged => feedback |
| 2026-02-13 14:02 | vecirex | Priority | normal => low |
| 2026-02-15 16:47 | vecirex | Relationship added | related to 0011081 |
| 2026-02-15 16:47 | vecirex | Relationship replaced | child of 0011081 |
| 2026-02-15 20:21 | vecirex | Priority | low => urgent |
| 2026-02-15 20:21 | vecirex | Severity | minor => block |
| 2026-02-15 20:21 | vecirex | Status | feedback => assigned |
| 2026-02-15 20:21 | vecirex | Note Added: 0027741 | |
| 2026-02-15 20:22 | vecirex | Note Added: 0027742 | |
| 2026-02-15 20:23 | vecirex | Assigned To | vecirex => Florian Dold |
| 2026-02-15 20:24 | vecirex | Note Edited: 0027741 | |
| 2026-02-15 20:31 | vecirex | Note Edited: 0027742 |