Error creating new repository from webapp

Running Oracle express 18c
Manual install on windows 10

Using the webapp: File -> New Repository
Results in error: (can not load repository). See screenshot and tomcat error below

2019-11-05 16:25:23,097 ERROR [http-bio-7997-exec-9] co.gerger.sc.resources.Settings: Settings.properties couldn’t be migrated to repositories’ home path.
java.io.FileNotFoundException: C:\GitoraServer\Gitora3\repositoriesfolder.separator = \Settings.properties (Het systeem kan het opgegeven pad niet vinden)
at java.io.FileOutputStream.open0(Native Method) ~[na:1.8.0_231]
at java.io.FileOutputStream.open(Unknown Source) ~[na:1.8.0_231]
at java.io.FileOutputStream.(Unknown Source) ~[na:1.8.0_231]
at java.io.FileOutputStream.(Unknown Source) ~[na:1.8.0_231]
at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:670) ~[commons-io-1.3.2.jar:1.3.2]
at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:652) ~[commons-io-1.3.2.jar:1.3.2]
at co.gerger.sc.resources.Settings.migrateToRepositriesHomePath(Settings.java:64) [classes/:na]
at co.gerger.sc.resources.Settings.(Settings.java:46) [classes/:na]
at co.gerger.sc.view.GitServlet.doPost(GitServlet.java:81) [classes/:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) [servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) [servlet-api.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) [catalina.jar:7.0.69]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.69]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat7-websocket.jar:7.0.69]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.69]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.69]
at co.gerger.filters.GZIPFilter.doFilter(GZIPFilter.java:67) [classes/:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.69]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.69]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.69]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.69]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [catalina.jar:7.0.69]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) [catalina.jar:7.0.69]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:7.0.69]
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [catalina.jar:7.0.69]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.69]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436) [catalina.jar:7.0.69]
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078) [tomcat-coyote.jar:7.0.69]
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-coyote.jar:7.0.69]
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) [tomcat-coyote.jar:7.0.69]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_231]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_231]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.69]
at java.lang.Thread.run(Unknown Source) [na:1.8.0_231]

Hi Chris,

It seems like something’s off in your configuration. Would you mind sharing your Settings.properties file?

Kind regards,

Settings file for GitMachine

git.executable = C:\GitoraServer\Gitora3\Git\bin\git.exe
home.directory.path = C:\GitoraServer\Gitora3\repositories
folder.separator = \
other.separator = /
file.extension = .sql
elevator.file.name = elevator.js
use.elevation = false
group.repositories.for.users = false

Hi Chris,

Please double all backslashes like the following, restart Gitora server and try again. Make sure the last backslash at the end of the home.directory.path is there.

git.executable = C:\\GitoraServer\\Gitora3\\Git\\bin\\git.exe
home.directory.path = C:\\GitoraServer\\Gitora3\\repositories\\
folder.separator = \\
other.separator = /
file.extension = .sql
elevator.file.name = elevator.js
use.elevation = false
group.repositories.for.users = false

Kind regards,

This is better. Note that the fix_parameters_WINDOWS batch file introduces a single backslash at the end of home.directory.path which causes the problem

1 Like

Thank you for the feedback.

Kind regards,