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

I need Help about starting cod4xweb

Scheduled Pinned Locked Moved
Support
4
26
1.8k
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
    danishrana49
    last edited by 3 Nov 2022, 07:25

    Hi there,
    my panel was working fine, but suddenly my server got suspened, due to some issue, but i have backup and i put it in other server, when i try to start, it give me this error

    cod4x-webadmin@4.3.0 start /var/www/cod_ss
    node ./bin/www

    Your mongoDB Username, Password is wrong in file app/config/config.json . Could not connect to database! MongoError: Authentication failed.
    Unhandled rejection MongoError: Authentication failed.
    at MessageStream.messageHandler (/var/www/cod_ss/node_modules/mongodb/lib/cmap/connection.js:299:20)
    at MessageStream.emit (events.js:400:28)
    at processIncomingData (/var/www/cod_ss/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
    at MessageStream._write (/var/www/cod_ss/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at MessageStream.Writable.write (internal/streams/writable.js:303:10)
    at Socket.ondata (internal/streams/readable.js:731:22)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)

    Also when i use npm install it give me error also
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN notsup Unsupported engine for requestify@0.2.5: wanted: {"node":"~0.10.x"} (current: {"node":"14.20.1","npm":"6.14.17"})
    npm WARN notsup Not compatible with your version of node/npm: requestify@0.2.5
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

    added 1149 packages from 1352 contributors and audited 1154 packages in 44.481s

    39 packages are looking for funding
    run npm fund for details

    found 34 vulnerabilities (2 low, 9 moderate, 20 high, 3 critical)
    run npm audit fix to fix them, or npm audit for detail

    Please Help me @neho
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:2

    D 1 Reply Last reply 3 Nov 2022, 07:26 Reply Quote 0
    • D
      danishrana49 @danishrana49
      last edited by 3 Nov 2022, 07:26

      I just checked in /app/config/config.json, there is no username or password for mangoDB.

      N 1 Reply Last reply 3 Nov 2022, 23:58 Reply Quote 0
      • N
        NeHo Administrators @danishrana49
        last edited by 3 Nov 2022, 23:58

        @danishrana49 hello,

        u can set username and password in this file for mongodb https://github.com/byNeHo/CoD4x-WebAdmin/blob/master/app/config/config.json#L3

        the other issue will be solved when u next time start the node, package-lock.json is auto created if it doesn't exist, so you can ignore that error

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

        1 Reply Last reply Reply Quote -1
        • D
          danishrana49
          last edited by 4 Nov 2022, 01:17

          bro i sort that issue but now i am getting this

          /var/www/html/cod_ss/server.js:98
          app.use(validator());
          ^

          TypeError: validator is not a function
          at Object.<anonymous> (/var/www/html/cod_ss/server.js:98:9)
          at Module._compile (internal/modules/cjs/loader.js:1085:14)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
          at Module.load (internal/modules/cjs/loader.js:950:32)
          at Function.Module._load (internal/modules/cjs/loader.js:790:12)
          at Module.require (internal/modules/cjs/loader.js:974:19)
          at require (internal/modules/cjs/helpers.js:101:18)
          at Object.<anonymous> (/var/www/html/cod_ss/bin/www:7:14)
          at Module._compile (internal/modules/cjs/loader.js:1085:14)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
          at Module.load (internal/modules/cjs/loader.js:950:32)
          at Function.Module._load (internal/modules/cjs/loader.js:790:12)
          at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
          at internal/main/run_main_module.js:17:47

          N D 2 Replies Last reply 4 Nov 2022, 17:28 Reply Quote 0
          • N
            NeHo Administrators @danishrana49
            last edited by 4 Nov 2022, 17:28

            @danishrana49 please send me your application version, node version (i run 15.6.0)

            you can check the node version with next command

            node -v
            

            Make sure you have the latest application version https://github.com/byNeHo/CoD4x-WebAdmin/releases (v4.3.0)

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

            D 1 Reply Last reply 4 Nov 2022, 18:47 Reply Quote 0
            • D
              danishrana49 @danishrana49
              last edited by 4 Nov 2022, 18:45

              @NeHo version of node is v14.21.0

              D 1 Reply Last reply 4 Nov 2022, 18:51 Reply Quote 0
              • D
                danishrana49 @NeHo
                last edited by 4 Nov 2022, 18:47

                @NeHo I installed new version from github and tried to install fresh setup of cod4x panel but this issue won't letting me to start application please help bro.

                1 Reply Last reply Reply Quote 0
                • D
                  danishrana49 @danishrana49
                  last edited by 4 Nov 2022, 18:51

                  @NeHo Also my linux os is ubuntu 18. latest cod4xweb version downloaded from github, node version is v14.21.0 and npm version is 8.19.2

                  N 1 Reply Last reply 4 Nov 2022, 19:47 Reply Quote 0
                  • N
                    NeHo Administrators @danishrana49
                    last edited by NeHo 11 Apr 2022, 20:55 4 Nov 2022, 19:47

                    @danishrana49 update your node version

                    You can update it like this

                    Use n module from npm

                    sudo npm cache clean -f
                    sudo npm install -g n
                    sudo n stable
                    

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

                    S D 2 Replies Last reply 4 Nov 2022, 20:40 Reply Quote 0
                    • S
                      SMiLeY @NeHo
                      last edited by 4 Nov 2022, 20:40

                      @NeHo Is it safe to update node and npm without breaking the app? Both of my versions are older and way back but all is working fine. This is only app I have using those but if it works don't change it right ? 🙂

                      I had the same problem as danishrana49 some time back. Older versions worked for me.

                      N 1 Reply Last reply 4 Nov 2022, 21:21 Reply Quote 0
                      • D
                        danishrana49 @NeHo
                        last edited by 4 Nov 2022, 21:00

                        @NeHo getting this error after updating,

                        node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)

                        tried many things but seems like ubuntu 18 not working with latest nodejs and npm, if i downgrade to node 14 version and npm 8 version this error fixed but after updating how to fix it?

                        N D 2 Replies Last reply 4 Nov 2022, 21:17 Reply Quote 0
                        • N
                          NeHo Administrators @danishrana49
                          last edited by NeHo 11 Apr 2022, 22:18 4 Nov 2022, 21:17

                          @danishrana49 try this pls

                          sudo apt-get remove nodejs
                          

                          after removed this

                          curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - &&\
                          sudo apt-get install -y nodejs
                          

                          You got that error because node which is built for different ubuntu version was installed

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

                          1 Reply Last reply Reply Quote 0
                          • D
                            danishrana49 @danishrana49
                            last edited by 4 Nov 2022, 21:19

                            @danishrana49 still getting same error after this solution.

                            node -v
                            node: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by node) npm -v node: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.28' not found (required by node)

                            1 Reply Last reply Reply Quote 0
                            • D
                              danishrana49
                              last edited by 4 Nov 2022, 21:20

                              @NeHo used same version of ubuntu before, and it works but not working now.

                              1 Reply Last reply Reply Quote 0
                              • N
                                NeHo Administrators @SMiLeY
                                last edited by 4 Nov 2022, 21:21

                                @SMiLeY you can try, when ever there is a new version I have to update some dependencies to make it work, you can always roll back to previous version. Sometimes new versions break the application if I didn't update some dependencies, it depends what is changed, I will try to update the code from time to time

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

                                N D 2 Replies Last reply 4 Nov 2022, 21:22 Reply Quote 1
                                • N
                                  NeHo Administrators @NeHo
                                  last edited by NeHo 11 Apr 2022, 22:22 4 Nov 2022, 21:22

                                  @NeHo instead nodejs remove node

                                  sudo apt-get remove node
                                  

                                  try after that

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

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    danishrana49 @NeHo
                                    last edited by 4 Nov 2022, 21:22

                                    @NeHo sudo apt-get remove node
                                    Reading package lists... Done
                                    Building dependency tree
                                    Reading state information... Done
                                    E: Unable to locate package node

                                    N D 2 Replies Last reply 4 Nov 2022, 21:36 Reply Quote 0
                                    • N
                                      NeHo Administrators @danishrana49
                                      last edited by 4 Nov 2022, 21:36

                                      @danishrana49 try this pls

                                      nvm install --lts
                                      nvm alias default 16
                                      

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

                                      N 1 Reply Last reply 4 Nov 2022, 21:39 Reply Quote 0
                                      • N
                                        NeHo Administrators @NeHo
                                        last edited by 4 Nov 2022, 21:39

                                        Problem is I only use the latest node version on my local machine, I have multiple websites in node so I would have to update them all to test it out on my ubuntu server

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

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          danishrana49 @danishrana49
                                          last edited by 5 Nov 2022, 08:40

                                          @NeHo still getting this error
                                          node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)

                                          S D 2 Replies Last reply 5 Nov 2022, 09:12 Reply Quote 0
                                          4 out of 26
                                          • First post
                                            4/26
                                            Last post

                                          0

                                          Online

                                          191

                                          Users

                                          268

                                          Topics

                                          1.2k

                                          Posts
                                          Powered & Designed by NeHo