Coder Social home page Coder Social logo

Comments (9)

hnk73 avatar hnk73 commented on May 24, 2024 1

Oh yes, running as root worked properly. Thanks!!!

from build_tools.

ShockwaveNN avatar ShockwaveNN commented on May 24, 2024

Moved this issue to build_tools repo, since it's compilation issue

Am I right, that you tryed to compile it on ubuntu 14.04 as well? Current variant will not work on 18.04

Also could you specify exact commands, which you run or better provide some Dockerfile to reproduce.
I've compiled product according to default Dockerfile yesterday and everything was fine

from build_tools.

GrifKies avatar GrifKies commented on May 24, 2024

Yes, I did this on Ubuntu 14.04 as well.
For the commands, all below was run as root:
git clone https://github.com/ONLYOFFICE/build_tools.git
cd build_tools/tools/linux
python automate.py server
(wait until download of server module in onlyoffice/DocumentServer.git to edit server/Common/sources/constants.js)
Wait for it to start compiling webapps...
Fails with ELIFECYCLE ERROR on phantomjs as seen above. I am using npm 10, as this is what is default installed. Could I have the wrong version of npm or gcc?

Thank you!

from build_tools.

ShockwaveNN avatar ShockwaveNN commented on May 24, 2024

Could you attach your build log

Or compare with mine, which finished without any errors?

build.log.zip

from build_tools.

hnk73 avatar hnk73 commented on May 24, 2024

Got the same issue under Ubuntu 14.04, 16.04 or 18.04!!!!!

Here´s the output from the shell:

> [email protected] install /home/hnk/web-apps/build/node_modules/phantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
  [=========================---------------] 63%
Received 22866K total.
Extracting tar contents (via spawned process)
Removing /home/hnk/web-apps/build/node_modules/phantomjs-prebuilt/lib/phantom
Copying extracted folder /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1605302592645/phantomjs-2.1.1-linux-x86_64 -> /home/hnk/web-apps/build/node                                                                                                              _modules/phantomjs-prebuilt/lib/phantom
Phantom installation failed { [Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1605302592645/phantomjs-2.1.1                                                                                                              -linux-x86_64' -> '/home/hnk/web-apps/build/node_modules/phantomjs-prebuilt/lib/                                                                                                              phantom']
  errno: -13,
  code: 'EACCES',
  syscall: 'link',
  path:
   '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1605302592645/phantomjs-2.1.1-linux-x86_64',
  dest:
   '/home/hnk/web-apps/build/node_modules/phantomjs-prebuilt/lib/phantom' } Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.                                                                                                              tar.bz2-extract-1605302592645/phantomjs-2.1.1-linux-x86_64' -> '/home/hnk/web-ap                                                                                                              ps/build/node_modules/phantomjs-prebuilt/lib/phantom'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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!     /home/hnk/.npm/_logs/2020-11-13T21_23_14_885Z-debug.log
Error (npm): 1
Error (./make.py): 1

**Here´s the content form the debug.log:**
21783 verbose stack Error: [email protected] install: `node install.js`
21783 verbose stack Exit status 1
21783 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
21783 verbose stack     at EventEmitter.emit (events.js:198:13)
21783 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
21783 verbose stack     at ChildProcess.emit (events.js:198:13)
21783 verbose stack     at maybeClose (internal/child_process.js:982:16)
21783 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
21784 verbose pkgid [email protected]
21785 verbose cwd /home/hnk/web-apps/build
21786 verbose Linux 4.15.0-123-generic
21787 verbose argv "/usr/bin/node" "/usr/bin/npm" "install"
21788 verbose node v10.23.0
21789 verbose npm  v6.14.8
21790 error code ELIFECYCLE
21791 error errno 1
21792 error [email protected] install: `node install.js`
21792 error Exit status 1
21793 error Failed at the [email protected] install script.
21793 error This is probably not a problem with npm. There is likely additional logging output above.
21794 verbose exit [ 1, true ]

from build_tools.

ShockwaveNN avatar ShockwaveNN commented on May 24, 2024

I think you got another error, try to run from sudo, seems phantomjs cannot be installed because of permission issues

Phantom installation failed { [Error: EACCES: permission denied, link '/tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1605302592645/phantomjs-2.1.1 -linux-x86_64' -> '/home/hnk/web-apps/build/node_modules/phantomjs-prebuilt/lib/ phantom']

from build_tools.

hnk73 avatar hnk73 commented on May 24, 2024

Unfortunately not, i ran the script from sudo (sudo automate.py server).

from build_tools.

ShockwaveNN avatar ShockwaveNN commented on May 24, 2024

@hnk73 I'm not 100% sure, but you can try to change this code to include sudo
https://github.com/ONLYOFFICE/build_tools/blob/master/scripts/build_js.py#L70

If this not help - try to create temp VM or docker and run build script from root (I know this is not very safe, so advice to use docker or VM)

I've only checked this code with root user inside container

from build_tools.

ShockwaveNN avatar ShockwaveNN commented on May 24, 2024

Closing this issue since seems running with root worked

from build_tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.