microsoft / service-fabric

Service Fabric is a distributed systems platform for packaging, deploying, and managing stateless and stateful distributed applications and containers at large scale.
https://docs.microsoft.com/en-us/azure/service-fabric/
MIT License
3.03k stars 401 forks source link

[BUG] upgrade from 9.0.1103.1 wrong line terminators in /var/lib/dpkg/info/servicefabric.prerm file #1404

Closed dechnik closed 2 years ago

dechnik commented 2 years ago

Describe the bug Service-fabric won't upgrade to newest version because of prerm script file containing wrong line terminators

Nov 16 10:32:59 sfc-vmss000000 doupgrade._sfc-vmss_0.sh[28026]: Preparing to unpack .../servicefabric_9.0.1114.1.deb Nov 16 10:32:59 sfc-vmss000000 doupgrade._sfc-vmss_0.sh[28026]: dpkg (subprocess): unable to execute old servicefabric package pre-removal script (/var/lib/dpkg/info/servicefabric.prerm): No such file or directory Nov 16 10:32:59 sfc-vmss000000 doupgrade._sfc-vmss_0.sh[28026]: dpkg: warning: old servicefabric package pre-removal script subprocess returned error exit status 2 Nov 16 10:32:59 sfc-vmss000000 doupgrade._sfc-vmss_0.sh[28026]: dpkg: trying script from the new package instead Nov 16 10:32:59 sfc-vmss000000 doupgrade._sfc-vmss_0.sh[28026]: dpkg (subprocess): unable to execute new servicefabric package pre-removal script (/var/lib/dpkg/tmp.ci/prerm): No such file or directory Nov 16 10:32:59 sfc-vmss000000 doupgrade._sfc-vmss_0.sh[28026]: dpkg: error processing archive /mnt/sfroot/_sfc-vmss_0/Fabric/work/FabricUpgrade/servicefabric_9.0.1114.1.deb (--unpack): Nov 16 10:32:59 sfc-vmss000000 doupgrade._sfc-vmss_0.sh[28026]: new servicefabric package pre-removal script subprocess returned error exit status 2

manually running this script: bash: ./servicefabric.prerm: /bin/bash^M: bad interpreter: No such file or directory

after file reformat upgrade process continues without any issues

Service Fabric Runtime Version: 9.0.1103.1 9.0.1114.1

Environment:


Assignees: /cc @microsoft/service-fabric-triage

ChrisBurgessMS commented 2 years ago

Thank you for the report. Fixes have been made and will be included in the next 9.0 and 9.1 updates.