[OKAPI-1031] "apt-get install okapi" should create /var/lib/okapi on reinstall Created: 29/Nov/19 Updated: 22/Sep/21 Resolved: 16/Aug/21 |
|
| Status: | Closed |
| Project: | Okapi |
| Components: | None |
| Affects versions: | None |
| Fix versions: | 4.9.0 |
| Type: | Bug | Priority: | TBD |
| Reporter: | Julian Ladisch | Assignee: | Julian Ladisch |
| Resolution: | Done | Votes: | 0 |
| Labels: | keep-bug, platform-backlog | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Sprint: | |
| Story Points: | 1 |
| Development Team: | Core: Platform |
| Description |
|
How to reproduce: sudo apt-get install okapi=2.32.0-1 sudo apt-get remove okapi sudo apt-get install okapi=2.32.0-1 sudo systemctl daemon-reload sudo systemctl restart okapi.service Result from systemctl status okapi.service:
okapi.service: Changing to the requested working directory failed: No such file or directory
okapi.service: Failed at step CHDIR spawning /usr/share/folio/okapi/bin/okapi.sh: No such file or directory
okapi.service: Main process exited, code=exited, status=200/CHDIR
okapi.service: Failed with result 'exit-code'.
/lib/systemd/system/okapi.service configures WorkingDirectory=/var/lib/okapi but it doesn't exist. After manually creating the directory it succeeds:
sudo mkdir /var/lib/okapi
sudo systemctl restart okapi.service
Note that sudo apt-get remove okapi removes the directory /var/lib/okapi, the same for okapi upgrade. This bug also affects okapi=2.35.1-1 Please change the debian/ubuntu package so that it always creates the directory on install and doesn't delete it on upgrade. |