Cirkus Serveri Forum
    • CoD4xAdmin
    • Recent
    • Popular
    • Groups
    • Users
    • Register
    • Login

    Install problems

    Scheduled Pinned Locked Moved
    Support
    2
    8
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      duty
      last edited by

      i become errors when i try to install

      npm WARN deprecated bcrypt-nodejs@0.0.3: bcrypt-nodejs is no longer actively maintained. Please use bcrypt or bcryptjs. See https://github.com/kelektiv/node.bcrypt.js/wiki/bcrypt-vs-brypt.js to learn more about these two options
      npm WARN deprecated discord-webhooks@1.0.0: this package is deprecated
      npm WARN deprecated sendgrid@5.2.3: Please see v6.X+ at https://www.npmjs.com/org/sendgrid
      npm WARN deprecated mailparser@0.6.2: Mailparser versions older than v2.3.0 are deprecated
      npm WARN deprecated mimelib@0.3.1: This project is unmaintained

      found 13 vulnerabilities (1 low, 12 high) in 13834 scanned packages

      and another error

      MongooseError [CastError]: Cast to string failed for value "[]" at path "rcon_password" for model "Servers"
      at new CastError (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/error/cast.js:29:11)
      at SchemaString.cast (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/schema/string.js:551:11)
      at SchemaString.SchemaType.applySetters (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/schematype.js:892:12)
      at SchemaString.SchemaType._castForQuery (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/schematype.js:1304:15)
      at SchemaString.castForQuery (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/schema/string.js:607:15)
      at SchemaString.handleSingle (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/schema/string.js:560:15)
      at SchemaString.castForQuery (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/schema/string.js:600:20)
      at SchemaString.SchemaType.castForQueryWrapper (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/schematype.js:1268:17)
      at cast (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/cast.js:288:39)
      at model.Query.Query.cast (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/query.js:4528:12)
      at model.Query.<anonymous> (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/query.js:2151:10)
      at model.Query._wrappedThunk [as _countDocuments] (/var/www/html/CoD4x-WebAdmin/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
      at /var/www/html/CoD4x-WebAdmin/node_modules/kareem/index.js:369:33
      at processTicksAndRejections (internal/process/task_queues.js:82:9) {
      message: 'Cast to string failed for value "[]" at ' +
      'path "rcon_password" for model "Servers"',
      name: 'CastError',
      stringValue: '"[]"',
      kind: 'string',
      value: [],
      path: 'rcon_password',
      reason: undefined,

      i used the newest repo packages ( today ) and i use debian 9

      1 Reply Last reply Reply Quote 0
      • NeHoN
        NeHo Administrators
        last edited by

        wait for 1 day please I pulled the latest updates for the security issues, I will post here the new release when I publish it

        I keep hitting the 'Escape' key - but I'm still here. ...

        1 Reply Last reply Reply Quote 1
        • D
          duty
          last edited by

          thnaks for new update i use v 2.2
          but same problem 12 high vul.

          1 Reply Last reply Reply Quote 0
          • NeHoN
            NeHo Administrators
            last edited by

            Stop your apllication, remove "package-lock.json" from root and it will offer you when you start the application to recreate it. After that you should have only 1 low risk

            I keep hitting the 'Escape' key - but I'm still here. ...

            1 Reply Last reply Reply Quote 0
            • D
              duty
              last edited by duty

              ok thanks it works
              i added a server and when i want to open server page it give me this error

              { CastError: Cast to string failed for value "[]" at path "rcon_password" for model "Servers"
                  at new CastError (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/error/cast.js:29:11)
                  at SchemaString.cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:551:11)
                  at SchemaString.SchemaType.applySetters (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:892:12)
                  at SchemaString.SchemaType._castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:1304:15)
                  at SchemaString.castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:607:15)
                  at SchemaString.handleSingle (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:560:15)
                  at SchemaString.castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:600:20)
                  at SchemaString.SchemaType.castForQueryWrapper (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:1268:17)
                  at cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/cast.js:288:39)
                  at model.Query.Query.cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/query.js:4528:12)
                  at model.Query.<anonymous> (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/query.js:2151:10)
                  at model.Query._wrappedThunk [as _countDocuments] (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
                  at process.nextTick (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/kareem/index.js:369:33)
                  at process._tickCallback (internal/process/next_tick.js:61:11)
                message:
                 'Cast to string failed for value "[]" at path "rcon_password" for model "Servers"',
                name: 'CastError',
                stringValue: '"[]"',
                kind: 'string',
                value: [],
                path: 'rcon_password',
                reason: undefined,
                model:
                 { [Function: model]
                   hooks: Kareem { _pres: [Map], _posts: [Map] },
                   base:
                    Mongoose {
                      connections: [Array],
                      models: [Object],
                      modelSchemas: [Object],
                      options: [Object],
                      _pluralize: [Function: pluralize],
                      Schema: [Function],
                      model: [Function],
                      plugins: [Array],
                      SchemaAsync: [Function: ret],
                      modelAsync: [Function: ret],
                      setAsync: [Function: ret],
                      getAsync: [Function: ret],
                      createConnectionAsync: [Function: ret],
                      connectAsync: [Function: ret],
                      disconnectAsync: [Function: ret],
                      startSessionAsync: [Function: ret],
                      pluralizeAsync: [Function: ret],
                      deleteModelAsync: [Function: ret],
                      modelNamesAsync: [Function: ret],
                      pluginAsync: [Function: ret],
                      AggregateAsync: [Function: ret],
                      CollectionAsync: [Function: ret],
                      ConnectionAsync: [Function: ret],
                      MongooseAsync: [Function: ret],
                      SchemaTypeAsync: [Function: ret],
                      VirtualTypeAsync: [Function: ret],
                      QueryAsync: [Function: ret],
                      ModelAsync: [Function: ret],
                      DocumentAsync: [Function: ret],
                      DocumentProviderAsync: [Function: ret],
                      ObjectIdAsync: [Function: ret],
                      Decimal128Async: [Function: ret],
                      MixedAsync: [Function: ret],
                      NumberAsync: [Function: ret],
                      ErrorAsync: [Function: ret],
                      nowAsync: [Function: ret],
                      CastErrorAsync: [Function: ret],
                      mongoAsync: [Function: ret],
                      mqueryAsync: [Function: ret] },
                   modelName: 'Servers',
                   model: [Function: model],
                   db:
                    NativeConnection {
                      base: [Mongoose],
                      collections: [Object],
                      models: [Object],
                      config: [Object],
                      replica: false,
                      options: null,
                      otherDbs: [],
                      relatedDbs: {},
                      states: [Object],
                      _readyState: 1,
                      _closeCalled: false,
                      _hasOpened: true,
                      plugins: [],
                      '$internalEmitter': [EventEmitter],
                      _listening: false,
                      _connectionOptions: [Object],
                      name: 'cod4xwebadmin',
                      host: 'localhost',
                      port: ,
                      user: '',
                      pass: '',
                      client: [MongoClient],
                      '$initialConnection': [Promise],
                      _events: [Object],
                      _eventsCount: 1,
                      db: [Db] },
                   discriminators: undefined,
                   events:
                    EventEmitter {
                      _events: [Object: null prototype] {},
                      _eventsCount: 0,
                      _maxListeners: undefined },
                   '$appliedMethods': true,
                   '$appliedHooks': true,
                   _middleware: Kareem { _pres: [Map], _posts: [Map] },
                   '$__insertMany': [Function],
                   schema:
                    Schema {
                      obj: [Object],
                      paths: [Object],
                      aliases: {},
                      subpaths: {},
                      virtuals: [Object],
                      singleNestedPaths: {},
                      nested: {},
                      inherits: {},
                      callQueue: [],
                      _indexes: [],
                      methods: [Object],
                      methodOptions: {},
                      statics: {},
                      tree: [Object],
                      query: {},
                      childSchemas: [],
                      plugins: [Array],
                      '$id': 6,
                      s: [Object],
                      _userProvidedOptions: [Object],
                      options: [Object],
                      '$timestamps': [Object],
                      '$globalPluginsApplied': true,
                      _requiredpaths: [],
                      _indexedpaths: [Array] },
                   collection:
                    NativeCollection {
                      collection: [Collection],
                      Promise: [Function: Promise],
                      opts: [Object],
                      name: 'servers',
                      collectionName: 'servers',
                      conn: [NativeConnection],
                      queue: [],
                      buffer: false,
                      emitter: [EventEmitter] },
                   Query: { [Function] base: [Query] },
                   '$init':
                    Promise {
                      _bitField: 33554432,
                      _fulfillmentHandler0: [Function],
                      _rejectionHandler0: [Circular],
                      _promise0: undefined,
                      _receiver0: undefined },
                   '$caught': true,
                   [Symbol(mongoose#Model)]: true } }
              
              

              using v2.2.0

              1 Reply Last reply Reply Quote 0
              • NeHoN
                NeHo Administrators
                last edited by NeHo

                Have you entered the rcon password when you add the server? Also do you add a Local or External server?

                I keep hitting the 'Escape' key - but I'm still here. ...

                1 Reply Last reply Reply Quote 0
                • D
                  duty
                  last edited by duty

                  yes i entered server password external server

                  1 Reply Last reply Reply Quote 0
                  • D
                    duty
                    last edited by

                    { CastError: Cast to string failed for value "[]" at path "rcon_password" for model "Servers"
                        at new CastError (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/error/cast.js:29:11)
                        at SchemaString.cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:551:11)
                        at SchemaString.SchemaType.applySetters (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:892:12)
                        at SchemaString.SchemaType._castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:1304:15)
                        at SchemaString.castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:607:15)
                        at SchemaString.handleSingle (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:560:15)
                        at SchemaString.castForQuery (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schema/string.js:600:20)
                        at SchemaString.SchemaType.castForQueryWrapper (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/schematype.js:1268:17)
                        at cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/cast.js:288:39)
                        at model.Query.Query.cast (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/query.js:4528:12)
                        at model.Query.<anonymous> (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/query.js:2151:10)
                        at model.Query._wrappedThunk [as _countDocuments] (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/mongoose/lib/helpers/query/wrapThunk.js:16:8)
                        at process.nextTick (/var/www/html/CoD4x-WebAdmin-2.1.5/node_modules/kareem/index.js:369:33)
                        at process._tickCallback (internal/process/next_tick.js:61:11)
                      message:
                       'Cast to string failed for value "[]" at path "rcon_password" for model "Servers"',
                      name: 'CastError',
                      stringValue: '"[]"',
                      kind: 'string',
                      value: [],
                      path: 'rcon_password',
                      reason: undefined,
                      model:
                       { [Function: model]
                         hooks: Kareem { _pres: [Map], _posts: [Map] },
                         base:
                          Mongoose {
                            connections: [Array],
                            models: [Object],
                            modelSchemas: [Object],
                            options: [Object],
                            _pluralize: [Function: pluralize],
                            Schema: [Function],
                            model: [Function],
                            plugins: [Array],
                            SchemaAsync: [Function: ret],
                            modelAsync: [Function: ret],
                            setAsync: [Function: ret],
                            getAsync: [Function: ret],
                            createConnectionAsync: [Function: ret],
                            connectAsync: [Function: ret],
                            disconnectAsync: [Function: ret],
                            startSessionAsync: [Function: ret],
                            pluralizeAsync: [Function: ret],
                            deleteModelAsync: [Function: ret],
                            modelNamesAsync: [Function: ret],
                            pluginAsync: [Function: ret],
                            AggregateAsync: [Function: ret],
                            CollectionAsync: [Function: ret],
                            ConnectionAsync: [Function: ret],
                            MongooseAsync: [Function: ret],
                            SchemaTypeAsync: [Function: ret],
                            VirtualTypeAsync: [Function: ret],
                            QueryAsync: [Function: ret],
                            ModelAsync: [Function: ret],
                            DocumentAsync: [Function: ret],
                            DocumentProviderAsync: [Function: ret],
                            ObjectIdAsync: [Function: ret],
                            Decimal128Async: [Function: ret],
                            MixedAsync: [Function: ret],
                            NumberAsync: [Function: ret],
                            ErrorAsync: [Function: ret],
                            nowAsync: [Function: ret],
                            CastErrorAsync: [Function: ret],
                            mongoAsync: [Function: ret],
                            mqueryAsync: [Function: ret] },
                         modelName: 'Servers',
                         model: [Function: model],
                         db:
                          NativeConnection {
                            base: [Mongoose],
                            collections: [Object],
                            models: [Object],
                            config: [Object],
                            replica: false,
                            options: null,
                            otherDbs: [],
                            relatedDbs: {},
                            states: [Object],
                            _readyState: 1,
                            _closeCalled: false,
                            _hasOpened: true,
                            plugins: [],
                            '$internalEmitter': [EventEmitter],
                            _listening: false,
                            _connectionOptions: [Object],
                            name: 'cod4xwebadmin',
                            host: 'localhost',
                            port: ,
                            user: '',
                            pass: '',
                            client: [MongoClient],
                            '$initialConnection': [Promise],
                            _events: [Object],
                            _eventsCount: 1,
                            db: [Db] },
                         discriminators: undefined,
                         events:
                          EventEmitter {
                            _events: [Object: null prototype] {},
                            _eventsCount: 0,
                            _maxListeners: undefined },
                         '$appliedMethods': true,
                         '$appliedHooks': true,
                         _middleware: Kareem { _pres: [Map], _posts: [Map] },
                         '$__insertMany': [Function],
                         schema:
                          Schema {
                            obj: [Object],
                            paths: [Object],
                            aliases: {},
                            subpaths: {},
                            virtuals: [Object],
                            singleNestedPaths: {},
                            nested: {},
                            inherits: {},
                            callQueue: [],
                            _indexes: [],
                            methods: [Object],
                            methodOptions: {},
                            statics: {},
                            tree: [Object],
                            query: {},
                            childSchemas: [],
                            plugins: [Array],
                            '$id': 6,
                            s: [Object],
                            _userProvidedOptions: [Object],
                            options: [Object],
                            '$timestamps': [Object],
                            '$globalPluginsApplied': true,
                            _requiredpaths: [],
                            _indexedpaths: [Array] },
                         collection:
                          NativeCollection {
                            collection: [Collection],
                            Promise: [Function: Promise],
                            opts: [Object],
                            name: 'servers',
                            collectionName: 'servers',
                            conn: [NativeConnection],
                            queue: [],
                            buffer: false,
                            emitter: [EventEmitter] },
                         Query: { [Function] base: [Query] },
                         '$init':
                          Promise {
                            _bitField: 33554432,
                            _fulfillmentHandler0: [Function],
                            _rejectionHandler0: [Circular],
                            _promise0: undefined,
                            _receiver0: undefined },
                         '$caught': true,
                         [Symbol(mongoose#Model)]: true } }
                    
                    
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    0

                    Online

                    191

                    Users

                    268

                    Topics

                    1.2k

                    Posts
                    Powered & Designed by NeHo