Skip to content

Problem when setting up dashjoin platform using github reference #493

@aldrin-metapolaris

Description

@aldrin-metapolaris

We've been trying to setup a new dashjoin platform instance (in kubernetes through argocd) using data from a github repository which contains the model folder of a previous instance (with all the progress and data). The setup configuration we have used is compliant with the one described in the documentation. As follows:

containers:
        - name: dashjoin-platform-user
          image: dashjoin/platform:6.2.2
          ports:
            - containerPort: 8080
          env:
            - name: DJ_ADMIN_PASS
              value: "password"
            - name: DASHJOIN_APPURL
              value: https://username@github.com/username/project1
            - name: DASHJOIN_HOME
              value: /deployments/myapp
          volumeMounts:
            - name: dashjoin-platform-user-cm1-volume 
              mountPath: /deployments/myapp/djroles.properties 
              subPath: djroles.properties 
            - name: dashjoin-platform-user-cm1-volume 
              mountPath: /deployments/myapp/djusers.properties 
              subPath: djusers.properties
      volumes:
        - name: dashjoin-platform-user-cm1-volume
          configMap:
            name: dashjoin-platform-user-cm1
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: dashjoin-platform-user-cm1
data:
  djroles.properties: |
    admin=admin
    company_user=authenticated
  djusers.properties: |
    # Dashjoin users
    # echo -n "admin:Dashjoin:Password" | md5sum -
    admin=password_hashed
    # echo -n "mpuser:Dashjoin:password" | md5sum -
    company_user=password_hashed

However, the repository fails to clone whenever there are files in the directory. In our case we are mapping the djusers.properties and djroles.properties as shown in the configuration above. And below is the error logs that we get for this deployment:

java.lang.Exception: Directory /deployments/myapp must be empty or contain a .git folder
	at org.dashjoin.util.Home.<init>(Home.java:57)
	at org.dashjoin.util.Home_Bean.doCreate(Unknown Source)
	at org.dashjoin.util.Home_Bean.create(Unknown Source)
	at org.dashjoin.util.Home_Bean.create(Unknown Source)
	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:119)
	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:38)
	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:35)
	at io.quarkus.arc.generator.Default_jakarta_enterprise_context_ApplicationScoped_ContextInstances.c37(Unknown Source)
	at io.quarkus.arc.generator.Default_jakarta_enterprise_context_ApplicationScoped_ContextInstances.computeIfAbsent(Unknown Source)
	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:35)
	at io.quarkus.arc.impl.ClientProxies.getApplicationScopedDelegate(ClientProxies.java:21)
	at org.dashjoin.util.Home_ClientProxy.arc$delegate(Unknown Source)
	at org.dashjoin.util.Home_ClientProxy.getFile(Unknown Source)
	at com.dashjoin.launch.LocalAuthManager.initialize(LocalAuthManager.java:68)
	at com.dashjoin.launch.LocalAuthManager.init(LocalAuthManager.java:101)
	at com.dashjoin.launch.LocalAuthManager.checkInitialUserCreation(LocalAuthManager.java:87)
	at com.dashjoin.launch.LocalAuthManager_ClientProxy.checkInitialUserCreation(Unknown Source)
	at com.dashjoin.launch.LaunchFactory.<init>(LaunchFactory.java:102)
	at com.dashjoin.launch.LaunchFactory_Bean.doCreate(Unknown Source)
	at com.dashjoin.launch.LaunchFactory_Bean.create(Unknown Source)
	at com.dashjoin.launch.LaunchFactory_Bean.create(Unknown Source)
	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:119)
	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:38)
	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:35)
	at io.quarkus.arc.generator.Default_jakarta_enterprise_context_ApplicationScoped_ContextInstances.c30(Unknown Source)
	at io.quarkus.arc.generator.Default_jakarta_enterprise_context_ApplicationScoped_ContextInstances.computeIfAbsent(Unknown Source)
	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:35)
	at io.quarkus.arc.impl.ClientProxies.getApplicationScopedDelegate(ClientProxies.java:21)
	at com.dashjoin.launch.LaunchFactory_ClientProxy.arc$delegate(Unknown Source)
	at com.dashjoin.launch.LaunchFactory_ClientProxy.arc_contextualInstance(Unknown Source)
	at com.dashjoin.launch.LaunchFactory_ProducerMethod_getDashjoinDatabase_JUAk4GPs3Xcct7wiqbvKKYKgPMs_Bean.doCreate(Unknown Source)
	at com.dashjoin.launch.LaunchFactory_ProducerMethod_getDashjoinDatabase_JUAk4GPs3Xcct7wiqbvKKYKgPMs_Bean.create(Unknown Source)
	at com.dashjoin.launch.LaunchFactory_ProducerMethod_getDashjoinDatabase_JUAk4GPs3Xcct7wiqbvKKYKgPMs_Bean.get(Unknown Source)
	at com.dashjoin.launch.LaunchFactory_ProducerMethod_getDashjoinDatabase_JUAk4GPs3Xcct7wiqbvKKYKgPMs_Bean.get(Unknown Source)
	at com.dashjoin.service.tenant.MultiTenantManagerFilter_Bean.doCreate(Unknown Source)
	at com.dashjoin.service.tenant.MultiTenantManagerFilter_Bean.create(Unknown Source)
	at com.dashjoin.service.tenant.MultiTenantManagerFilter_Bean.create(Unknown Source)
	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:119)
	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:38)
	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:35)
	at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:32)
	at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
	at io.quarkus.arc.impl.ComputingCacheContextInstances.computeIfAbsent(ComputingCacheContextInstances.java:19)
	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:35)
	at com.dashjoin.service.tenant.MultiTenantManagerFilter_Bean.get(Unknown Source)
	at com.dashjoin.service.tenant.MultiTenantManagerFilter_Bean.get(Unknown Source)
	at io.quarkus.arc.impl.ArcContainerImpl.beanInstanceHandle(ArcContainerImpl.java:559)
	at io.quarkus.arc.impl.ArcContainerImpl.beanInstanceHandle(ArcContainerImpl.java:539)
	at io.quarkus.arc.impl.ArcContainerImpl.beanInstanceHandle(ArcContainerImpl.java:572)
	at io.quarkus.arc.impl.ArcContainerImpl$3.get(ArcContainerImpl.java:331)
	at io.quarkus.arc.impl.ArcContainerImpl$3.get(ArcContainerImpl.java:328)
	at io.quarkus.resteasy.common.runtime.QuarkusConstructorInjector.construct(QuarkusConstructorInjector.java:39)
	at org.jboss.resteasy.core.providerfactory.ResteasyProviderFactoryImpl.injectedInstance(ResteasyProviderFactoryImpl.java:1283)
	at org.jboss.resteasy.core.interception.jaxrs.JaxrsInterceptorRegistryImpl$AbstractInterceptorFactory.createInterceptor(JaxrsInterceptorRegistryImpl.java:132)
	at org.jboss.resteasy.core.interception.jaxrs.JaxrsInterceptorRegistryImpl$OnDemandInterceptorFactory.initialize(JaxrsInterceptorRegistryImpl.java:146)
	at org.jboss.resteasy.core.interception.jaxrs.JaxrsInterceptorRegistryImpl$OnDemandInterceptorFactory.checkInitialize(JaxrsInterceptorRegistryImpl.java:157)
	at org.jboss.resteasy.core.interception.jaxrs.JaxrsInterceptorRegistryImpl$OnDemandInterceptorFactory.getInterceptor(JaxrsInterceptorRegistryImpl.java:165)
	at org.jboss.resteasy.core.interception.jaxrs.JaxrsInterceptorRegistryImpl$AbstractInterceptorFactory.postMatch(JaxrsInterceptorRegistryImpl.java:116)
	at org.jboss.resteasy.core.interception.jaxrs.JaxrsInterceptorRegistryImpl.postMatch(JaxrsInterceptorRegistryImpl.java:246)
	at org.jboss.resteasy.core.interception.jaxrs.ContainerRequestFilterRegistryImpl.postMatch(ContainerRequestFilterRegistryImpl.java:27)
	at org.jboss.resteasy.core.interception.jaxrs.ContainerRequestFilterRegistryImpl.postMatch(ContainerRequestFilterRegistryImpl.java:13)
	at org.jboss.resteasy.core.ResourceMethodInvoker.<init>(ResourceMethodInvoker.java:137)
	at org.jboss.resteasy.core.ResourceMethodRegistry.processMethod(ResourceMethodRegistry.java:335)
	at org.jboss.resteasy.core.ResourceMethodRegistry.register(ResourceMethodRegistry.java:272)
	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:227)
	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:201)
	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:184)
	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:171)
	at org.jboss.resteasy.core.ResourceMethodRegistry.addResourceFactory(ResourceMethodRegistry.java:156)
	at org.jboss.resteasy.core.ResourceMethodRegistry.addPerRequestResource(ResourceMethodRegistry.java:81)
	at org.jboss.resteasy.core.ResteasyDeploymentImpl.registerResources(ResteasyDeploymentImpl.java:486)
	at org.jboss.resteasy.core.ResteasyDeploymentImpl.registration(ResteasyDeploymentImpl.java:454)
	at org.jboss.resteasy.core.ResteasyDeploymentImpl.startInternal(ResteasyDeploymentImpl.java:162)
	at org.jboss.resteasy.core.ResteasyDeploymentImpl.start(ResteasyDeploymentImpl.java:127)
	at io.quarkus.resteasy.runtime.standalone.ResteasyStandaloneRecorder.staticInit(ResteasyStandaloneRecorder.java:75)
	at io.quarkus.deployment.steps.ResteasyStandaloneBuildStep$staticInit345281060.deploy_0(Unknown Source)
	at io.quarkus.deployment.steps.ResteasyStandaloneBuildStep$staticInit345281060.deploy(Unknown Source)
	at io.quarkus.runner.ApplicationImpl.<clinit>(Unknown Source)
	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160)
	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300)
	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newConstructorAccessor(MethodHandleAccessorFactory.java:103)
	at java.base/jdk.internal.reflect.ReflectionFactory.newConstructorAccessor(ReflectionFactory.java:200)
	at java.base/java.lang.reflect.Constructor.acquireConstructorAccessor(Constructor.java:549)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:70)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
	at com.dashjoin.launch.Start.main(Start.java:69)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.doRun(QuarkusEntryPoint.java:62)
	at io.quarkus.bootstrap.runner.QuarkusEntryPoint.main(QuarkusEntryPoint.java:33)
2025-11-12 15:41:49,173 INFO  [com.das.lau.LocalAuthManager] (main) Loading /deployments/myapp/djusers.properties
2025-11-12 15:41:49,174 INFO  [com.das.lau.LocalAuthManager] (main) Loading /deployments/myapp/djroles.properties

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions