Cannot access web GUI after upgrade from v2 to 3.4.1

I upgraded SCM-Manager to version 3.4.1 on Rocky Linux 8,

scm-server running:

● scm-server.service - SCM-Manager Server
       Loaded: loaded (/etc/systemd/system/scm-server.service; enabled; vendor preset: disabled)
       Active: active (running) since Tue 2024-09-24 08:10:52 CEST; 9s ago
     Main PID: 83689 (java)
        Tasks: 29 (limit: 23213)
       Memory: 393.1M
       CGroup: /system.slice/scm-server.service
               └─83689 /usr/bin/java -Djava.awt.headless=true -classpath :/opt/scm-server/conf:/opt/scm-server/lib/* -Dapp.name=scm-server -Dapp.pid=83689 -Dapp.repo=/opt/scm-server/lib>
    
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.945 [main] DEBUG org.apache.commons.beanutils.converters.ArrayConverter - Converting 'java.net.URL[]' value '[Ljava.net.UR>
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.945 [main] DEBUG org.apache.commons.beanutils.converters.ArrayConverter -     No conversion required, value is already a j>
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.989 [main] INFO sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.legacy.LegacyRealm
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.989 [main] INFO sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class com.cloudogu.scm.ssh.auth.Public>
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.990 [main] INFO sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.initialization.Initial>
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.990 [main] INFO sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.DefaultRealm
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.990 [main] INFO sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.web.security.Administr>
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.990 [main] INFO sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.ApiKeyRealm
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.990 [main] INFO sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.AnonymousRealm
    zář 24 08:11:01 linux64.hcv.cz scm-server[83689]: 08:11:01.990 [main] INFO sonia.scm.lifecycle.modules.ScmSecurityModule - bind security realm class sonia.scm.security.BearerRealm

But cannot access web GUI:

HTTP ERROR 503 Service Unavailable
    URI:	/scm/repos/
    STATUS:	503
    MESSAGE:	Service Unavailable
    SERVLET:	-

How can identify path to change in config.yml:
contextPath,tempDir:
webapp:
workDir:
homeDir:

from previous version?

I try downgrade to version 3.4.0 but nothing effect

Hi @egroups ,

I’m not sure if I get your problem right. The relevant path should be the homeDir. This is the path to the data file of SCM-Manager (you should find directories like repositories and config here).

Looking at your 503 error it looks like you are using a reverse proxy. Have you set the correct port in the config.yml?

I setup homeDir and now I can login to web UI,but First Initialization.How can add previous repositories?

With “first initilization” you mean the step where you have to enter the token and create the first admin user? If you see this, you have not set up your homeDir correctly in the config.yml or it is not readable by the SCM server. The part of the file has to look something like this:

If you have set a path for homeDir, what do you get if you run a ls <your path>?

I create temporary Docker SCM-Manager 2.48.3,move dir repositories from old scm-server to /var/lib/scm/,chown -R scm:scm repositories,modify /var/lib/scm/config/repository-paths.xml.
After that I export all repositories (dump).
Returned to old server and import this dumps,it’s OK.
I created snapshot VM.

This is my config.yml:

webapp:
  workDir:
  homeDir: /opt/scm-server/work/webapp

ll homeDir

drwxr-xr-x 2 scm scm 4096 26. zář 09.36 config
drwxr-xr-x 5 scm scm   66 24. zář 15.45 index
drwxr-xr-x 3 scm scm   20 24. zář 13.48 lib
drwxr-xr-x 6 scm scm   96 24. zář 13.48 plugins
drwxr-xr-x 4 scm scm   42 24. zář 17.02 repositories
drwxr-xr-x 4 scm scm   30 24. zář 15.45 var
drwxr-xr-x 7 scm scm  142 24. zář 13.48 webapp

SCM GUI working.

After restart all is missing and again ‘Finish Initialization’.
Why?

I changed in config.yml tempDir: to /var/cache/scm/work/webapp and remove diacritic from repositories descriptions.
Now working OK

I’m glad that you got it running, @egroups . So you think the diacritics have been the problem? That’s not how it should be and we will check here. After your first reply I thought about whether your path mapping in docker and the user mapping is okay…

Thanks for the update!