You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/08/25 11:54:11 UTC

[GitHub] [cloudstack-primate] j-porsche opened a new issue #616: [BUG] Trying to run docker.sh script

j-porsche opened a new issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616


   Hey,
   
   **Describe the bug**
   I tried to install cloudstack-primate on a CentOS 8.1 VM. Everything worked fine until I had to run the docker.sh script. Later the command "npm run build" is executed. The process is stopping at this point with an error (image attached). 
   
   Npm run build works fine if I start it manually outside the container.  Inside the container it isn't working. The npm versions are the same.
   
   Can somebody help me with this problem?
   
   Thank you!
   
   
   **Screenshots**
   ![debugLog](https://user-images.githubusercontent.com/61408412/91171117-3da98400-e6da-11ea-9881-66bfb35f2646.PNG)
   
   
   **Desktop (please complete the following information):**
    - OS: CentOS 8.1
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] onitake commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
onitake commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680864896


   @rhtyd Do you think we can change the base image to node:lts-stretch? The current base image also installs Node 12.18.3, like lts-buster.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] j-porsche closed issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
j-porsche closed issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] j-porsche commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
j-porsche commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680762466


   Sorry but your tips didn't help me out. The error is still there.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] utchoang commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
utchoang commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680770269


   @rhtyd Do you have the other idea? On my device (Windows), it's completely normal.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] onitake commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
onitake commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680032107


   Ok, so first of all: The Dockerfile works fine for me. I get no error at all, no matter how many times I run it.
   
   My experience with npm is that it can break easily for obscure reasons. The log you posted doesn't look very useful.
   Can you try deleting the `node:lts-buster` image and run the build again? Is it reproducible?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] onitake edited a comment on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
onitake edited a comment on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680864896


   @rhtyd Do you think we can change the base image to node:lts-stretch? The current base image also installs Node 12.18.3, like lts-buster.
   
   I just tested it on my system and it works equally well.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] onitake commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
onitake commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680045020


   Perhaps this helps? https://github.com/vuejs/vue-cli/issues/2596


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] j-porsche commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
j-porsche commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680867731


   Well from my perspective with node:lts-stretch it works fine now. So I think it could be a good change.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] j-porsche commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
j-porsche commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680002179


   I don't understand what you mean? Can you explain? My connection should be good.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd edited a comment on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
rhtyd edited a comment on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680774100


   @j-porsche ~can you build it locally without using docker?~ You've confirmed it works locally so I suppose you can use that for now? The error looks like a npm build issue


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] j-porsche commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
j-porsche commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680789223


   I tried it again with a fresh git clone. But I used node:lts-stretch instead of node:lts-buster. Now the build process works fine.
   
   I use podman (v1.6.4) instead of docker.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-681710214


   Fixed in https://github.com/apache/cloudstack-primate/pull/626


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] onitake commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
onitake commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680785069


   @rhtyd The Dockerfile specifies node:lts-buster as its build base container. That should pick up Node 12.18.3 according to https://hub.docker.com/layers/node/library/node/lts-buster/images/sha256-902bf79075924ff034642dc7da0e5f40a08ff65b5650c54bac3a03dea1e3a87f?context=explore
   
   I just run another test on a separate machine running Debian buster using a fresh git clone. It worked flawlessly.
   @j-porsche did you try a fresh checkout?
   
   Perhaps it's an issue with CentOS 8, or the Docker version you're using.
   How did you install Docker, and which version is it?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] onitake commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
onitake commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-679992628


   I'm trying to reproduce it here, but the build works perfectly fine on my system.
   
   From my experience, npm is quite a brittle tool and can break without meaningful error at any time - in particular when internet connectivity is not good.
   
   Is your error reproducible? Does it go away if you use a different internet connection?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] j-porsche commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
j-porsche commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680003511


   And local (outside the container) it is working fine.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680774793


   This is my npm version output, make sure to use npm LTS 12.x in the container:
   ```
   > npm version
   {
     npm: '6.14.4',
     ares: '1.16.0',
     brotli: '1.0.7',
     cldr: '37.0',
     http_parser: '2.9.3',
     icu: '67.1',
     llhttp: '2.0.4',
     modules: '72',
     napi: '6',
     nghttp2: '1.41.0',
     node: '12.18.3',
     openssl: '1.1.1g',
     tz: '2019c',
     unicode: '13.0',
     uv: '1.38.0',
     v8: '7.8.279.23-node.39',
     zlib: '1.2.11'
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] j-porsche commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
j-porsche commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680040724


   I tried it but it doesn't work neither. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] onitake commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
onitake commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680045663


   Note that Docker will copy the whole build directory into the container, so if you have anything left lying around there, it may disrupt the build.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] svenvogel commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
svenvogel commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-679979935


   @rhtyd @utchoang do you have some ideas on this error?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd commented on issue #616: [BUG] Trying to run docker.sh script

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #616:
URL: https://github.com/apache/cloudstack-primate/issues/616#issuecomment-680774100


   @j-porsche can you build it locally without using docker? And try on a different laptop/VM? The error looks like a npm build issue


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org