-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot install tfjs-node on production server #7265
Comments
Hi @travisvadnais, and thanks for the report. You mentioned you're running this on cloud foundry. Is it running in a docker container, and if so, can you share what container you're using? Thanks! |
Hi - thanks for picking this up! We deploy through a Bamboo pipeline and none of the tasks spin up a Docker container, but I'm not sure if that's something that happens 'behind the scenes' or not. We did some additional searching this morning and tried installing It seems extremely unusual that it ran locally with all of the above changes (with multiple versions of node, no less!), but errored out w/ the same error in the deploy regardless of which of the above we tried. |
This might be a symlink and node resolution issue.
However, this file uses a relative
To see if this is the issue, you can copy the |
Thank you Matt - I'm going to bring this back to the team and try to tackle this approach tomorrow. I'll post back here if that was the issue, as I'm sure it'll help someone else at some point! |
Hi @mattsoulanille - We ended up completely rebuilding our application into a more modern Angular / Node app (hence the long response time), however this issue is still occurring. We've validated that We've attempted running Anything we've tried, we've tried by both modifying the This works locally, and interestingly enough the Bamboo build process completes successfully - it's just the deployment where this occurs. We've also tried virtually every version of We're dying here, as we are planning to use this for a whole lot of initiatives over the next couple years. Please help! P.S. Interestingly enough, we just tried v.4.4.0 this morning and it's flagging us for not being able to find the
|
Hi @mattsoulanille - Some added context - our deployment pipeline uses the Amazon Linux 2 OS distribution. Maybe this requires additional dependencies to be installed? |
The only thing I can think of right now is that there's still some issue with symlinks on Bamboo. Can you try changing this line from cp.exec(`node-pre-gyp install ${buildOption}`, (err) => { to cp.exec(`node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp install ${buildOption}`, (err) => { If that doesn't work, then you can also try cp.exec(`node node_modules/@mapbox/node-pre-gyp/lib/main install ${buildOption}`, (err) => { This should remove all the symlinks that the command was following. |
Hi @mattsoulanille - Thanks for the follow up, but still no luck - although it's a somewhat different error, so maybe that's progress?? Here's the log after the first command you provided:
And this is after the 2nd command:
For what it's worth, those are the deploy logs. The build passes, however I noticed this oddity in the log while working on the above:
Does any of this give you any other ideas? Thanks again! |
This is interesting. It looks like the
This is actually a good sign. It indicates that tfjs-node was able to load its tensorflow native binary. |
Thanks @mattsoulanille - The good news is, when I add This is 11 minutes into the deploy too, so this has to be the last hurdle before a successful deploy . . .
|
@travisvadnais This is error looks like you are running out of disk space, please check your storage quota. |
Thank you both @mattsoulanille & @pyu10055 . I was FINALLY able to get up and running in production! For posterity, the solution to getting ``@tensorflow/tfjs-node@4.4.0 running in my Linux system was to I think we're good to close this issue out, but any ideas why we would be running into issues with |
Hi, @travisvadnais Good to hear that your issue got resolved and these two issue threads #162 , #61 may help you to understand why Could you please confirm if this issue is resolved for you ? Please feel free to close the issue if it is resolved ? Thank you! |
Resolved. Thank you all! |
Hi, @travisvadnais You're welcome and Good to hear that your issue has been resolved, please feel free to close this issue now. Thank you! |
Resolved |
Hello -
I'm working on a project using danfojs-node@1.1.2 and @tensorflow/tfjs-node@3.20.0. I'm able to run this locally, but it fails when trying to deploy to a dev environment using Cloud Foundry.
I initially was using 3.21.0, but the http key for the pre-built binary was resulting in a 404 error.
Relevant portion of the logs:
And these are the relevant dependencies in package.json:
We've tried various combinations of node & tfjs-node versions, but can't seem to get past the package installs.
I can provide additional logging if needed, or any other info you may need.
TIA
The text was updated successfully, but these errors were encountered: