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.
    • NeHoN
      NeHo Administrators @danishrana49
      last edited by

      @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 Reply Quote 0
      • D
        danishrana49 @danishrana49
        last edited by

        @NeHo version of node is v14.21.0

        D 1 Reply Last reply Reply Quote 0
        • D
          danishrana49 @NeHo
          last edited by

          @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

            @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

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

              @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. ...

              SMiLeYS D 2 Replies Last reply Reply Quote 0
              • SMiLeYS
                SMiLeY @NeHo
                last edited by

                @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.

                NeHoN 1 Reply Last reply Reply Quote 0
                • D
                  danishrana49 @NeHo
                  last edited by

                  @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?

                  NeHoN D 2 Replies Last reply Reply Quote 0
                  • NeHoN
                    NeHo Administrators @danishrana49
                    last edited by NeHo

                    @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

                      @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

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

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

                          @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. ...

                          NeHoN D 2 Replies Last reply Reply Quote 1
                          • NeHoN
                            NeHo Administrators @NeHo
                            last edited by NeHo

                            @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

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

                              NeHoN D 2 Replies Last reply Reply Quote 0
                              • NeHoN
                                NeHo Administrators @danishrana49
                                last edited by

                                @danishrana49 try this pls

                                nvm install --lts
                                nvm alias default 16
                                

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

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

                                  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

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

                                    SMiLeYS D 2 Replies Last reply Reply Quote 0
                                    • SMiLeYS
                                      SMiLeY @danishrana49
                                      last edited by

                                      @danishrana49 did you install nvm on your machine as NeHo said above?

                                      You got the issue because node version is not compatible. You are using 18.04 and I remember the error from when I used it. You can see my versions below. (I use 20.04) They are older but the webadmin works fine. I will make an attempt to update those versions and hope it does not break the app.

                                      smiley@fmjcod4:~$ npm -v
                                      6.14.15
                                      smiley@fmjcod4:~$ node -v
                                      v14.17.3

                                      Try rolling back to these versions and see how it is? I am not expert but worth a try maybe.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        danishrana49 @danishrana49
                                        last edited by

                                        @danishrana49 Ye i know about nvm, and its installed in my machine, however i downgraded from 16 to 14 as you tell me,
                                        but now i am getting this error

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

                                        /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:14)
                                        at Module.require (internal/modules/cjs/loader.js:974:19)
                                        at require (internal/modules/cjs/helpers.js:92: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:14)
                                        at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
                                        at internal/main/run_main_module.js:17:47
                                        npm ERR! code ELIFECYCLE
                                        npm ERR! errno 1
                                        npm ERR! cod4x-webadmin@4.3.0 start: node ./bin/www
                                        npm ERR! Exit status 1
                                        npm ERR!
                                        npm ERR! Failed at the cod4x-webadmin@4.3.0 start script.
                                        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR! /root/.npm/_logs/2022-11-05T09_32_23_473Z-debug.log

                                        SMiLeYS 1 Reply Last reply Reply Quote 0
                                        • SMiLeYS
                                          SMiLeY @danishrana49
                                          last edited by

                                          @danishrana49 How did you get on with things?

                                          I updated to latest npm and nodejs using 20.04 lts and still working ok.

                                          Now using node v18.12.1 (npm v8.19.2)

                                          When I have restarted the app it reverts back to v14.17.3 automatically.

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

                                            @SMiLeY All fixed now, @NeHo helped me alot in errors. it was my server issue. he fixed things and panel is working fine now.

                                            SMiLeYS 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            0

                                            Online

                                            191

                                            Users

                                            268

                                            Topics

                                            1.2k

                                            Posts
                                            Powered & Designed by NeHo