wekan: Registration broken "Templates board id is required"

Issue

Server Setup Information:

  • Wekan version: 2.56 (wekanteam/wekan:latest docker image)
  • Operating System: Debian as docker host
  • Http frontend if any (Caddy, Nginx, Apache, see config examples from Wekan GitHub wiki first): nginx

Problem description: When invited to sign up for wekan, no matter if I am invited to any board or not, signing up always leads to the error message “Templates board id is required”. Sign-up is actually performed, I can log in if I manually go from sign-up to the root of the app.

app log:

wekan-app  | Exception while invoking method 'ATCreateUserServer' { stack: 'Error: Templates board id is required\n    at getErrorObject (packages/aldeed_collection2-core.js:480:15)\n    at Mongo.Collection.doValidate (packages/aldeed_collection2-core.js:462:13)\n    at Mongo.Collection.(anonymous function) [as update] (packages/aldeed_collection2-core.js:214:25)\n    at Object.Users.after.insert (models/users.js:821:15)\n    at packages/matb33_collection-hooks.js:382:18\n    at Array.forEach (<anonymous>)\n    at Function._.each._.forEach (packages/underscore.js:139:11)\n    at after (packages/matb33_collection-hooks.js:381:9)\n    at Object.<anonymous> (packages/matb33_collection-hooks.js:396:12)\n    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks.js:146:21)\n    at Mongo.Collection.insert (packages/mongo/collection.js:491:37)\n    at Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core.js:232:19)\n    at AccountsServer.Ap.insertUserDoc (packages/accounts-base/accounts_server.js:1325:25)\n    at createUser (packages/accounts-password/password_server.js:1054:25)\n    at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1123:10)\n    at DDPCommon.MethodInvocation.ATCreateUserServer (packages/useraccounts_core.js:1294:27)',
wekan-app  |   source: 'method' }
wekan-app  | Sanitized and reported to the client as: Templates board id is required [400]

Sorry, I am having technical problems attaching screens of the error.

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 2
  • Comments: 27 (11 by maintainers)

Most upvoted comments

@xet7 this issue is still present in Wekan version 3.17.0 (Docker image with sha f12ef50aba4af5a472372537ce04c7e46aac6ee752aada67302daab4ab6e69f7).

It still shows `Templates board id is required` in the frontend and here is the log of the backend: (click to expand)
Exception while invoking method 'ATCreateUserServer' { [object Object]
  invalidKeys: 
   [ { name: 'profile.templatesBoardId',
       type: 'required',
       value: null },
     { name: 'profile.cardTemplatesSwimlaneId',
       type: 'required',
       value: null },
     { name: 'profile.listTemplatesSwimlaneId',
       type: 'required',
       value: null },
     { name: 'profile.boardTemplatesSwimlaneId',
       type: 'required',
       value: null } ],
  validationContext: 
   SimpleSchemaValidationContext {
     _simpleSchema: 
      Where {
        _schema: [Object],
        _schemaKeys: [Array],
        _autoValues: [Object],
        _blackboxKeys: [Array],
        _validators: [Array],
        _messages: {},
        _depsMessages: [Object],
        _depsLabels: [Object],
        _firstLevelSchemaKeys: [Array],
        _objectKeys: [Object],
        _validationContexts: [Object] },
     _schema: 
      { username: [Object],
        emails: [Object],
        'emails.$.address': [Object],
        'emails.$.verified': [Object],
        createdAt: [Object],
        modifiedAt: [Object],
        profile: [Object],
        'profile.avatarUrl': [Object],
        'profile.emailBuffer': [Object],
        'profile.fullname': [Object],
        'profile.hiddenSystemMessages': [Object],
        'profile.hiddenMinicardLabelText': [Object],
        'profile.initials': [Object],
        'profile.invitedBoards': [Object],
        'profile.language': [Object],
        'profile.notifications': [Object],
        'profile.showCardsCountAt': [Object],
        'profile.starredBoards': [Object],
        'profile.icode': [Object],
        'profile.boardView': [Object],
        'profile.templatesBoardId': [Object],
        'profile.cardTemplatesSwimlaneId': [Object],
        'profile.listTemplatesSwimlaneId': [Object],
        'profile.boardTemplatesSwimlaneId': [Object],
        services: [Object],
        heartbeat: [Object],
        isAdmin: [Object],
        createdThroughApi: [Object],
        loginDisabled: [Object],
        authenticationMethod: [Object],
        'emails.$': [Object],
        'profile.emailBuffer.$': [Object],
        'profile.invitedBoards.$': [Object],
        'profile.notifications.$': [Object],
        'profile.starredBoards.$': [Object] },
     _schemaKeys: 
      [ 'username',
        'emails',
        'emails.$.address',
        'emails.$.verified',
        'createdAt',
        'modifiedAt',
        'profile',
        'profile.avatarUrl',
        'profile.emailBuffer',
        'profile.fullname',
        'profile.hiddenSystemMessages',
        'profile.hiddenMinicardLabelText',
        'profile.initials',
        'profile.invitedBoards',
        'profile.language',
        'profile.notifications',
        'profile.showCardsCountAt',
        'profile.starredBoards',
        'profile.icode',
        'profile.boardView',
        'profile.templatesBoardId',
        'profile.cardTemplatesSwimlaneId',
        'profile.listTemplatesSwimlaneId',
        'profile.boardTemplatesSwimlaneId',
        'services',
        'heartbeat',
        'isAdmin',
        'createdThroughApi',
        'loginDisabled',
        'authenticationMethod',
        'emails.$',
        'profile.emailBuffer.$',
        'profile.invitedBoards.$',
        'profile.notifications.$',
        'profile.starredBoards.$' ],
     _invalidKeys: [ [Object], [Object], [Object], [Object] ],
     _deps: 
      { username: [Object],
        emails: [Object],
        'emails.$.address': [Object],
        'emails.$.verified': [Object],
        createdAt: [Object],
        modifiedAt: [Object],
        profile: [Object],
        'profile.avatarUrl': [Object],
        'profile.emailBuffer': [Object],
        'profile.fullname': [Object],
        'profile.hiddenSystemMessages': [Object],
        'profile.hiddenMinicardLabelText': [Object],
        'profile.initials': [Object],
        'profile.invitedBoards': [Object],
        'profile.language': [Object],
        'profile.notifications': [Object],
        'profile.showCardsCountAt': [Object],
        'profile.starredBoards': [Object],
        'profile.icode': [Object],
        'profile.boardView': [Object],
        'profile.templatesBoardId': [Object],
        'profile.cardTemplatesSwimlaneId': [Object],
        'profile.listTemplatesSwimlaneId': [Object],
        'profile.boardTemplatesSwimlaneId': [Object],
        services: [Object],
        heartbeat: [Object],
        isAdmin: [Object],
        createdThroughApi: [Object],
        loginDisabled: [Object],
        authenticationMethod: [Object],
        'emails.$': [Object],
        'profile.emailBuffer.$': [Object],
        'profile.invitedBoards.$': [Object],
        'profile.notifications.$': [Object],
        'profile.starredBoards.$': [Object] },
     _depsAny: Dependency { _dependentsById: {} } },
  sanitizedError: 
   { Error: Templates board id is required [400]
    at getErrorObject (packages/aldeed_collection2-core.js:486:28)
    at Collection.doValidate (packages/aldeed_collection2-core.js:462:13)
    at Collection.Mongo.Collection.(anonymous function) [as update] (packages/aldeed_collection2-core.js:214:25)
    at Object.Users.after.insert (models/users.js:962:15)
    at packages/matb33_collection-hooks.js:382:18
    at Array.forEach (<anonymous>)
    at Function._.each._.forEach (packages/underscore.js:139:11)
    at after (packages/matb33_collection-hooks.js:381:9)
    at Object.<anonymous> (packages/matb33_collection-hooks.js:396:12)
    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks.js:146:21)
    at Collection.insert (packages/mongo/collection.js:520:39)
    at Collection.Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core.js:232:19)
    at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1100:27)
    at createUser (packages/accounts-password/password_server.js:1078:25)
    at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)
    at MethodInvocation.ATCreateUserServer (packages/useraccounts_core.js:1294:27)
    at MethodInvocation.methodMap.(anonymous function) (packages/mdg:meteor-apm-agent/lib/hijack/wrap_session.js:161:30)
    at currentArgumentChecker.withValue (packages/check/match.js:118:15)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
    at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:116:43)
    at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1768:18)
    at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
    at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
    at Promise (packages/ddp-server/livedata_server.js:715:46)
    at new Promise (<anonymous>)
    at Session.method (packages/ddp-server/livedata_server.js:689:23)
     isClientSafe: true,
     error: 400,
     reason: 'Templates board id is required',
     details: '[{"name":"profile.templatesBoardId","type":"required","value":null},{"name":"profile.cardTemplatesSwimlaneId","type":"required","value":null},{"name":"profile.listTemplatesSwimlaneId","type":"required","value":null},{"name":"profile.boardTemplatesSwimlaneId","type":"required","value":null}]',
     message: 'Templates board id is required [400]',
     errorType: 'Meteor.Error' } }
Sanitized and reported to the client as: { Error: Templates board id is required [400]
    at getErrorObject (packages/aldeed_collection2-core.js:486:28)
    at Collection.doValidate (packages/aldeed_collection2-core.js:462:13)
    at Collection.Mongo.Collection.(anonymous function) [as update] (packages/aldeed_collection2-core.js:214:25)
    at Object.Users.after.insert (models/users.js:962:15)
    at packages/matb33_collection-hooks.js:382:18
    at Array.forEach (<anonymous>)
    at Function._.each._.forEach (packages/underscore.js:139:11)
    at after (packages/matb33_collection-hooks.js:381:9)
    at Object.<anonymous> (packages/matb33_collection-hooks.js:396:12)
    at Object.collection.(anonymous function) [as insert] (packages/matb33_collection-hooks.js:146:21)
    at Collection.insert (packages/mongo/collection.js:520:39)
    at Collection.Mongo.Collection.(anonymous function) [as insert] (packages/aldeed_collection2-core.js:232:19)
    at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1100:27)
    at createUser (packages/accounts-password/password_server.js:1078:25)
    at AccountsServer.Accounts.createUser (packages/accounts-password/password_server.js:1147:10)
    at MethodInvocation.ATCreateUserServer (packages/useraccounts_core.js:1294:27)
    at MethodInvocation.methodMap.(anonymous function) (packages/mdg:meteor-apm-agent/lib/hijack/wrap_session.js:161:30)
    at currentArgumentChecker.withValue (packages/check/match.js:118:15)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
    at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:116:43)
    at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1768:18)
    at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
    at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)
    at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
    at Promise (packages/ddp-server/livedata_server.js:715:46)
    at new Promise (<anonymous>)
    at Session.method (packages/ddp-server/livedata_server.js:689:23)
  isClientSafe: true,
  error: 400,
  reason: 'Templates board id is required',
  details: '[{"name":"profile.templatesBoardId","type":"required","value":null},{"name":"profile.cardTemplatesSwimlaneId","type":"required","value":null},{"name":"profile.listTemplatesSwimlaneId","type":"required","value":null},{"name":"profile.boardTemplatesSwimlaneId","type":"required","value":null}]',
  message: 'Templates board id is required [400]',
  errorType: 'Meteor.Error' }