-
Notifications
You must be signed in to change notification settings - Fork 545
Problem buiding on linux #587
Comments
How did |
I regularly pull from master and rebuild, usually with burnthemall and it always worked. Also running Jessie. |
I'm not sure, but there are about 20 version between your node 6.2.1 and the actual version. ... see: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.11.1 .. |
I'm trying to build a docker 🐳 beaker-browser (Dockerfile here) with the following specs: Base image: Debian Buster-slim The docker instance is very minimal, and using trial and error, the following were the libraries that seemed to be needed:
@retog I did stumble on the Running
Which looks fine. But I don't see any browser popping up... 😅 I'm not quite familiar with nodejs/npm tbh, so could someone kindly point me to how I can start using this very 🆒 browser?! |
@pmario I actually downgraded to the 6.2.1 version of node, after it didn't work with newer version I decided to use the version recommended by the README. @weiji14 I'm also trying to run things in docker (but connecting X11 via ssh), the Dockerfile is here: https://github.com/retog/beaker/blob/master/Dockerfile @pfrazee I'm running burnthemall again (it takes a long time) and I'll let you know about the output/error |
@retog I know, that node V8+ doesn't work atm. I didn't try v7. For me 6.11.1 works. |
@pfrazee burnthemall ends with the following output
|
That's pretty weird. I'll check into it today, thanks.
…On Sun, Jul 23, 2017 at 5:17 AM, Reto Gmür ***@***.***> wrote:
@pfrazee <https://github.com/pfrazee> burnthemall ends with the following
output
[10:05:33] Finished 'less' after 22 ms
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'TimeoutError' is imported from external module 'beaker-error-constants' but never used
'default' is imported from external module 'function-queue' but never used
'default' is imported from external module 'moment' but never used
[10:05:35] 'bundle' errored after 2.4 s
[10:05:35] Error: Cannot find module 'remarkable' from '/usr/src/app/app'
at /usr/src/app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:46:17
at process (/usr/src/app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:173:43)
at ondir (/usr/src/app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:188:17)
at load (/usr/src/app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
at onex (/usr/src/app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
at /usr/src/app/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
at FSReqWrap.oncomplete (fs.js:117:15)
npm ERR! Linux 4.4.0-83-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "rebuild"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! beakerbrowser@ rebuild: `(cd app && npm rebuild --runtime=electron --target=1.7.4 --disturl=https://atom.io/download/atom-shell --build-from-source); gulp build`
npm ERR! Exit status
1
npm ERR!
npm ERR! Failed at the beakerbrowser@ rebuild script '(cd app && npm rebuild --runtime=electron --target=1.7.4 --disturl=https://atom.io/download/atom-shell --build-from-source); gulp build'.
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 beakerbrowser package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! (cd app && npm rebuild --runtime=electron --target=1.7.4 --disturl=https://atom.io/download/atom-shell --build-from-source); gulp build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs beakerbrowser
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls beakerbrowser
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/app/npm-debug.log
npm ERR! Linux 4.4.0-83-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "burnthemall"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! beakerbrowser@ burnthemall: `rm -Rf ./node_modules ./app/node_modules; npm i; npm run rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the beakerbrowser@ burnthemall script 'rm -Rf ./node_modules ./app/node_modules; npm i; npm run rebuild'.
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 beakerbrowser package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! rm -Rf ./node_modules ./app/node_modules; npm i; npm run rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs beakerbrowser
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls beakerbrowser
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/app/npm-debug.log
***@***.***:/usr/src/app#
npm-debug.log.txt
<https://github.com/beakerbrowser/beaker/files/1168007/npm-debug.log.txt>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABNhU53xrWSVfJrpZEFB9-ewvZusHFijks5sQx3LgaJpZM4OSC81>
.
|
Just tested it with ubuntu 17.04 node v6.2.1 with |
@retog I'm not finding anything obvious If you do |
Temporary commit to reproduce burnthemall error from beakerbrowser/beaker#587 (comment) by changing user from beaker to root.
I've reproduced @retog 's burnthemall error in my dockerfile simply by changing from a standard user to running See https://www.diffchecker.com/WKSO4NzK for the output log comparison (left is mine, right is retog's error from above). I can post more output logs if necessary. @pfrazee if I can speak for @retog, there is no node_modules/remarkable/package.json in that failed build. |
@weiji14 I could refactor the Dockerfile not to use the root user. It would add some complexity as the node:*-onbuild image would no longer be usable, I think. |
@retog I'd prefer to solve your root problem, though I apologize for moving
so slowly on this issue. I've gotta boot up my linux box and see if I can
reproduce it.
A missing module does seem like an npm bug.
…On Wed, Jul 26, 2017 at 10:20 AM, Reto Gmür ***@***.***> wrote:
@weiji14 <https://github.com/weiji14> I could refactor the Dockerfile not
to use the root user. It would add some complexity as the node:*-onbuild
image would no longer be usable, I think.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABNhU8uYdrrWS2etXfjSapsdYzHB1tuiks5sR1kxgaJpZM4OSC81>
.
|
@pfrazee I'm very excited about Beaker Browser and hashbase.io, but I could not install the new version of beaker on Ubuntu MATE 16.04. I had been able to install and run an earlier version of beaker and the cli. Thanks! |
@absullivan I'm hitting this today. Thanks for being patient everyone |
@retog I'm not able to reproduce this in Ubuntu 16 with node 7. Looking back at your original report, "npm run burnthemall" is failing the @absullivan what did you run into? |
This may have nothing to do with it, but the first time I tried to run the
newest version of Beaker, there was a message that referenced IPFS. I run
the go implementation of IPFS.
I got the kinds of errors that you cite as reasons to run burnthemall. In
the past, burnthemall worked, and I could run Beaker. Now, I just get
errors, and it sometimes seems to ask me to add numerous modules.
Thanks,
Andrew
…On Aug 2, 2017 4:47 PM, "Paul Frazee" ***@***.***> wrote:
@retog <https://github.com/retog> I'm not able to reproduce this in
Ubuntu 16 with node 7. Looking back at your original report, "npm run
burnthemall" is failing the rm step. That usually means a path or
permissions problem. I'm wondering if there are modules getting installed
as root, and then you run burnthemall as nonroot?
@absullivan <https://github.com/absullivan> what did you run into?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE9AmhId79iyo0yE4irLcBIbGMAdAhgLks5sUOBJgaJpZM4OSC81>
.
|
I think I have run everything as sudo.
…On Aug 2, 2017 11:55 PM, "Andrew Sullivan" ***@***.***> wrote:
This may have nothing to do with it, but the first time I tried to run the
newest version of Beaker, there was a message that referenced IPFS. I run
the go implementation of IPFS.
I got the kinds of errors that you cite as reasons to run burnthemall. In
the past, burnthemall worked, and I could run Beaker. Now, I just get
errors, and it sometimes seems to ask me to add numerous modules.
Thanks,
Andrew
On Aug 2, 2017 4:47 PM, "Paul Frazee" ***@***.***> wrote:
> @retog <https://github.com/retog> I'm not able to reproduce this in
> Ubuntu 16 with node 7. Looking back at your original report, "npm run
> burnthemall" is failing the rm step. That usually means a path or
> permissions problem. I'm wondering if there are modules getting installed
> as root, and then you run burnthemall as nonroot?
>
> @absullivan <https://github.com/absullivan> what did you run into?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#587 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AE9AmhId79iyo0yE4irLcBIbGMAdAhgLks5sUOBJgaJpZM4OSC81>
> .
>
|
@absullivan Im starting to think sudo is the culprit. Can you try doing a fresh clone?
You won't lose any data if you do this (data is in another dir). |
Hi Paul,
Thanks for your email. I followed your instructions, and they seem to have
worked. Now I can't get the photo-sharing app to work.
Thanks again for your help!
Andrew
…On Thu, Aug 3, 2017 at 11:05 AM, Paul Frazee ***@***.***> wrote:
@absullivan <https://github.com/absullivan> Im starting to think sudo is
the culprit. Can you try doing a fresh clone?
git clone https://github.com/beakerbrowser/beaker.git
cd beaker
npm install
npm run rebuild
npm start
You won't lose any data if you do this (data is in another dir).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE9AmkKMIKATXW9k4quqcpeEQWFjMXiwks5sUeGigaJpZM4OSC81>
.
|
What's your issue with the photos app?
… On Aug 5, 2017, at 10:47 PM, Andrew B. Sullivan ***@***.***> wrote:
Hi Paul,
Thanks for your email. I followed your instructions, and they seem to have
worked. Now I can't get the photo-sharing app to work.
Thanks again for your help!
Andrew
On Thu, Aug 3, 2017 at 11:05 AM, Paul Frazee ***@***.***>
wrote:
> @absullivan <https://github.com/absullivan> Im starting to think sudo is
> the culprit. Can you try doing a fresh clone?
>
> git clone https://github.com/beakerbrowser/beaker.git
> cd beaker
> npm install
> npm run rebuild
> npm start
>
> You won't lose any data if you do this (data is in another dir).
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#587 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AE9AmkKMIKATXW9k4quqcpeEQWFjMXiwks5sUeGigaJpZM4OSC81>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I don't know what the issue was, but it seems to be gone! I've been
experimenting with the photo sharing app, and it seems to 'just work.' Now,
I have to try to make my own version of the Ghost blog by creationix that's
on hashbase. You tweeted a suggestion about a node program I could run to
make a blog visible on both Beaker and IPFS. Then I can put it on hashbase
to make it visible on HTTP. Could I put the photo sharing app on hashbase?
You also posted about a way to make Github blogs visible as dat blogs (I
already have a Github blog). I also have to reread your Medium blog post
about the funny situation with the keys. You should probably pin that
tweet. It doesn't scare me out of using Beaker, but it's good to know and
follow.
Thanks for all of your help and your suggestions! I want to help spread the
decentralized gospel.
…On Aug 6, 2017 1:02 AM, "Paul Frazee" ***@***.***> wrote:
What's your issue with the photos app?
> On Aug 5, 2017, at 10:47 PM, Andrew B. Sullivan <
***@***.***> wrote:
>
> Hi Paul,
>
> Thanks for your email. I followed your instructions, and they seem to
have
> worked. Now I can't get the photo-sharing app to work.
>
> Thanks again for your help!
>
> Andrew
>
> On Thu, Aug 3, 2017 at 11:05 AM, Paul Frazee ***@***.***>
> wrote:
>
> > @absullivan <https://github.com/absullivan> Im starting to think sudo
is
> > the culprit. Can you try doing a fresh clone?
> >
> > git clone https://github.com/beakerbrowser/beaker.git
> > cd beaker
> > npm install
> > npm run rebuild
> > npm start
> >
> > You won't lose any data if you do this (data is in another dir).
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <https://github.com/beakerbrowser/beaker/issues/
587#issuecomment-319996749>,
> > or mute the thread
> > <https://github.com/notifications/unsubscribe-auth/
AE9AmkKMIKATXW9k4quqcpeEQWFjMXiwks5sUeGigaJpZM4OSC81>
> > .
> >
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub, or mute the thread.
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE9AmsCmy-P1kjtYY2fxN5gu9xaKvn9xks5sVUjQgaJpZM4OSC81>
.
|
👍 Sweet. I'll put together a "beginners guide to beaker" for all that. |
Still no luck here. From the various comments it seems the problem can be avoided by building and running as a non-root user. I'm wondering why this is. |
I have the same error with CentOS7.3 and Node8.6. [update] I tried to install all modules reporting missing one by one using [update 2] I figured out I didn't have gulp installed - I am really new to gulp |
@dsun29 did you do you install using sudo? It seems other people solved their issue by not using sudo during the install flow. |
From #694 (comment)
I'm going to reopen till it's clear why this is happening. I still suspect it's permissions. |
@pfrazee I did everything under root in CentOS in the last try but still had no luck. So I don't think it is permission issue. It may be something with my CentOS desktop though since it is first time you heard it. I am going to give it another try this evening when I get back to home. Thank you so much for taking time looking at this. I really love beaker. |
@dsun29 appreciate you being patient with us! I dont have a centos install but I could add it to a list of future VM todos. Out of curiosity, could you try doing an install with a non root user and no sudo? I'm wondering if part of our setup process might somehow run as another user. Seems unlikely but worth double checking. (My familiarity with linux falls short here.) |
@pfrazee you are so right about "non-root" user. I created a new user and this time the installation was so smooth!! I am using beaker now. Also, under root I found that |
I have run into this problem as well, but I've been running as non-root user the entire time. I think this is a permissions problem as looking at the npm-debug.log node is trying to install to /usr/lib/node_modules, which my user account doesn't have access too. I think this may be because I installed node in a strange way, but I can't remember. Not really sure what else I should try except reinstalling node.
|
Old Stack Overflow thread: How to npm install global not as root? Basically, if You'll want to install node (and manage multiple versions if needed) with either
I prefer |
Yeah, @millette has the right solution for the last issue. Looks like, in all cases, you just need to avoid using root privileges to do the build/install. We're going to have a linux build soon (appimage) |
Operation System: Debian GNU/Linux 8 (jessie)"
Beaker Version: master branch at d96c38a (Fri Jul 7 17:56:07 2017 -0500)
running
fails with
npm-debug.log.txt
Running
npm run burnthemall
failed tooThe text was updated successfully, but these errors were encountered: