Successful provisioning yet missing types!


#1

I’ve a cluster on which c3-server-7.6.1.133-1.x86_64.rpm package is installed.
When I provision my tenant, the provisioning succeeded but some dependencies seems to be missing:

[tenant/tag] No such dependency 'efficiency' in package.json can be found in package 'tenant'
[tenant/tag] No such dependency 'alerts' in package.json can be found in package 'tenant'
[tenant/tag] No such dependency 'foundation' in package.json can be found in package 'common'
[tenant/tag] No such dependency 'tariff' in package.json can be found in package 'common'
[tenant/tag] Created 1.96Mb ZIP of 2 packages in 0.4s
[tenant/tag] Provisioning completed successfully (2018-02-15T17:25:50.644+01:00)
Time taken: 0m 11.893s
Finished

When I connect to /static/console, I first see the following exception printed:

main.js:913 c3.love.exceptions.C3RuntimeException: Invalid type RequestChartConfig!
at c3.love.C3.type(C3.java:371)
at c3.love.C3.type(C3.java:364)
at c3.engine.database.admin.AclPrivilegesListenerMethods.lambda$validate$1(AclPrivilegesListenerMethods.java:70)
at c3.engine.database.admin.AclPrivilegesListenerMethods$$Lambda$607/481378519.accept(Unknown Source)
at c3.love.typesys.Stream.each(Stream.java:870)
at c3.engine.database.admin.AclPrivilegesListenerMethods.validate(AclPrivilegesListenerMethods.java:68)
at c3.engine.database.admin.AclPrivilegesListenerMethods.notify_(AclPrivilegesListenerMethods.java:52)
at c3.type.deployment.methods.AclPrivilegesListenerMethodsBase$1.accept(AclPrivilegesListenerMethodsBase.java:83)
at c3.type.deployment.methods.AclPrivilegesListenerMethodsBase$1.accept(AclPrivilegesListenerMethodsBase.java:79)
at c3.server.engine.TypeSysEngine.execute(TypeSysEngine.java:67)
at c3.server.impl.Task.doFilter(Task.java:247)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:199)
at c3.server.envLogs.EnvLogListener.EnvLogListener.doFilter(EnvLogListener.java:75)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:197)
at c3.server.impl.dataCache.DataCacheEngine.doFilter(DataCacheEngine.java:126)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:197)
at c3.server.impl.ServerDispatcherBase.doFilter(ServerDispatcherBase.java:167)
at c3.server.impl.InteractiveDispatcher.doFilter(InteractiveDispatcher.java:79)
at c3.server.impl.Task.run(Task.java:183)
at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:399)
at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:305)
at c3.love.C3.dispatch(C3.java:502)
at c3.love.C3.dispatchWithArgs(C3.java:539)
at c3.love.C3.dispatch(C3.java:533)
at c3.love.C3.dispatch(C3.java:529)
at c3.type.deployment.MetadataListener$Subclass.notify_(MetadataListener.java:183)
at c3.deploy.TagMethodsDeployCommon.lambda$notifyMetadataChange$64(TagMethodsDeployCommon.java:1273)
at c3.deploy.TagMethodsDeployCommon$$Lambda$593/837921758.accept(Unknown Source)
at java.lang.Iterable.forEach(Iterable.java:75)
at c3.deploy.TagMethodsDeployCommon.notifyMetadataChange(TagMethodsDeployCommon.java:1232)
at c3.deploy.TagMethodsDeploySeedCommon.deploySeed(TagMethodsDeploySeedCommon.java:103)
at c3.deploy.TagMethodsDeployCommon.deployLogic(TagMethodsDeployCommon.java:652)
at c3.deploy.TagMethodsDeployCommon.lambda$null$15(TagMethodsDeployCommon.java:597)
at c3.deploy.TagMethodsDeployCommon$$Lambda$452/344934840.run(Unknown Source)
at c3.love.util.Retryable.run(Retryable.java:78)
at c3.love.util.Retryable.run(Retryable.java:67)
at c3.deploy.TagMethodsDeployCommon.lambda$deploy$17(TagMethodsDeployCommon.java:592)
at c3.deploy.TagMethodsDeployCommon$$Lambda$448/1079987577.call(Unknown Source)
at c3.love.C3$$Lambda$292/127801102.call(Unknown Source)
at c3.love.C3.lambda$withTargetTenant$3(C3.java:558)
at c3.love.C3$$Lambda$176/97812281.get(Unknown Source)
at c3.love.C3.withTargetTenant(C3.java:613)
at c3.love.C3.withTargetTenant(C3.java:557)
at c3.love.C3.withTargetTenant(C3.java:553)
at c3.deploy.TagMethodsDeployCommon.deploy(TagMethodsDeployCommon.java:584)
at c3.deploy.TagMethodsDeployCommon.deploy(TagMethodsDeployCommon.java:217)
at c3.deploy.TagMethods.deploy(TagMethods.java:92)
at c3.type.metadata.methods.TagMethodsBase$13.accept(TagMethodsBase.java:311)
at c3.type.metadata.methods.TagMethodsBase$13.accept(TagMethodsBase.java:308)
at c3.server.engine.TypeSysEngine.execute(TypeSysEngine.java:67)
at c3.server.impl.Task.doFilter(Task.java:247)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:199)
at c3.server.envLogs.EnvLogListener.EnvLogListener.doFilter(EnvLogListener.java:75)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:197)
at c3.server.impl.dataCache.DataCacheEngine.doFilter(DataCacheEngine.java:126)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:197)
at c3.server.impl.ServerDispatcherBase.doFilter(ServerDispatcherBase.java:167)
at c3.server.impl.InteractiveDispatcher.doFilter(InteractiveDispatcher.java:79)
at c3.server.impl.Task.run(Task.java:183)
at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:399)
at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:305)
at c3.server.impl.FacadeEngine.execute(FacadeEngine.java:67)
at c3.server.impl.Task.doFilter(Task.java:247)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:199)
at c3.server.envLogs.EnvLogListener.EnvLogListener.doFilter(EnvLogListener.java:75)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:197)
at c3.server.impl.dataCache.DataCacheEngine.doFilter(DataCacheEngine.java:126)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:197)
at c3.server.impl.ServerDispatcherBase.doFilter(ServerDispatcherBase.java:167)
at c3.server.impl.InteractiveDispatcher.doFilter(InteractiveDispatcher.java:79)
at c3.server.impl.Task.run(Task.java:183)
at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:399)
at c3.server.impl.InteractiveDispatcher.dispatch(InteractiveDispatcher.java:305)
at c3.love.C3.dispatch(C3.java:502)
at c3.love.C3.dispatchWithArgs(C3.java:539)
at c3.love.C3.dispatch(C3.java:533)
at c3.love.C3.dispatch(C3.java:529)
at c3.type.metadata.Tag.deploy(Tag.java:412)
at c3.deploy.ProvisionerMethods.lambda$execTag$0(ProvisionerMethods.java:170)
at c3.deploy.ProvisionerMethods$$Lambda$441/1762229636.get(Unknown Source)
at c3.love.C3.withTargetTenant(C3.java:613)
at c3.love.C3.withTargetTenant(C3.java:600)
at c3.deploy.ProvisionerMethods.execTag(ProvisionerMethods.java:170)
at c3.deploy.ProvisionerMethods.exec(ProvisionerMethods.java:65)
at c3.type.deployment.methods.ProvisionerMethodsBase$1.accept(ProvisionerMethodsBase.java:55)
at c3.type.deployment.methods.ProvisionerMethodsBase$1.accept(ProvisionerMethodsBase.java:51)
at c3.server.engine.TypeSysEngine.execute(TypeSysEngine.java:67)
at c3.server.impl.Task.doFilter(Task.java:247)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:199)
at c3.server.envLogs.EnvLogListener.EnvLogListener.doFilter(EnvLogListener.java:75)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:197)
at c3.server.impl.dataCache.DataCacheEngine.doFilter(DataCacheEngine.java:126)
at c3.server.impl.ServerDispatcherBase$ActionFilterChainImpl.doFilter(ServerDispatcherBase.java:197)
at c3.server.impl.ServerDispatcherBase.doFilter(ServerDispatcherBase.java:167)
at c3.server.impl.InteractiveDispatcher.doFilter(InteractiveDispatcher.java:79)
at c3.server.impl.Task.run(Task.java:183)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Then only a portion of types is loaded:

Imported 1916 types (all) from tenant / tag in 3.8s

I cannot find for instance the following type:

BillingAccount
 Uncaught ReferenceError: BillingAccount is not defined at <anonymous>:1:1

When I check the provisioning history I see the following for the latest (no packages!!!):

deployDate: 2018-02-15T16:03:28.000Z
author: bachr@cousco.us
branch: topic/761refactor
machine: couscous-alg
refSpec: 6ba8bdfcaf617d2000a5a3b1e2200db2a22e12a4-modified
tools: c3-prov@7.2.0
message: Provisioned tenant:tenant tag:tag with seed data.
id: b1d5f766-4226-4461-bd11-c65432334060
version: 1
meta: { ... }
tenantTagId: 111
tenant: tenant
tag: tag
created: 2018-02-15T16:03:28.000Z
createdBy: bachr@cousco.us
updated: 2018-02-15T16:03:28.000Z
updatedBy: bachr@cousco.us
timestamp: 2018-02-15T16:03:28.000Z

My project structure is as follows:

project> tree -L 1
.
├── tenant
├── common
└── repository.json

An the content of repository.json is as follows:

{
  "name": "project",
  "description": "project repository",
  "dependencies": {"base" : "7.6.1+379"},
  "version": "3.0.0"
}

How can I fix this provisioning problem, get all the dependencies provisioned and have all my types?


archived #2

closed #3