View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0010956 | Taler | merchant backend | public | 2026-01-31 19:13 | 2026-03-20 23:55 |
| Reporter | vecirex | Assigned To | Florian Dold | Resolution deadline | |
| Implementer | Reviewer | ||||
| Release signed by | Deployed by | ||||
| Verifier | Communicator | ||||
| Data protection authority notification required | No | ||||
| CSIRT notification required | No | ||||
| Estimated effort (hours) | Actual effort (hours) | 0 | |||
| Fast-track | No | ||||
| Work package | none | ||||
| Priority | urgent | Severity | block | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | git (master) | ||||
| Target Version | 1.5 | Fixed in 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 | closed | Christian Grothoff | After installing taler-merchant (Deb/trixie-testing): /var/lib/taler-merchant missing, instead /var/lib/taler-exchange is there |
| child of | 0011081 | closed | Christian Grothoff | 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. | |
| The missing directories are now created by the Debian packages. | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-01-31 19:13 | vecirex | New Issue | |
| 2026-01-31 19:16 | vecirex | Description Updated | |
| 2026-01-31 19:17 | vecirex | Relationship added | related to 0010588 |
| 2026-02-01 10:11 | vecirex | Description Updated | |
| 2026-02-01 10:11 | vecirex | Note Added: 0027521 | |
| 2026-02-01 17:15 | Christian Grothoff | Assigned To | => vecirex |
| 2026-02-01 17:15 | Christian Grothoff | Status | new => assigned |
| 2026-02-01 17:15 | Christian Grothoff | Product Version | => git (master) |
| 2026-02-01 17:15 | Christian Grothoff | Target Version | => 1.5 |
| 2026-02-01 17:17 | Christian Grothoff | Note Added: 0027534 | |
| 2026-02-05 19:12 | vecirex | Status | assigned => acknowledged |
| 2026-02-13 13:00 | vecirex | Note Added: 0027703 | |
| 2026-02-13 13:01 | vecirex | Status | acknowledged => feedback |
| 2026-02-13 13:02 | vecirex | Priority | normal => low |
| 2026-02-15 15:47 | vecirex | Relationship added | related to 0011081 |
| 2026-02-15 15:47 | vecirex | Relationship replaced | child of 0011081 |
| 2026-02-15 19:21 | vecirex | Priority | low => urgent |
| 2026-02-15 19:21 | vecirex | Severity | minor => block |
| 2026-02-15 19:21 | vecirex | Status | feedback => assigned |
| 2026-02-15 19:21 | vecirex | Note Added: 0027741 | |
| 2026-02-15 19:22 | vecirex | Note Added: 0027742 | |
| 2026-02-15 19:23 | vecirex | Assigned To | vecirex => Florian Dold |
| 2026-02-15 19:24 | vecirex | Note Edited: 0027741 | |
| 2026-02-15 19:31 | vecirex | Note Edited: 0027742 | |
| 2026-02-16 11:15 | Florian Dold | Status | assigned => informing |
| 2026-02-16 11:15 | Florian Dold | Resolution | open => fixed |
| 2026-02-16 11:15 | Florian Dold | Note Added: 0027750 | |
| 2026-03-10 12:36 | Christian Grothoff | Fixed in Version | => 1.5 |
| 2026-03-20 23:55 | Christian Grothoff | Status | informing => closed |