[Support] Linuxserver.io - Nextcloud


Recommended Posts

If you have an instance of RSSHub available - or are hosting it yourself - you can subscribe to the tags for this image using something like this:

 

https://rsshub.yourinstance.whatever/dockerhub/tag/linuxserver/nextcloud

 

Then you should be notified when new releases come up.  It will have an entry for every build, but 8 or so notices every once in a while is no big deal for me.

Link to comment

Hi all

 

after some fun with an old docker install and finally getting it updated and running it seems the cron job isn't working for me and i get this is the log

 

s6-applyuidgid: fatal: unable to exec php7: No such file or directory

 

anyone able to assist or point me to more info if required 

Link to comment
5 hours ago, Maff said:

Hi all

 

after some fun with an old docker install and finally getting it updated and running it seems the cron job isn't working for me and i get this is the log

 

s6-applyuidgid: fatal: unable to exec php7: No such file or directory

 

anyone able to assist or point me to more info if required 

just incase anyone else runs into this i had to edit my crontab file as it was set to php7, changing it to php82 works and also php, now to research the correct way

Link to comment
6 hours ago, Maff said:

Hi all

 

after some fun with an old docker install and finally getting it updated and running it seems the cron job isn't working for me and i get this is the log

 

s6-applyuidgid: fatal: unable to exec php7: No such file or directory

 

anyone able to assist or point me to more info if required 

if you haven't intentionally customized the root cron file in your config i would suggest deleting it and restarting the container. This will recreate the default file with the latest changes.

Link to comment
On 8/12/2023 at 12:22 PM, tmor2 said:

(A)

I wanted to manually update from 26.0.5.1 to 27.0.2 using UNRAID terminal.

-my docker image was set to lscr.io/linuxserver/nextcloud:version-25.0.2, (this was done several months ago, to resolve issues when migrating v24 to 25 - I didn't realize this after I started erors below).

 

- On UNRAID terminal I executed "docker exec -it nextcloud updater.phar"

The updater process started, but it gets stuck at "Delete old files"..Error message says:

 

*********************

[✘] Delete old files failed
core/shipped.json is not available

Update failed. To resume or retry just execute the updater again.

*********************

 

No matter how often I re-execute "docker exec -it nextcloud updater.phar", I end up with the same error.

On the other side, WebGUI: states "Update in process."

 

(B)

Following is the version currently installed:

www/nextcloud/version.php --> (v 26.0.5.1)

www/nextcloud/config/config.php -->(v 26.0.5.1)

 

(C)

When I execute following command in UNRAID terminal docker logs nextcloud

I get following error listed.

 

************************

PHP Warning:  require_once(/config/www/nextcloud/lib/versioncheck.php): Failed to open stream: No such file or directory in /config/www/nextcloud/cron.php on line 40
PHP Fatal error:  Uncaught Error: Failed opening required '/config/www/nextcloud/lib/versioncheck.php' (include_path='.:/usr/share/php8') in /config/www/nextcloud/cron.php:40
Stack trace:
#0 {main}
  thrown in /config/www/nextcloud/cron.php on line 40

************************

 

(D)

What do I do?

 

 

Delete /config/www/nextcloud/index.php and set your image to lscr.io/linuxserver/nextcloud:version-26.0.2 and let the container restart. That should recreate the files it says are missing. Then you can rerun the updater.

Link to comment
On 8/3/2023 at 3:18 PM, iXNyNe said:

Set your image to

lscr.io/linuxserver/nextcloud:version-26.0.2

run in the unraid terminal (not the container terminal)

docker exec -it nextcloud updater.phar # if successful, run it again until it says there are no more updates

let us know the results

 Thanks for the reply, no that didn't work...

 

Screenshot 2023-08-15 113955.png

Link to comment
23 minutes ago, sdballer said:

Are there any differences from this lsio docker opposed to the other labeled as “official” inside community apps?

yes ...

 

lets make it short, lsio based on alpine linux, lsio style with custom options and so on ...

 

official one is like when you pull nextcloud/nextcloud but with a template here in CA, different base distro, different setup ...

Link to comment

update to 27.0.2 got this

Quote

The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.

 

Since you can no longer use docker exec -it how do you run the occ comand to correct this?

 

Drop into the console and run the command.

Edited by ijuarez
Link to comment

First of all, a huge thank you to the linuxserver team for getting Nextcloud to be upgraded via the container updates. This will be a huge step in making things easier to maintain. Unfortunately it looks like something wasn't quite right with my instance before I updated to the latest. I tried following the steps outlined in the how-to but ran into some issues. I'm beyond my depth and need some help. Here are the requested items:

  • Container logs - image.thumb.png.f319d16e6df693c18bf8de6acfba2212.png
  • Nextcloud log file -  (in the/data volume) - Can't locate
  • Nginx log (in the /config/logs volume) - Will provide if needed
  • /config/www/nextcloud/config/config.php file - config.php
  • Screenshot: image.thumb.png.3b52ccd8ffb295e61a0f9a79923376ec.png

 

Edited by mikester15
  • Like 1
Link to comment
12 hours ago, bigbangus said:

Spoke too soon. It's now apparently:

 

sudo u- abc php /app/www/public/occ db:add-missing-indices

 

 

Bruh!, OMG! Thank you so much. I have been trying to get this cleared up without bothering anyone for a while now. I knew it had worked before the other way. That's how I had in my notes. Works like a charm with the correct path.

 

@Wolfhunter1043 Caught the "u-" typo too but thanks for the post. 

Link to comment

Hello
Before I read the whole thread and investigate, I have a simple question to determine if Nextcloud is what i need.
My goal is to be able to select specific files, or folders within my main folder and share them in read only over the internet.
Obviously I wish this to be totally secure on my end and very easy for the receiver, maybe under the form of a link to click, that's it.

Is Nextcloud what i need? If so is there a very simple walkthrough to install it and get this result? (I tried and failed already)

Link to comment

I am using the linuxserver.io nextcloud container behind a reverse proxy using NginxProxyManager.

 

to reduce overhead i wanted to use the http connection behind the reverse proxy instead of the https connection (is on the same machine, does not really matter.) but whenever i use the http connection i get this warning in the settings overview:

Quote

There are some warnings regarding your setup.

Your web server is not properly set up to resolve "/.well-known/caldav". Further information can be found in the documentation ↗.

Your web server is not properly set up to resolve "/.well-known/carddav". Further information can be found in the documentation ↗.

 

I investigated the ./nginx/site-confs/default.conf configuration of this container, but i dont see there being made a difference between http and https, so ... what gives?

Link to comment
5 hours ago, Greyberry said:

I investigated the ./nginx/site-confs/default.conf configuration of this container, but i dont see there being made a difference between http and https, so ... what gives?

this has nothing todo with http or https, this is a known message and you will find plenty of infos if you just google it and add some extras in the proper file, im pretty sure its even mentioned several times in this thread actually.

Link to comment
5 hours ago, alturismo said:

this has nothing todo with http or https, this is a known message and you will find plenty of infos if you just google it and add some extras in the proper file, im pretty sure its even mentioned several times in this thread actually.

it has everything to do with http and https, because (A) i have the proper rules in place:

location ^~ /.well-known {
        # The rules in this block are an adaptation of the rules
        # in `.htaccess` that concern `/.well-known`.

        location = /.well-known/carddav { return 301 /remote.php/dav/; }
        location = /.well-known/caldav  { return 301 /remote.php/dav/; }

        location /.well-known/acme-challenge    { try_files $uri $uri/ =404; }
        location /.well-known/pki-validation    { try_files $uri $uri/ =404; }

        # Let Nextcloud's API for `/.well-known` URIs handle all other
        # requests by passing them to the front-end controller.
        return 301 /index.php$request_uri;
    }

and (B) the warnings do not occur, when i use https behind the reverse proxy.

Link to comment
On 8/16/2023 at 2:19 PM, Wolfhunter1043 said:

This helped me out, but spoke to soon again. Mixed up the u- where it should be -u

Thank you!
 

sudo -u abc php /app/www/public/occ db:add-missing-indices

 

 

On 8/16/2023 at 7:23 PM, Conson Droppa said:

@Wolfhunter1043 Caught the "u-" typo too but thanks for the post. 

 

Fixed in the post. Sorry for the typo fellas if it wasn't hard enough already to chase the occ debacle. Glad I could help.

Link to comment
16 hours ago, Greyberry said:

it has everything to do with http and https, because (A) i have the proper rules in place:

 

then it should look like this as sample when you directly connecting to your nextcloud server in LAN (with its direct IP)

 

image.thumb.png.f75e851dead7b95ad35bb3472fe800a4.png

 

most common is that the "well" part was added on the RP Part and while you connecting diretly (bypassinng the RP) then of course you are back in that error ... but as you checked your NC nginx conf ... you should be fine as this is always "ruled" then.

 

image.thumb.png.87dd71a5fd98aca7f328867f960cdf25.png

 

if you dont get this error (like me posted above) while connectd directly ... my step would be (as im using swag i cant really tell) if NPM is calling this issue, may ask there if anyone may could help ... or if it needs to be added there too ...

 

and btw. your expected benefit (reduce overhead) wont be noticeable if there is any at all ... just as note.

  • Thanks 1
Link to comment
8 hours ago, alturismo said:

then it should look like this as sample when you directly connecting to your nextcloud server in LAN (with its direct IP)

 

Yes when I'm connecting directly it looks like this, but i never use http in the first place on the client side. I wanted to use it on the "backend" so to speak.

 

[Client] -------- https --------> [Reverse Proxy] -------- https -------> [NextCloud] // No Error Occurs

[Client] -------- https --------> [Reverse Proxy] -------- http -------> [NextCloud]  // cardav Error Occurs

 

8 hours ago, alturismo said:

if you dont get this error (like me posted above) while connectd directly ... my step would be (as im using swag i cant really tell) if NPM is calling this issue, may ask there if anyone may could help ... or if it needs to be added there too ...

Okay, i might look further into this in two weeks (I'm not at home the next days). Thank you for taking me seariously in the end, and thank you for your time.

 

8 hours ago, alturismo said:

and btw. your expected benefit (reduce overhead) wont be noticeable if there is any at all ... just as note.

I remember reading an article with benchmarks some time ago, where there was showing quite a difference on low-end machines. I can't find it at the moment unfortunatelly.

But maybe you're right and it is not worth the hassle on newer machines.

 

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.