Local admin backend stuck with docker

I cannot access my dashboard I just created using docker, I can see the logs but it still ask me to connect a datasource.


Hey @Duportet :wave:

Could you share your project name here & forest-express-sequelize|mongoose version so I can check on my end what is happening ?

Thanks in advance

The project name is TrajaanTest2 and the version is for forest-express-sequelize is 8.1.1.

Thanks !

I just checked on my end, and indeed, we never received the .forestadmin-schema.json file.
Could you share it here so I can verify it is well formed?

Also, could you log process.env.FOREST_ENV_SECRET in the generated your code and share here the last 4 digits, just to check that all the environment variables are correctly setup.

Thanks in advance :slight_smile:

Here are the last 4 digits: 5523b

I can’t upload a json here and the file has too many characters :frowning:

{
  "collections": [{
    "name": "alembicVersion",
    "nameOld": "alembicVersion",
    "icon": null,
    "integration": null,
    "isReadOnly": false,
    "isSearchable": true,
    "isVirtual": false,
    "onlyForRelationships": false,
    "paginationType": "page",
    "fields": [{
      "field": "versionNum",
      "type": "String",
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": true,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
    }],
    "segments": [],
    "actions": []
  }, {
    "name": "company",
    "nameOld": "company",
    "icon": null,
    "integration": null,
    "isReadOnly": false,
    "isSearchable": true,
    "isVirtual": false,
    "onlyForRelationships": false,
    "paginationType": "page",
    "fields": [{
      "field": "companyName",
      "type": "String",
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
    }, {
      "field": "contractEndDate",
      "type": "Date",
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
    }, {
      "field": "contractStartDate",
      "type": "Date",
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
    }, {
      "field": "creationDate",
      "type": "Date",
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": false,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": []
    }, {
      "field": "id",
      "type": "Number",
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": true,
      "isReadOnly": false,
      "isRequired": false,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": []
    }, {
      "field": "industry",
      "type": "Enum",
      "defaultValue": null,
      "enums": [
        "Consulting",
        "Financial Services",
        "Fashion",
        "Beauty",
        "Health",
        "Food & Beverages",
        "Public Affairs",
        "Other"
      ],
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": false,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": []
    }, {
      "field": "invitedToInvites",
      "type": ["Number"],
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": false,
      "isSortable": true,
      "isVirtual": false,
      "reference": "invite.id",
      "inverseOf": "invitedTo",
      "relationship": "HasMany",
      "validations": []
    }, {
      "field": "permissionsProjectMaxKeywords",
      "type": "Number",
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
    }, {
      "field": "permissionsProjectMaxProjects",
      "type": "Number",
      "defaultValue": null,
      "enums": null,
      "integration": null,
      "isFilterable": true,
      "isPrimaryKey": false,
      "isReadOnly": false,
      "isRequired": true,
      "isSortable": true,
      "isVirtual": false,
      "reference": null,
      "inverseOf": null,
      "validations": [{
        "message": null,
        "type": "is present",
        "value": null
      }]
  "meta": {
    "liana": "forest-express-sequelize",
    "liana_version": "8.4.10",
    "stack": {
      "database_type": "postgres",
      "engine": "nodejs",
      "engine_version": "10.24.1",
      "orm_version": "5.15.2"
    }
  }

It’s strange also because I get the message:
trajaan_test_2 | [forest] :deciduous_tree::deciduous_tree::deciduous_tree: Schema file sent.

@Duportet

Mhh, weird, I’m still not able to see the .forestadmin-schema.json upload on my end :confused:

However, it looks well formed, no issue here.

You are using nodejs 10.24.1 is that right? I would suggest to upgrade to 14.x. I’m not sure this is the source of the issue, but other known bugs might appear with 10.x.

I’ve just check our logs, and I’m still unable to see any logs related to your issue. Do you confirm that the last 4 digits: 5523b comes from a console.log(process.env.FOREST_ENV_SECRET) ?

It seems like you are using docker as well. If you are able to, I would also suggest to try with npm install directly, just to check if the issue comes from docker or anything else.

Thanks in advance.