Error from migrating from Windows DB > Linux + MySQL
- Attempting to migrate from Windows + local built-in MS DB >>> Ubuntu 20.04 with MySQL 8
- Although the TC 2020.1.2 web interface loads and permits importing the backup, it fails after inputting database login info
Any ideas?
Error output:
<pre>com.intellij.execution.process.ProcessNotCreatedException: Cannot run program "null/maintainDB.sh": error=2, No such file or directory
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:123)
at jetbrains.buildServer.CommandLineExecutor.runProcess(CommandLineExecutor.java:87)
at jetbrains.buildServer.maintenance.StartupProcessor.lambda$runRestoreProcess$9(StartupProcessor.java:655)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
at java.lang.Thread.run(Thread.java:748)
caused by: java.io.IOException: Cannot run program "null/maintainDB.sh": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:528)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:120)
at jetbrains.buildServer.CommandLineExecutor.runProcess(CommandLineExecutor.java:87)
at jetbrains.buildServer.maintenance.StartupProcessor.lambda$runRestoreProcess$9(StartupProcessor.java:655)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
at java.lang.Thread.run(Thread.java:748)
caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:528)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:120)
at jetbrains.buildServer.CommandLineExecutor.runProcess(CommandLineExecutor.java:87)
at jetbrains.buildServer.maintenance.StartupProcessor.lambda$runRestoreProcess$9(StartupProcessor.java:655)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
at java.lang.Thread.run(Thread.java:748)
</pre>
<pre>java.lang.NullPointerException
at jetbrains.buildServer.maintenance.StartupProcessor.doRestore(StartupProcessor.java:1179)
at jetbrains.buildServer.maintenance.StartupProcessor.access$1700(StartupProcessor.java:22)
at jetbrains.buildServer.maintenance.StartupProcessor$3.call(StartupProcessor.java:21)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:90)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStage(StartupProcessor.java:271)
at jetbrains.buildServer.maintenance.StartupProcessor.processConcreteStageSafe(StartupProcessor.java:1120)
at jetbrains.buildServer.maintenance.StartupProcessor.processTeamCityLifecycle(StartupProcessor.java:1029)
at jetbrains.buildServer.maintenance.StartupProcessor.access$000(StartupProcessor.java:1058)
at jetbrains.buildServer.maintenance.StartupProcessor$1.run(StartupProcessor.java:1)
at java.lang.Thread.run(Thread.java:748)
</pre>
Please sign in to leave a comment.
Hello Scott!
Could I ask you to confirm how exactly do you start the TeamCity instance (e.g. do you use built-in scripts from <TeamCity>/bin folder - and if so, which one)? Code-wise, it appears as the variable in the script where we expect to have the path to <TeamCity>/bin comes null, and therefore the executable may not be found by the TeamCity process.
Hi Fedor,
It is just the startup.sh command
Is there another one I should be using?
Thanks,
Scott
Scott,
startup.sh would start just the Catalina server (and TeamCity as a servlet), but, unfortunately, it will not populate the required environment variables. A recommended approach is to use teamcity-server.sh as per this article: https://www.jetbrains.com/help/teamcity/installing-and-configuring-the-teamcity-server.html#InstallingandConfiguringtheTeamCityServer-StartingTeamCityserver
Kindly let me know if the issue is resolved after starting TeamCity via teamcity-server.sh or if there is anything else I can help with.
Thanks - that resolved the issue.