jookies / jasmin

Jasmin - Open source SMS gateway
http://jasminsms.com
Other
991 stars 540 forks source link

Deb upgrade fails #1158

Open Philio opened 7 months ago

Philio commented 7 months ago

Console log:

jasmin:x:999:
mkdir: cannot create directory ‘/etc/jasmin/store’: File exists
dpkg: error processing package jasmin-sms-gateway (--configure):
 installed jasmin-sms-gateway package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 jasmin-sms-gateway
Philio commented 7 months ago

Had to move /etc/jasmin/store and /var/log/jasmin re-run the upgrade, then move them back to replace the empty dirs the upgrade created.

Kisuke-CZE commented 7 months ago

Hi, post installation script is not ideal. I already suggested change in packaging: https://github.com/jookies/jasmin/pull/1156

You can try generated package from this changed style: jasmin-sms-gateway_0.11.0-2_all.zip

farirat commented 7 months ago

which os is this ?

Philio commented 7 months ago

which os is this ?

Ubuntu 22.04

farirat commented 7 months ago

Spinned a 22.04 instance and installed jasmin with success, please provide more details for troubleshooting

Kisuke-CZE commented 7 months ago

For me this happened too when upgrading from 0.10.X to 0.11. Problem was in post-install script which was not checking if directories exists - it was just issuing mkdir /etc/jasmin/store. On latest distro versions (on RHEL9 and Ubuntu 22.04) if any command in post-install script returned non-zero exit code, execution of that script was interrupted :(

This should be fixed in updated post-install script.