Closed bachirelkhoury closed 4 years ago
slc build seems to be including all Examples inside the node_modules including Android apks and huge images part of loopback-component-push and loopback-component-storage.
Cleaning those up manually has reduced the deployment significantly and seem to throw that error much less now.
Anyone knows how to have .gitignore for the slc build script? Seems to include everything it wants.
Thanks @pungoyal. I will try that. Ideally package maintainers should be adding that to ignore their samples and test data.
In conclusion, it was a git problem. Which was obvious but wasn't clear why. The cause was that slc build, was including all node_modules and some had massive files like apks and 10Mb images. Which is really not acceptable and should be cleanedup by their maintainer:
I might have had an older version of these packages as well. Anyway 16 hours later we've got a successful deployment.
I'm getting the exact same issue. Did you just delete big useless files in the node_modules directory?
@fmtoffolo yes I just deleted useless files in push and storage components. They had and still have an entire apk Android app in the examples.
slc deploy should ignore all examples in node_modules or give us a way to do so. Examples in some cases are bigger than the library itself.
Thanks. I was able to get the folder size down considerably but was still getting the error. Ended up just building a .tgz, uploading it and deploying it locally from the server. Pretty annoying workaround, but it works ok.
yes, me too. reduced the folder size down, but cannot get it to deploy remotely. for now we are pulling our repo on the production virtual machines and then build and deploy from there and it works ok. could someone from the loopback team drop in this conversation?
yeah that just happened again, and reducing directory size is not helping. @ebarault how to do you deploy straight on the server? we've pulled the repo but there's no slc on the server, only that sl-pm
Got the same issue. Any help on this? (no slc on the server)
@bachirelkhoury @mbilbille now you've pulled the repo on your server, what don't you do npm install -g strongloop
? you will get slc
just do all the rest as usual, npm install
, slc build
, slc deploy
, etc.
Yes, this is a bypass but it doesn't solve the initial issue.
As the situation does not seem to progress, we decided to move away from strong-pm and package our api app in docker instead
2016-09-28 15:05 GMT+02:00 Matthieu Bilbille notifications@github.com:
Yes, this is a bypass but it doesn't solve the initial issue.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/strongloop/strong-pm/issues/335#issuecomment-250160586, or mute the thread https://github.com/notifications/unsubscribe-auth/ALcep3XDLJb2jK9sZdolMcISr59dhigMks5qumYlgaJpZM4H9Req .
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding.
I'm getting the below error when deploying with git to a docker strong-pm-container Been stuck for days! Anyone else having this issue?!
We have 4 other deployments, similar apps, on different machines with same docker setup. They all work fine. Only this machine and setup. Driving us mad. Any pointers would be helpful.
I've looked up every issue with Git, increased the buffer size but still no same problem:
Here's the command:
Tried running it with curl verbose, got this at the end "select/poll returned error":