Truenas Scale>Nextcloud>Recognize App HELP

JacobSmelcer

Dabbler
Joined
Aug 25, 2023
Messages
15
Hello,

I am very new to this world of NAS, I built my own and have it running pretty well. My main goal was to use it as an alternative to Google Photos. I have my nextcloud set up, and able to upload photos from any device, but the facial recognition is not working. The Recognize app is downloaded, but in the settings it says "The machine learning models still need to be downloaded." I have no idea how to download these models. I know I need to use the OCC commands, but there is no explanation on how to do this, or where at. if anyone has dealt with this, and could provide some assistance, I would appreciate it
1f642.png
 

erikpo

Cadet
Joined
Aug 30, 2023
Messages
1
Hi! You can go to your NAS and open Terminal - enter the command: occ command list
This command will list all available OCC commands. Find the occ ml model download command. Enter the following command to download face recognition machine learning models:
occ ml model face download. I hope it can help you
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Hi! You can go to your NAS and open Terminal - enter the command: occ command list
Well, those are poor instructions...

Since it's an App in SCALE, you'll need to go to the app, click the 3 dots and select Shell, then you may be able to interact with occ or whatever in that shell.
 

JacobSmelcer

Dabbler
Joined
Aug 25, 2023
Messages
15
Well, those are poor instructions...

Since it's an App in SCALE, you'll need to go to the app, click the 3 dots and select Shell, then you may be able to interact with occ or whatever in that shell.
I have tried this a few times, but I get no luck. There are multiple drop down options that i have no idea which one to select, and the command section seems to be a path, but I do not know what path to enter. I have searched on past forums, and no one gives clear instructions on how to accomplish this.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
OK, what version of Nextcloud are you running... I'll try to walk through it and write some complete instructions.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
OK, that's helpful to know, but what I was trying to find out was what version of the Nextcloud App are you running? The TrueCharts or the "official" one?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Well, before I even get to know that, I've tested them both... not good news.

The Official App seems to have no real way to run occ, so you're dead in the water from the start there.

The TrueCharts app, on the other hand seems to have done a great job of making occ work... you select to open the shell, pick the container that has the least additional crap after Nextcloud in the first selector, then there's only Nextcloud in the second one...

Then in that shell, you can just run occ directly.

Once you do that (and have the face recognition Nextcloud app installed, the command:

occ face:setup -M 1G -m 1 is ready to be run...

Massive problem...

The container doesn't have the DLib PHP bindings, so doesn't meet the requirements.

That's pretty much dead in the water at that point too (unless you're going to try to set the container not to be read-only and get apt working to then install it... only to have it broken when the container gets deployed again due to an update or whatever)...

So, for me, the only way you're going to have any fun with it is by using a Launch Docker Image and manually getting an image like this one to work:

(although that one in particular is almost 2 years old, so probably not a good choice... I didn't spend a lot of energy looking around for a better one).
 

JacobSmelcer

Dabbler
Joined
Aug 25, 2023
Messages
15
OK, that's helpful to know, but what I was trying to find out was what version of the Nextcloud App are you running? The TrueCharts or the "official" one?
Opps, sorry about that, here is a screenshot of my nextcloud
 

Attachments

  • IMG_8162.jpeg
    IMG_8162.jpeg
    126.5 KB · Views: 214

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
See my post above.

The other option you have is to ask the TrueCharts folks (or iX via the issues on the App's github) to add the dependencies into their container.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The Official App seems to have no real way to run occ, so you're dead in the water from the start there.
This entire "app" concept is just great, isn't it? How are you ever going to operate a Nextcloud installation in production without access to occ? :grin:
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Most likely 'occ' just isn't in the path for the app, but is is there :) Please file a ticket on https://github.com/truenas/charts/issues if that is still the case.

This is part of why I gave up on Nextcloud personally, got tired of always having to go run things from the CLI (both on CORE and SCALE) in general. I only used it for photo backup and Immich has completely changed my life there :)
 

JacobSmelcer

Dabbler
Joined
Aug 25, 2023
Messages
15
Most likely 'occ' just isn't in the path for the app, but is is there :) Please file a ticket on https://github.com/truenas/charts/issues if that is still the case.

This is part of why I gave up on Nextcloud personally, got tired of always having to go run things from the CLI (both on CORE and SCALE) in general. I only used it for photo backup and Immich has completely changed my life there :)
I was mainly looking for an alternative to google photos. Search results let me to Nextcloud, it seemed pretty cool, but it has been a hassle. Does Immich work similarly for storing photos?
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Absolutely, and fantastic iOS / Android app as well. Highly recommend giving it a look if that's your use-case, solved a major headache for me personally.

 

Lepelot

Dabbler
Joined
Dec 13, 2020
Messages
21
Most likely 'occ' just isn't in the path for the app, but is is there :) Please file a ticket on https://github.com/truenas/charts/issues if that is still the case.

This is part of why I gave up on Nextcloud personally, got tired of always having to go run things from the CLI (both on CORE and SCALE) in general. I only used it for photo backup and Immich has completely changed my life there :)
Waou! Kris, this is a death sentence for Nextcloud on TrueNas .... Your message indicates that you have lost hope and that there are other reasons than just this facial recognition issue. Would you mind expending on this a little? I am getting pretty frustrated myself, but I was still hopping that Nextcloud would work nicely on Scale once the APP is stabilized. Based on your comment, I think I'll turn that switch of right now !!
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I can assure you that Nextcloud runs perfectly well in a TrueNAS CORE jail if kept up to date - which of course includes running php occ upgrade from time to time as documented by Nextclouders.

With the promise that "apps" would vastly improve upon the experience of jail based "plugins" I have always questioned myself how they were going to tackle the update problem. This is not only an issue with Nextcloud. Many applications that need e.g. database schema upgrade after major application changes mandate that you run a couple of commands to perform the actual upgrade. E.g. Apache Guacamole, Gitlab, you name it ...

So just deploying an updated container and mounting the persistent data paths is frequently not enough. And if that is the case I fail to see how one can improve upon jails by changing the underlying container technology.

If Nextcloud is a strategic component and partner of the "TrueNAS experience" iX will need to own the product through the entire lifecycle. Which includes minor patch updates approximately once per month and major release upgrades once per year - at least - frequently including PHP and DB version changes. In a timely fashion, which adds to the pressure/workload, because updates tend to fix security problems.

This is a heck of a lot of work and the entire Nextcloud product is probably just as complex as the entire TrueNAS. That's what you are facing if you want to offer an "easy-peasy" plugin/app/whatever. Running and maintaining Nextcloud requires serious system administration skills and experience.

We do that for our customers in our own jail based private cloud named "proServer" and we have Ansible plays to automate the Nextcloud updates. Doesn't save us from reviewing and updating them for every new major release ...

My 2 ct. regarding jails vs. apps and specifically Nextcloud. Nextcloud shines when run on a NAS. It's a perfect mate for TrueNAS. I really love both products. But I prefer reliable updates over "easy" initial deployment. So I run Nextcloud in a manual jail. You might decide to use @danb35's script to not start from zero.

Unfortunately our company Ansible plays are too tightly tied to our proServer infrastructure, have lots of hard coded magic constants modelling our own data centre and the like. I would be willing to share but you would not be able to use them. So Dan's script is your best bet, currently.

Kind regards,
Patrick
 

victort

Guru
Joined
Dec 31, 2021
Messages
973
I can assure you that Nextcloud runs perfectly well in a TrueNAS CORE jail if kept up to date - which of course includes running php occ upgrade from time to time as documented by Nextclouders.

With the promise that "apps" would vastly improve upon the experience of jail based "plugins" I have always questioned myself how they were going to tackle the update problem. This is not only an issue with Nextcloud. Many applications that need e.g. database schema upgrade after major application changes mandate that you run a couple of commands to perform the actual upgrade. E.g. Apache Guacamole, Gitlab, you name it ...

So just deploying an updated container and mounting the persistent data paths is frequently not enough. And if that is the case I fail to see how one can improve upon jails by changing the underlying container technology.

If Nextcloud is a strategic component and partner of the "TrueNAS experience" iX will need to own the product through the entire lifecycle. Which includes minor patch updates approximately once per month and major release upgrades once per year - at least - frequently including PHP and DB version changes. In a timely fashion, which adds to the pressure/workload, because updates tend to fix security problems.

This is a heck of a lot of work and the entire Nextcloud product is probably just as complex as the entire TrueNAS. That's what you are facing if you want to offer an "easy-peasy" plugin/app/whatever. Running and maintaining Nextcloud requires serious system administration skills and experience.

We do that for our customers in our own jail based private cloud named "proServer" and we have Ansible plays to automate the Nextcloud updates. Doesn't save us from reviewing and updating them for every new major release ...

My 2 ct. regarding jails vs. apps and specifically Nextcloud. Nextcloud shines when run on a NAS. It's a perfect mate for TrueNAS. I really love both products. But I prefer reliable updates over "easy" initial deployment. So I run Nextcloud in a manual jail. You might decide to use @danb35's script to not start from zero.

Unfortunately our company Ansible plays are too tightly tied to our proServer infrastructure, have lots of hard coded magic constants modelling our own data centre and the like. I would be willing to share but you would not be able to use them. So Dan's script is your best bet, currently.

Kind regards,
Patrick
Amen to this.

If @JacobSmelcer is just wanting to run Nextcloud, I would strongly recommend giving TrueNAS Core a shot. The scripted installation of Nextcloud (link in my signature) is awesome, and will probably do everything you need to get started with facial recognition.
 

Lepelot

Dabbler
Joined
Dec 13, 2020
Messages
21
Running and maintaining Nextcloud requires serious system administration skills and experience.

Patrick, thank you for your comments. Personally, I am a retired engineer who likes to use these and many other software for private/family use and I know there are many other folks like me out there. I have been using Nextcloud on Truenas core for the last 3 yrs. and my experience is that the TrueNas bit is very solid, but as you said "Running and maintaining Nextcloud requires serious system administration skills and experience." I have some of that but not enough and I don’t want to spend that much time keeping my data safe and readily available. I was hoping that Scale would make this easier for non-professional/occasional users, but when I see your and Kris' comments, I am seriously doubting that it will be the case anytime soon.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Patrick, thank you for your comments. Personally, I am a retired engineer who likes to use these and many other software for private/family use and I know there are many other folks like me out there. I have been using Nextcloud on Truenas core for the last 3 yrs. and my experience is that the TrueNas bit is very solid, but as you said "Running and maintaining Nextcloud requires serious system administration skills and experience." I have some of that but not enough and I don’t want to spend that much time keeping my data safe and readily available. I was hoping that Scale would make this easier for non-professional/occasional users, but when I see your and Kris' comments, I am seriously doubting that it will be the case anytime soon.
For a simpler remote access that does not require continuous maintenance, ponder using a VPN connection provided by your router/firewall and with a VPN established accessing TrueNAS the regular way over SMB. Depends on the number of users and specific use cases you have to support, of course.

But then in Nextcloud you drop some documents into the Nextcloud folder on your desktop, they are synced automatically, you invoke the the web UI and generate a read-only link to give someone else a way to download ...

It all depends on the use cases.
 
Last edited:
Top