# Cannot access web GUI after upgrade from v2 to 3.4.1

**URL:** <https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386>\
**Category:** SCM-Manager (General)\
**Created:** [September 24, 2024, 7:37am UTC](https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386 "2024-09-24T07:37:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![egroups](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/egroups/32/1488_2.png) [@egroups](https://community.cloudogu.com/u/egroups)\
**Post date:** [September 24, 2024, 7:37am UTC](https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386/1 "2024-09-24T07:37:00Z")

</div>

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

scm-server running:

```auto
● 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:

```auto
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

---

<div class="post-metadata">

**Author:** ![pfeuffer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/pfeuffer/32/72_2.png) [@pfeuffer](https://community.cloudogu.com/u/pfeuffer)\
**Post date:** [September 24, 2024, 8:47am UTC](https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386/2 "2024-09-24T08:47:10Z")

</div>

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`?

---

<div class="post-metadata">

**Author:** ![egroups](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/egroups/32/1488_2.png) [@egroups](https://community.cloudogu.com/u/egroups)\
**Post date:** [September 24, 2024, 9:02am UTC](https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386/3 "2024-09-24T09:02:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pfeuffer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/pfeuffer/32/72_2.png) [@pfeuffer](https://community.cloudogu.com/u/pfeuffer)\
**Post date:** [September 24, 2024, 6:39pm UTC](https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386/4 "2024-09-24T18:39:25Z")

</div>

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:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/cloudogu2/original/2X/2/24ae94c92df7fef1fa9ef05909d6d63eeb2dc8f5.png)

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

---

<div class="post-metadata">

**Author:** ![egroups](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/egroups/32/1488_2.png) [@egroups](https://community.cloudogu.com/u/egroups)\
**Post date:** [September 26, 2024, 8:01am UTC](https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386/5 "2024-09-26T08:01:52Z")

</div>

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:

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

```

ll homeDir

```auto
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?

---

<div class="post-metadata">

**Author:** ![egroups](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/egroups/32/1488_2.png) [@egroups](https://community.cloudogu.com/u/egroups)\
**Post date:** [September 26, 2024, 10:22am UTC](https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386/6 "2024-09-26T10:22:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pfeuffer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/pfeuffer/32/72_2.png) [@pfeuffer](https://community.cloudogu.com/u/pfeuffer)\
**Post date:** [September 27, 2024, 6:36am UTC](https://community.cloudogu.com/t/cannot-access-web-gui-after-upgrade-from-v2-to-3-4-1/1386/7 "2024-09-27T06:36:25Z")

</div>

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!
