# nextcloud-occ recognize:download-models
Failed to download models
Unable to open "/nix/store/82wpw01yl3nkacq6yxr0dh84q4jmajfc-nextcloud-app-recognize-6.1.1/lib/Service/../../models.tar.gz" using mode "w+": fopen(/nix/store/82wpw01yl3nkacq6yxr0dh84q4jmajfc-nextcloud-app-recognize-6.1.1/lib/Service/../../models.tar.gz): Failed to open stream: Read-only file system
but it ends with errors, because nix store is read only.
Do anyone able to help? I would like to download models directly while nix-rebuild.
Recognize app is not much nixos friendly.
There is another solution:
recompile recognize app via Nix and add post install scripts, but it seems to be complicated at first look.
I still havenāt had the time to fully solve this. However, Iām attempting to gather as many possible ways to reach one place and then explore them.
and is expecting to save the file in the same path where the .php files exists so not possible. we could try to patch this file using nix patches so is saving the file somewhere else or we could just understand what this code does to download and register the model and simulate same thing in a nix derivation.
Iām also trying to use my nextcloud on NixOS with recognize. For me it also shows the error Could not execute the Node.js binary. You may need to set the path to a working binary manually. in the admin panel. How did you guys solve this?
And also, how did any of you solve the model downloading?
What do you mean by āit doesnāt work for meā? Iād need more context to help you.
The model downloading still doesnāt work and the download path is hardcoded, unfortunately. Iām not deep enough in the whole topic (and want to switch to immich anyway) to solve that.
But the recognition works on my machine, even without the model, for some reason.
So, the error of the not found node binary is gone now, right?
I had the same issue and I think I reverse-engineered the config value by setting a weird value in the admin setting in the browser and then 'grepāing that weird value to find out the config key to set. Itās been a month, though. So I donāt recall the exact way I found out how to tell recognize the node binary.
I donāt know about your errors, though and currently canāt check. All I know is that it kinda worked, even though it couldnāt download the models. I stopped dhecking the logs after that.
What does it say in the Node binary section of the recognize settings? It should be something like Ā“/nix/store/zklzfb51mxs8pqdpwh6h51jkir50hq54-nodejs-22.3.0/bin/nodeĀ“.