ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XO Failure to Update issue - Posting for BC

    IT Discussion
    2
    9
    1.3k
    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.
    • DustinB3403D
      DustinB3403
      last edited by DustinB3403

      not sure what I did - apt-get update and upgrade and then ran update... 5.2.4 was probably running but I figured i'd update just for kicks. - npm ERR! Linux 4.2.0-42-generic
      npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
      npm ERR! node v6.4.0
      npm ERR! npm v3.10.3
      npm ERR! code ELIFECYCLE
      npm ERR! [email protected] start: node bin/xo-server
      npm ERR! Exit status 1

      1 Reply Last reply Reply Quote 1
      • DustinB3403D
        DustinB3403
        last edited by DustinB3403

        So @BC what OS are you running for your XO client?

        Did you use the update script to perform this update, or did you update manually?

        Do you have any backups of your XO installation?

        1 Reply Last reply Reply Quote 1
        • B
          BC
          last edited by

          Ubuntu 15.10 (GNU/Linux 4.2.0-42-generic x86_64)

          Ran update via script
          sudo ./xo-update.sh
          barely just did install month ago almost exactly so script should be current!?!
          (10 months ago right)

          /opt/xo-web/npm-debug.log

          0 info it worked if it ends with ok
          1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]
          2 info using [email protected]
          3 info using [email protected]
          4 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/n$
          14 verbose stack at emitTwo (events.js:106:13)
          14 verbose stack at EventEmitter.emit (events.js:191:7)
          14 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/n$
          14 verbose stack at emitTwo (events.js:106:13)
          14 verbose stack at ChildProcess.emit (events.js:191:7)
          14 verbose stack at maybeClose (internal/child_process.js:852:16)
          14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_pro$
          15 verbose pkgid [email protected]
          16 verbose cwd /opt/xo-web
          17 error Linux 4.2.0-16-generic
          18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
          19 error node v6.4.0
          20 error npm v3.10.3
          21 error code ELIFECYCLE
          22 error [email protected] build: `npm run build-indexes && NODE_ENV=production gulp$
          22 error Exit status 1
          23 error Failed at the [email protected] build script 'npm run build-indexes && NODE$
          23 error Make sure you have the latest version of node.js and npm installed.
          23 error If you do, this is most likely a problem with the xo-web package,
          23 error not with npm itself.
          23 error Tell the author that this fails on your system:
          23 error npm run build-indexes && NODE_ENV=production gulp build
          23 error You can get information on how to open an issue for this project with:
          23 error npm bugs xo-web
          23 error Or if that isn't available, you can get their info via:
          23 error npm owner ls xo-web
          23 error There is likely additional logging output above.
          24 verbose exit [ 1, true ]

          ---- forgot to snapshot before testing - but won't kill me to simply reload from beginning either ----

          1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403
            last edited by DustinB3403

            The update script has been updated several times since 10 months ago. It would be prudent up update the update script.
            🙂

            1 Reply Last reply Reply Quote 0
            • B
              BC
              last edited by

              will do now...
              probably did the slow way .. but put new script in and now running again.

              acts like nothing to update -
              Stopping xo-server...
              Checking xo-server...
              Current branch stable
              Current version v5.2.6
              0 updates available
              Checking xo-web...
              Current branch stable
              Current version v5.2.5
              0 updates available
              Please manually restart xo-server

              Then
              cd /opt/xo-server
              sudo npm start

              module.js:457
              throw err;
              ^

              Error: Cannot find module './dist'
              at require (internal/module.js:20:19)
              at Object.<anonymous> (/opt/xo-server/index.js:11:18)
              at require (internal/module.js:20:19)
              at Object.<anonymous> (/opt/xo-server/bin/xo-server:31:25)

              npm ERR! Linux 4.2.0-42-generic
              npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
              npm ERR! node v6.4.0
              npm ERR! npm v3.10.3
              npm ERR! code ELIFECYCLE
              npm ERR! [email protected] start: node bin/xo-server
              npm ERR! Exit status 1
              npm ERR!
              npm ERR! Failed at the [email protected] start script 'node bin/xo-server'.
              npm ERR! Make sure you have the latest version of node.js and npm installed.
              npm ERR! If you do, this is most likely a problem with the xo-server package,
              npm ERR! not with npm itself.
              npm ERR! Tell the author that this fails on your system:
              npm ERR! node bin/xo-server
              npm ERR! You can get information on how to open an issue for this project with:
              npm ERR! npm bugs xo-server
              npm ERR! Or if that isn't available, you can get their info via:
              npm ERR! npm owner ls xo-server
              npm ERR! There is likely additional logging output above.

              • Same error / maybe not 100% sure.

              not an emergency - was a test setup so not major either way. Just thought it was odd.

              1 Reply Last reply Reply Quote 0
              • B
                BC
                last edited by

                Just reloading - better to see if i can reproduce the error and learn from it!

                odd though - not sure I messed with anything in the past week or so... but then again!

                DustinB3403D 1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403 @BC
                  last edited by

                  @BC said in XO Failure to Update issue - Posting for BC:

                  Just reloading - better to see if i can reproduce the error and learn from it!

                  odd though - not sure I messed with anything in the past week or so... but then again!

                  So a clean build worked without issue?

                  1 Reply Last reply Reply Quote 0
                  • B
                    BC
                    last edited by

                    working on it now

                    1 Reply Last reply Reply Quote 0
                    • B
                      BC
                      last edited by BC

                      Initially ran like it shows:

                      sudo curl...
                      and had several permission errors...
                      (probably would have done better had I read the entire thing!!)

                      found doing this works
                      sudo bash
                      enter pass
                      creates a bash @ root no sudo needed now runs
                      curl.... |bash

                      now things installing properly & running properly

                      • going back to original and seeing if it will work if I update correctly...
                      1 Reply Last reply Reply Quote 1
                      • 1 / 1
                      • First post
                        Last post