Updates overwrite port configuration

18 views
Skip to first unread message

Alan Hodges

unread,
Mar 5, 2021, 6:12:44 AMMar 5
to scmmanager

Hi,
I'm using a non-standard listening port (8085) for Scm Manager behind nginx, and it all works perfectly, but every time there is an Scm Manager update, the configuration gets reset to the default listening port (8080). Is there a way of avoiding this?
I've bee configuring the port both in /etc/default/scm and in /etc/scm/server-config.xml. Both of these seem to get overwritten during the update.

Sebastian Sdorra

unread,
Mar 5, 2021, 7:52:42 AMMar 5
to scmma...@googlegroups.com
Hi,
How did you install SCM-Manager rpm, deb, docker?

Sebastian

--
You received this message because you are subscribed to the Google Groups "scmmanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scmmanager+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scmmanager/6a7a3755-7a0d-4295-b1d0-930790de2603n%40googlegroups.com.

Alan Hodges

unread,
Mar 5, 2021, 7:57:17 AMMar 5
to scmmanager

I added "deb https://packages.scm-manager.org/repository/apt-v2-releases/ stable main" to /etc/apt/sources.list.d/scm-manager.list and installed using apt

Sebastian Sdorra

unread,
Mar 5, 2021, 8:03:25 AMMar 5
to scmma...@googlegroups.com
Ok, the debian package should not overwrite modified configurations. I will see what goes wrong.

Sebastian

Sebastian Sdorra

unread,
Mar 12, 2021, 1:43:06 AMMar 12
to scmma...@googlegroups.com
The issue is fixed with the upcoming 2.15.0 release.


It may be that this release overwrites the config one last time, but the following releases will no longer overwrite changed configs.

Sebastian

Alan Hodges

unread,
Mar 15, 2021, 5:03:09 AMMar 15
to scmmanager
Thanks Sebastian 😁

Alan Hodges

unread,
Mar 16, 2021, 9:30:15 AMMar 16
to scmmanager
Running an non-interactive upgrade as follows:
DEBIAN_FRONTEND=noninteractive UCF_FORCE_CONFFNEW=YES sudo -E apt-get -y upgrade
which included the 2.15.0 release, I got

Setting up scm-server (2.15.0) ...

Configuration file '/etc/default/scm-server'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** scm-server (Y/I/N/O/D/Z) [default=N] ?

which caused my script to hang waiting for user input.

This obviously is not respecting the non-interactivity of the upgrade process.
Shouldn't the installer respect the options supplied to apt-get, and install the new version?
If it's a one-off for this release, no problems, but if it's going to be a problem with future releases, it would be an issue.

Rene Pfeuffer

unread,
Mar 17, 2021, 1:51:47 PMMar 17
to scmmanager
Can you do us a favor and check this again with 2.15.1 and tell us, whether you still have to answer this interactive question?

Alan Hodges

unread,
Mar 17, 2021, 5:56:38 PMMar 17
to scmmanager
Yay!! That worked with no prompting (and keeping the configuration in /etc/default)
Thanks

Rene Pfeuffer

unread,
Mar 18, 2021, 3:49:52 AMMar 18
to scmmanager
Glad to hear this. Thanks for the feedback :-)

Alan Hodges

unread,
Mar 20, 2021, 1:19:19 AMMar 20
to scmmanager
You're very welcome. Thanks for fixing it so quickly
Reply all
Reply to author
Forward
0 new messages