Jump to content

[Support] kilrah/nextcloud-ffmpeg with pdlib


Recommended Posts

21 hours ago, Kilrah said:

No, my redis appdata has a single file owned by 1001 and it did that in its own AFAIK, never had to fiddle with it. If you changed container you may need to delete the redis appdata folder.

 

image.png.72a671036ca66daf0bf7f0cd27b08d2a.png

I think the container you used has been modified since and now it works differently.

Link to comment

Ok, I have managed to get Redis working, clearly my lack of experience is slowing me down but with your pointers I am getting there...... Thank you.

 

Started fresh. Removed the latest install of redis + appdata. Cleaned up my nextcloud config (disabled maintenance mode)

 

1. Installed redis - bitnami repository.

2. Inside the docker container:

  a. Changed allow empty password to "NO"

  b. Changed the suggested password to "my_password"

  c. Applied changes to the docker container.

3. Opened unraid terminal and ran the below:

"chown -R 1001:1001 /mnt/user/appdata/redis/"

4. Started redis.

5. Added the below to my nextcloud config file:

  'memcache.distributed' => '\\OC\\Memcache\\Redis',

  'memcache.locking' => '\\OC\\Memcache\\Redis',

  'redis' =>

 array (

    'host' => '193.166.0.4',

    'port' => 6379,

    'password' => 'my_password',

),

6. Restarted nextcloud.

 

It would seem that my nextcloud had gone into maintenance mode while i was mucking about.. after disabling maint mode and performing the above all is well.

I also updated my NC instance as suggested recently, by running ( docker exec -u 33 Nextcloud-ffmpeg sh -c "php occ upgrade" ) 

 

During the upday there were some crazy logs hence the big number - otherise all my errors and warnings are gone! :dancing:

 

image.thumb.png.cca398c9ef72d25d118c8eb631262883.png

 

Link to comment
On 3/17/2024 at 3:03 AM, Kilrah said:

What is set in the "show more" section of the Nextcloud template? Did you run "new permissions" on appdata?

 

On 3/17/2024 at 7:21 AM, diehardbattery said:

No I haven't done anything other than run the command you provided earlier... When I Click show more there is nothing.  The arow moves up as if to show more info but there's nothing there:

 

kInADumE46.thumb.png.a3d2b922366f7bb9641d9ea58eeb6a8f.png

Any ideas?

Link to comment
On 3/16/2024 at 5:03 PM, diehardbattery said:

So I ran into this when trying to access my instance today... and I can't make heads or tails on how to proceed.  Unfortunately I'm not very good at translating stuff from other nexcloud variants (aio, etc).  Trying to update via the unraid docker page shows everything is up to date.

Qe4cGPYHmn.thumb.png.9ffac87f6ce292dc9cee63c6bd0d6776.png

 

On 3/16/2024 at 5:29 PM, Kilrah said:

Try

in unraid terminal, adjusting the container name if necessary

 

On 3/16/2024 at 5:52 PM, diehardbattery said:

Should -u 33 be -u 99?  When I run it, I get this:

Console has to be executed with the user that owns the file config/config.php
Current user id: 33
Owner id of config.php: 99

 

 

On 3/16/2024 at 6:05 PM, Kilrah said:

This container/template sets things as Nextcloud's default of 33, so you probably did something custom - but yes in your case.

 

On 3/16/2024 at 6:24 PM, diehardbattery said:

Okay, I ran the command but now when I try to access I get this error:

Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php

I tried changing permissions for everything in the /config folder to 777 but that does not work either.  I restored a backup that was made from the CA appdata backup utility and ran the upgrade command again.  After restarting the container, it appears the docker log is still complaining about user id 33.  I have not done anything custom that I am aware of that would make the current user id what it is (99)?

Initializing nextcloud 28.0.3.2 ...
Upgrading nextcloud from 28.0.2.5 ...
=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/pre-upgrade
Console has to be executed with the user that owns the file config/config.php
Current user id: 33
Owner id of config.php: 99
Try adding 'sudo -u #99' to the beginning of the command (without the single quotes)

 

 

On 3/17/2024 at 3:03 AM, Kilrah said:

What is set in the "show more" section of the Nextcloud template? Did you run "new permissions" on appdata?

 

On 3/17/2024 at 7:21 AM, diehardbattery said:

No I haven't done anything other than run the command you provided earlier... When I Click show more there is nothing.  The arow moves up as if to show more info but there's nothing there:

 

kInADumE46.thumb.png.a3d2b922366f7bb9641d9ea58eeb6a8f.png

Can someone please help?  Not everyone knows how to resolve these issues independently and unfortunately, I am one of them.  I just want this working again...

Link to comment
  • 1 month later...
On 3/31/2024 at 2:50 PM, diehardbattery said:

If you mean the Docker Safe New Perms then I did try that, unfortunately it didn't help.

actually, this might even destroy it! This does reset the user:group to nobody:nobody and read write to 777. If I do that to my data nextcloud won't start!

Link to comment
  • 2 weeks later...

Wow this nextcloud templates works awesome with Nextcloud-cron-job, i've tested the Multimedia one and i could not get then to work with the Cron-job version, every thing is ok, just litle time to get all in place, transcoding, indexing, all working good by now.

Just one thing i didn't understan, now i have running with the Default configuration, so Nextcloud create the Data folder in the HTML folder, but when i tested with my own configuration, i created the DATA storage in another instance, outside the Nextcloud root and i see that Nextcloud duplicate this DATA folder, the one i selected is in another chache SSD, not the one for APPDATA, and the other is placed in the ARRAY, maybe thats correct, so if any body could explain for me how this with the DATA storage works when not DEFAULT configuration.

Thanks in advance!

Link to comment

Thanks for your time, i put the location in the sepatate SSD cache that i use to have, not the one for appdata, but i found the same in the array managed of nextcloud and if i put some files in the location that i selected, so nextcloud can´t see those, becase isn¨t in the data in the array, otherways i'll test again if i make some mistake.

Thanks again for your time.

Link to comment
Posted (edited)
1 hour ago, foo_fighter said:

Will this container be updated to V29 or stay on V28?

 

29 has been available since release by selecting the '29' tag manually, I'll change the 'latest' tag to point to 29 once 29.0.1 is out. 

Edited by Kilrah
  • Like 1
Link to comment
55 minutes ago, Kilrah said:

 

29 has been available since release by selecting the '29' tag manually, I'll change the 'latest' tag to point to 29 once 29.0.1 is out. 

But if i do like you said, so the abilities of getting a nice working ffmpeg will be lost or what do you think?

Link to comment
Posted (edited)

Hi, i'm getting "The PHP OPcache module is not properly configured..." but don't know whitch ini file and where to find then to configure the OPCACHE.

Thanks in advance.

 

Ok, I switched to MySQL from PostgreSQL and haven't had any problems so far.

Edited by serch826
Link to comment
  • 3 weeks later...

I've switched to this docker image in the hopes of getting Face Recognition working but alas the same issues.

When clicking on the Face Recognition tab it gives internal server error, only FR with Recognize and Memories working.

When I look at the log it's the same error:

Class "CnnFaceDetection" not found in file '/var/www/html/custom_apps/facerecognition/lib/Model/DlibCnnModel/DlibCnnModel.php' line 174

 

I've checked the file is there, set 777 as a test for permissions, reinstalled the app bunch of time but the same issues.

When looking into it there isn't much but the mention of the php.ini needing: [pdlib] extension="pdlib.so"

Problem is the docker has no php.ini file and /etc/php doesn't exist.

When running php -m | grep pdlib it shows nothing, confirming not loaded.

Finding the file with php -i |grep php.ini show a path to /usr/local/etc/php

Here there's a conf.d folder and two files, php.ini-production and php.ini-development

Placing any php.ini file in the php folder or the conf.d causes the container to not start.

 

What am I doing wrong?

Link to comment
On 6/15/2024 at 6:31 PM, Kilrah said:

When you posted on the other thread it seemed like that's what you were after, not a separate 3rd party NC app.

 

As per that app's documentation it requires extra modifications to the base NC image, those aren't implemented here.

https://github.com/matiasdelellis/facerecognition/wiki/Docker

I mentioned PDLIB and so far haven't been able to get it working.

Many people seem to struggle with the setup.

Recognize is ok for non-people but Face Recognition is much better.

Would you consider adding it to your docker?

Most people setting this up are seeking the Memories, Recognize, Face Recognition and FFMEPG combo.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...