Skip to content
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

"Error: ENOENT: no such file or directory, open" #25

Closed
krambriw opened this issue Feb 7, 2023 · 5 comments
Closed

"Error: ENOENT: no such file or directory, open" #25

krambriw opened this issue Feb 7, 2023 · 5 comments

Comments

@krambriw
Copy link

krambriw commented Feb 7, 2023

"Error: ENOENT: no such file or directory, open"

From time to time I get this error message in the debug log. Normally it runs fine but then suddenly I can see one or two of those. Using version 1.05 on a RPi4 (used "npm rebuild @tensorflow/tfjs-node --build-from-source" to make it work after installation via palette i NR)

@dceejay
Copy link
Owner

dceejay commented Feb 8, 2023

odd - tricky to suggest anything when it doesn't mention which file or directory. Is there any more to the message like a line number and file that the error is coming from ?

@krambriw
Copy link
Author

krambriw commented Feb 8, 2023

This is all I get in the NR debug tab. I will run the node-red-log in a command prompt to check if it says more, Otherwise I guess the string might reside somewhere in a module, maybe in a library that is used??

@krambriw
Copy link
Author

krambriw commented Feb 8, 2023

For the time being, think we can close this issue since now I do suspect that it is the provided image data that might be corrupt. Images are pushed by ffmpeg and to debug I attached another node in parallel (Image tools by Steve). After a while I got this in the NR log (similar in the debug tab):
8 Feb 11:08:51 - [error] [jimp-image:bdd8bcc7e83e70f0] Error: property 'image' is not valid
8 Feb 11:08:51 - [error] [tensorflowCoco:5caa26e6b8f321be] Error: ENOENT: no such file or directory, open

So it seems the image data is corrupted in some way, obviously no good. Nothing wrong with tf-coco-ssd node

Best regards, Walter

@krambriw krambriw closed this as completed Feb 8, 2023
@dceejay
Copy link
Owner

dceejay commented Feb 8, 2023

Ok - thanks for letting me know - is it corrupt or jus not present ? (IE can you detect that fact before passing to tfjs and stop it trying to process bad/null data ?

@krambriw
Copy link
Author

krambriw commented Feb 8, 2023

I found the reason: the text message "no such file or directory, open" is coming from ffmpeg when it fails to open the url. When this message (the content of the msg.payload) is forwarded to the tf-coco-ssd node, it generates that error message as described above. Fully understood and adding some smart filtering before forwarding it to the node will solve the problem. Right now, just putting Steve's Image tool node in front of the tf-coco-ssd node does stop it from being forwarded further in the flow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants