space-on-premises-space-1 exited with code 13

Whenever I try to start Space using Docker Compose, I get `space-on-premises-space-1 exited with code 13` as an error. This error did not appear until I moved the config outside of the volumes and changed it so I can access it without an SSH tunnel.

The log is located here.

2
13 comments

I have this problem too, but it doesn't happen always... Right now it works without problem, but sometimes when I restart the containers, it throws this error. A fix would be appreciated :)

0

Stampylongr Hi,

Did this error start appearing after additional customization of the Space instance? The logs indicate the below issue:

javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.

It is likely, the configuration files are corrupted (some secret keys were inserted incorrectly or syntax was changed). You may try to rename the existing configs directory, then generate a new one with the following command: docker-compose -p space-on-premises run --entrypoint=sh init-configs /prepare_default_configs.sh. Once done, migrate all secrets from the old config files to the new ones.

1

Hi,

I have the same issue. I started from a fresh installation using Docker Compose. Everything worked fine with the proof of concept. Now I tried to simply generate the config file locally, for the same reason as Stampylongr . I wanted to be able to access my Space without SSH tunnel. But I did not modify any of the config files, I simply modified the docker-compose.yml as explained in https://www.jetbrains.com/help/space/configure-space-for-docker-compose-production-environment.html .
I tried the proposed fix but now I get a new error:

space-on-premises-space-1          | 2023-07-25 15:04:43.776 [server dispatch thread 1] INFO  circlet.platform.a.g.l [] - getString(engine): redis
space-on-premises-space-1          | 2023-07-25 15:04:43.848 [main] INFO  c.s.p.PackageRepositoryClientBase [] - Using Space Dart Client: orgMode = SINGLE_ORG, packagesMode = CONTEXT, publicUrl = http://localhost:8390, internalUrl = http://packages:9390
space-on-premises-space-1          | 2023-07-25 15:04:43.856 [main] INFO  c.s.p.PackageRepositoryClientBase [] - Using Space Crates Client: orgMode = SINGLE_ORG, packagesMode = CONTEXT, publicUrl = http://localhost:8390, internalUrl = http://packages:9390
space-on-premises-space-1          | 2023-07-25 15:04:44.745 [main] ERROR r.c.JvmTypeBasedSingletonDescriptor [] - Error creating instance of circlet.server.githosting.VcsHostingIdentityProvider
space-on-premises-space-1          | java.lang.reflect.InvocationTargetException: null
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
space-on-premises-space-1          |     at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
space-on-premises-space-1          |     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor$createInstanceOfImpl$2.invoke(JvmTypeBasedSingletonDescriptor.kt:35)
space-on-premises-space-1          |     at libraries.basics.ClassLoaderUtilsKt.withContextClassLoader(ClassLoaderUtils.kt:9)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:32)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ListDescriptor.constructInstance(ListDescriptor.kt:10)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ListDescriptor.constructInstance(ListDescriptor.kt:10)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedComponentStorage.composeDescriptors(Storage.kt:139)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedComponentStorage.compose(Storage.kt:128)
space-on-premises-space-1          |     at runtime.container.StorageComponentContainer.compose(Container.kt:40)
space-on-premises-space-1          |     at circlet.platform.a.i.b.a(b.java:40)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt.b(ServerKt.java:134)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt.a(ServerKt.java:27)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt.c(ServerKt.java:86)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt$platformMain$1.invokeSuspend(ServerKt$platformMain$1.java:41)
space-on-premises-space-1          |     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
space-on-premises-space-1          |     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
space-on-premises-space-1          |     at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
space-on-premises-space-1          |     at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
space-on-premises-space-1          |     at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
space-on-premises-space-1          |     at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
space-on-premises-space-1          |     at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
space-on-premises-space-1          |     at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt.a(ServerKt.java:58)
space-on-premises-space-1          |     at circlet.platform.a.e.d.a(d.java:83)
space-on-premises-space-1          |     at circlet.server.ServerKt.main(Server.kt:1)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
space-on-premises-space-1          |     at java.base/java.lang.reflect.Method.invoke(Method.java:568)
space-on-premises-space-1          |     at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
space-on-premises-space-1          |     at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Static.call(CallerImpl.kt:106)
space-on-premises-space-1          |     at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:188)
space-on-premises-space-1          |     at kotlin.reflect.jvm.internal.KCallableImpl.callBy(KCallableImpl.kt:111)
space-on-premises-space-1          |     at io.ktor.server.engine.internal.CallableUtilsKt.callFunctionWithInjection(CallableUtils.kt:119)
space-on-premises-space-1          |     at io.ktor.server.engine.internal.CallableUtilsKt.executeModuleFunction(CallableUtils.kt:36)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$launchModuleByName$1.invoke(ApplicationEngineEnvironmentReloading.kt:331)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$launchModuleByName$1.invoke(ApplicationEngineEnvironmentReloading.kt:330)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.avoidingDoubleStartupFor(ApplicationEngineEnvironmentReloading.kt:355)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.launchModuleByName(ApplicationEngineEnvironmentReloading.kt:330)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.access$launchModuleByName(ApplicationEngineEnvironmentReloading.kt:32)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$instantiateAndConfigureApplication$1.invoke(ApplicationEngineEnvironmentReloading.kt:311)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$instantiateAndConfigureApplication$1.invoke(ApplicationEngineEnvironmentReloading.kt:309)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.avoidingDoubleStartup(ApplicationEngineEnvironmentReloading.kt:337)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.instantiateAndConfigureApplication(ApplicationEngineEnvironmentReloading.kt:309)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.createApplication(ApplicationEngineEnvironmentReloading.kt:150)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.start(ApplicationEngineEnvironmentReloading.kt:276)
space-on-premises-space-1          |     at io.ktor.server.jetty.JettyApplicationEngineBase.start(JettyApplicationEngineBase.kt:52)
space-on-premises-space-1          |     at io.ktor.server.jetty.JettyApplicationEngine.start(JettyApplicationEngine.kt:24)
space-on-premises-space-1          |     at io.ktor.server.jetty.JettyApplicationEngine.start(JettyApplicationEngine.kt:15)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngine$DefaultImpls.start$default(ApplicationEngine.kt:78)
space-on-premises-space-1          |     at circlet.platform.a.e.a.d(a.java:17)
space-on-premises-space-1          |     at circlet.server.SpaceServer.main(Server.kt:7)
space-on-premises-space-1          | Caused by: java.lang.IllegalArgumentException: Illegal base64 character 25
space-on-premises-space-1          |     at java.base/java.util.Base64$Decoder.decode0(Base64.java:847)
space-on-premises-space-1          |     at java.base/java.util.Base64$Decoder.decode(Base64.java:566)
space-on-premises-space-1          |     at java.base/java.util.Base64$Decoder.decode(Base64.java:589)
space-on-premises-space-1          |     at runtime.Base64PlatformDefault.decode(Base64.kt:12)
space-on-premises-space-1          |     at runtime.Base64.decode(Base64.kt:77)
space-on-premises-space-1          |     at circlet.server.githosting.VcsHostingIdentityProvider.load(VcsHostingPermissions.kt:26)
space-on-premises-space-1          |     at circlet.server.githosting.VcsHostingIdentityProvider.<init>(VcsHostingPermissions.kt:86)
space-on-premises-space-1          |     ... 89 common frames omitted
space-on-premises-space-1          | 2023-07-25 15:04:44.769 [server dispatch thread 1] INFO  org.redisson.Version [] - Redisson 3.17.4
space-on-premises-space-1          | 2023-07-25 15:04:44.784 [main] ERROR circlet.server.SpaceServer [] - Failed to start circlet
space-on-premises-space-1          | java.lang.reflect.InvocationTargetException: null
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
space-on-premises-space-1          |     at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
space-on-premises-space-1          |     at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor$createInstanceOfImpl$2.invoke(JvmTypeBasedSingletonDescriptor.kt:35)
space-on-premises-space-1          |     at libraries.basics.ClassLoaderUtilsKt.withContextClassLoader(ClassLoaderUtils.kt:9)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:32)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ListDescriptor.constructInstance(ListDescriptor.kt:10)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ListDescriptor.constructInstance(ListDescriptor.kt:10)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.ResolveKt.bindArguments(Resolve.kt:56)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedSingletonDescriptor.createInstanceOfImpl(JvmTypeBasedSingletonDescriptor.kt:30)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.createInstanceOf(SingletonDescriptor.kt:128)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance$suspendImpl(SingletonDescriptor.kt:43)
space-on-premises-space-1          |     at runtime.container.SingletonDescriptor.constructInstance(SingletonDescriptor.kt)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedComponentStorage.composeDescriptors(Storage.kt:139)
space-on-premises-space-1          |     at runtime.container.JvmTypeBasedComponentStorage.compose(Storage.kt:128)
space-on-premises-space-1          |     at runtime.container.StorageComponentContainer.compose(Container.kt:40)
space-on-premises-space-1          |     at circlet.platform.a.i.b.a(b.java:40)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt.b(ServerKt.java:134)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt.a(ServerKt.java:27)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt.c(ServerKt.java:86)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt$platformMain$1.invokeSuspend(ServerKt$platformMain$1.java:41)
space-on-premises-space-1          |     at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
space-on-premises-space-1          |     at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
space-on-premises-space-1          |     at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
space-on-premises-space-1          |     at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
space-on-premises-space-1          |     at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
space-on-premises-space-1          |     at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
space-on-premises-space-1          |     at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
space-on-premises-space-1          |     at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
space-on-premises-space-1          |     at circlet.platform.a.ServerKt.a(ServerKt.java:58)
space-on-premises-space-1          |     at circlet.platform.a.e.d.a(d.java:83)
space-on-premises-space-1          |     at circlet.server.ServerKt.main(Server.kt:1)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
space-on-premises-space-1          |     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
space-on-premises-space-1          |     at java.base/java.lang.reflect.Method.invoke(Method.java:568)
space-on-premises-space-1          |     at kotlin.reflect.jvm.internal.calls.CallerImpl$Method.callMethod(CallerImpl.kt:97)
space-on-premises-space-1          |     at kotlin.reflect.jvm.internal.calls.CallerImpl$Method$Static.call(CallerImpl.kt:106)
space-on-premises-space-1          |     at kotlin.reflect.jvm.internal.KCallableImpl.callDefaultMethod$kotlin_reflection(KCallableImpl.kt:188)
space-on-premises-space-1          |     at kotlin.reflect.jvm.internal.KCallableImpl.callBy(KCallableImpl.kt:111)
space-on-premises-space-1          |     at io.ktor.server.engine.internal.CallableUtilsKt.callFunctionWithInjection(CallableUtils.kt:119)
space-on-premises-space-1          |     at io.ktor.server.engine.internal.CallableUtilsKt.executeModuleFunction(CallableUtils.kt:36)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$launchModuleByName$1.invoke(ApplicationEngineEnvironmentReloading.kt:331)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$launchModuleByName$1.invoke(ApplicationEngineEnvironmentReloading.kt:330)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.avoidingDoubleStartupFor(ApplicationEngineEnvironmentReloading.kt:355)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.launchModuleByName(ApplicationEngineEnvironmentReloading.kt:330)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.access$launchModuleByName(ApplicationEngineEnvironmentReloading.kt:32)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$instantiateAndConfigureApplication$1.invoke(ApplicationEngineEnvironmentReloading.kt:311)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading$instantiateAndConfigureApplication$1.invoke(ApplicationEngineEnvironmentReloading.kt:309)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.avoidingDoubleStartup(ApplicationEngineEnvironmentReloading.kt:337)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.instantiateAndConfigureApplication(ApplicationEngineEnvironmentReloading.kt:309)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.createApplication(ApplicationEngineEnvironmentReloading.kt:150)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngineEnvironmentReloading.start(ApplicationEngineEnvironmentReloading.kt:276)
space-on-premises-space-1          |     at io.ktor.server.jetty.JettyApplicationEngineBase.start(JettyApplicationEngineBase.kt:52)
space-on-premises-space-1          |     at io.ktor.server.jetty.JettyApplicationEngine.start(JettyApplicationEngine.kt:24)
space-on-premises-space-1          |     at io.ktor.server.jetty.JettyApplicationEngine.start(JettyApplicationEngine.kt:15)
space-on-premises-space-1          |     at io.ktor.server.engine.ApplicationEngine$DefaultImpls.start$default(ApplicationEngine.kt:78)
space-on-premises-space-1          |     at circlet.platform.a.e.a.d(a.java:17)
space-on-premises-space-1          |     at circlet.server.SpaceServer.main(Server.kt:7)
space-on-premises-space-1          | Caused by: java.lang.IllegalArgumentException: Illegal base64 character 25
space-on-premises-space-1          |     at java.base/java.util.Base64$Decoder.decode0(Base64.java:847)
space-on-premises-space-1          |     at java.base/java.util.Base64$Decoder.decode(Base64.java:566)
space-on-premises-space-1          |     at java.base/java.util.Base64$Decoder.decode(Base64.java:589)
space-on-premises-space-1          |     at runtime.Base64PlatformDefault.decode(Base64.kt:12)
space-on-premises-space-1          |     at runtime.Base64.decode(Base64.kt:77)
space-on-premises-space-1          |     at circlet.server.githosting.VcsHostingIdentityProvider.load(VcsHostingPermissions.kt:26)
space-on-premises-space-1          |     at circlet.server.githosting.VcsHostingIdentityProvider.<init>(VcsHostingPermissions.kt:86)
space-on-premises-space-1          |     ... 89 common frames omitted
space-on-premises-space-1 exited with code 13
0

Lucien Gremaud

Could you please share the modified docker-compose.yml file?

0

I'm not Lucien, but I create a YouTrack ticket with this same issue.  Here is my docker-compose.yml file:


version: '3.8'

services:
    init-configs:
        image: "public.registry.jetbrains.space/p/space-on-premises/docker/init-configs:2023.2.0"
        volumes:
        - ./config:/home/init-config/config
        environment:
            AUTOMATION_TAG: "2023.2.0.128"
            SPACE_VERSION: "2023.2.0"
    space:
        image: "public.registry.jetbrains.space/p/space-on-premises/docker/space:2023.2.0"
        volumes:
        - ./config:/home/space/circlet-server-onprem/config
        environment:
            JAVA_OPTS: "-Dconfig.file=/home/space/circlet-server-onprem/config/space.on-premises.conf -Dconfig.override_with_env_vars=true"
        depends_on:
            init-configs:
                condition: service_completed_successfully
            vcs:
                condition: service_started
            redis:
                condition: service_started
            postgres:
                condition: service_started
            minio:
                condition: service_started
            elasticsearch:
                condition: service_healthy
        ports:
        - "8084:8084"
        networks:
        - "frontend"
        - "backend-apps"
        - "backend-data"

    vcs:
        image: "public.registry.jetbrains.space/p/space-on-premises/docker/vcs-hosting:2023.2.0"
        volumes:
        - ./config:/home/space/git/vcs-hosting/config
        environment:
            JAVA_OPTS: '-Dproperties.file=config/vcs.on-premises.properties'
        depends_on:
            init-configs:
                condition: service_completed_successfully
            redis:
                condition: service_started
            postgres:
                condition: service_started
            minio:
                condition: service_started
            elasticsearch:
                condition: service_healthy
        ports:
        - "2222:2222"
        - "8080:8080"
        networks:
        - "frontend"
        - "backend-apps"
        - "backend-data"

    packages:
        image: "public.registry.jetbrains.space/p/space-on-premises/docker/packages:2023.2.0"
        volumes:
        - ./config:/home/space/packages-server/config
        environment:
            JAVA_OPTS: '-Dconfig.file=/home/space/packages-server/config/packages.on-premises.conf -Dconfig.override_with_env_vars=true'
        depends_on:
            init-configs:
                condition: service_completed_successfully
            redis:
                condition: service_started
            postgres:
                condition: service_started
            minio:
                condition: service_started
            elasticsearch:
                condition: service_healthy
        ports:
        - "8390:8390"
        - "9390:9390"
        networks:
        - "frontend"
        - "backend-apps"
        - "backend-data"

    langservice:
        image: "public.registry.jetbrains.space/p/space-on-premises/docker/langservice:2023.2.0"
        volumes:
        - ./config:/home/space/langservice-server/config
        environment:
            JAVA_OPTS: "-Dconfig.file=/home/space/langservice-server/config/langservice.on-premises.conf -Dconfig.override_with_env_vars=true"
        depends_on:
            init-configs:
                condition: service_completed_successfully
        ports:
        - "8095"
        networks:
        - "backend-apps"

    postgres:
        image: "postgres:12.2"
        volumes:
         - db_data:/var/lib/postgresql/data
        environment:
            POSTGRES_USER: space
            POSTGRES_PASSWORD: spacepassword
            POSTGRES_DB: spacedb
        ports:
        - "5432"
        networks:
        - "backend-data"

    elasticsearch:
        image: "elasticsearch:7.17.7"
        volumes:
        - elasticsearch_data:/usr/share/elasticsearch/data
        environment:
            ES_JAVA_OPTS: -Xms512m -Xmx1024m
            discovery.type: single-node
            xpack.security.enabled: "false"
        ports:
        - "9200"
        - "9300"
        healthcheck:
            test: [ "CMD", "curl", "-f", "http://localhost:9200/_cat/health" ]
            interval: 5s
            timeout: 5s
            retries: 10
            start_period: 20s
        networks:
        - "backend-data"

    redis:
        image: "redis:7.0.2-alpine"
        ports:
        - "6379"
        networks:
        - "backend-data"

    minio:
        image: minio/minio:RELEASE.2021-09-09T21-37-07Z
        volumes:
        - minio_data:/data
        environment:
            MINIO_ROOT_USER: space-access-key
            MINIO_ROOT_PASSWORD: space-secret-key
        command: server --address :9000 --console-address :9001 --compat /data
        ports:
        - "9000:9000"
        - "9001"
        networks:
        - "backend-data"
volumes:
    elasticsearch_data: {}
    db_data: {}
    minio_data: {}
    # config: {}

networks:
    frontend: {}
    backend-apps: {}
    backend-data: {}

0

Hello everyone! 

This error may occur in situations where the installation was started with the masterSecret value in the space.on-premises.conf file set to one value and has since been changed to a new value, while the DB remains the same.

May I ask if you already tried to drop the database and start the installation from scratch, or revert the config to the initial values used on the initial start? Thanks!

1

 

There seems to be an issue with the space installation process, actually. 

Pavel Boger 

"This error may occur in situations where the installation was started with the masterSecret value in the space.on-premises.conf file set to one value and has since been changed to a new value, while the DB remains the same."

The above is an answer that all support staff is giving… But it doesn't seem to work of late at all

I've already logged a ticket on 20 August and another follow up tonight, and originally communicated with Oleg, but he's not responsive at all.

I've actually made a video of the customer experience… Pavel Boger can you please have a look and let me know if it's me doing something wrong… or escalate this so that it can be resolve:

https://www.loom.com/share/9956dd7f53484ddc89c27efd32912f2b?sid=d4de41f9-0e5f-4950-9323-c0a2177d9ba1

The ticket that I've logged is:
https://space-support.jetbrains.com/hc/requests/5438607
 

0

It's the same problem. Is there a solution?

0

I found a solution.

I hope it helps~

1.  docker-compose -p space-on-premises down rm -f

    docker-compose -p space-on-premises up -d
 
    docker exec -it space:2023.2.0  cat /home/space/circlet-server-onprem/config/space.on-premises.conf | grep masterSecret

    masterSecret value notes

2. docker-compose -p space-on-premises down rm -f

3. https://www.jetbrains.com/help/space/configure-space-for-docker-compose-production-environment.html#enable-customization-of-your-space-on-premises-instance in order progress

   Apply the masterSecret value obtained in step 1 above to space.on-premises.conf and package.on-premises.conf.

0

hello, im facing the same issue, may Stampylongr or @...  please describe the steps required to fix it?

 thank you very much in advance

0

Hello, 

We have discovered an issue with the masterSecret key used for the db connection. The solution posted by A above can be considered as a temporary solution for the 2023.2.0 version. The team is currently investigating the root cause of this issue. I will post an update as soon as possible.

Sorry for the inconvenience caused by this issue!

 

0

Just a correction here… You did not discover an issue… I reported this issue on 20 August (11 days ago) and up until now JetBrains were not aware of an ongoing P1. This is likely something to address as it poses significant risk to customers' business. 

A further note why were breaking changes introduced (or any changes for that matter) without updating the version number?

0

Please sign in to leave a comment.