Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] knex666 - Nextcloud

Featured Replies

On 4/29/2024 at 10:04 AM, knex666 said:

docker argument - set this in the unraid gui

I tried both PHP_UPLOAD_LIMIT 5G and PHP_UPLOAD_LIMIT and also PHP_UPLOAD_LIMIT = 5G and nextcloud crashes and refuses to start, I cant even open logs if I have any PHP arguments. Im lost sorry.

Screenshot 2024-04-30 at 17.53.17.png

Screenshot 2024-04-30 at 17.53.53.png

  • Replies 771
  • Views 218.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • randomninjaatk
    randomninjaatk

    Option 2 seems easiest, created the following script below and set it to run every 5 min using the "Users Scripts" plugin #!/bin/bash docker exec -u www-data Nextcloud php -f /var/www/html/cron.ph

  • nextcloud-cronjob container in CA with user set to 99 should work  

  • Try   docker exec -u 99 Nextcloud php occ upgrade   This template by default runs NC as 99:100.

Posted Images

2 hours ago, Kilrah said:

Firstly it seems to be still scanning the contents, secondly you may need to go into the client app settings and select it manually for syncing if it's large.

Ah okay I just got it to work, all good.

 

However, this has made me realised I have been misunderstanding what is meant by "sync" in this context.

 

I actually only wanted to be able to use the Music Nextcloud folder as if it was a simple network share - essentially streaming the folder to my MacBook, without it actually taking up any space on my MacBook.

 

Is there any way of doing this?

No, that's not how nextcloud works, it actually syncs local copies of the files on all connected devices like dropbox, onedrive, google drive etc would. 

If you want a network share then just do that.

 

I guess you could also not sync that folder, install a music player within nextcloud and play the stuff from the web ui, then that'd be streamed...

1 hour ago, Sebastiansuisse said:

I tried both PHP_UPLOAD_LIMIT 5G and PHP_UPLOAD_LIMIT and also PHP_UPLOAD_LIMIT = 5G and nextcloud crashes and refuses to start, I cant even open logs if I have any PHP arguments. Im lost sorry.

Needs to be 

Quote

-e PHP_UPLOAD_LIMIT=5G

added to Extra parameters, not post arguments

4 hours ago, Kilrah said:

Needs to be 

added to Extra parameters, not post arguments

Thanks, some progress, nextcloud sees the change in max upload size but I still cant upload files bigger than 1gb, i tried with a 3.7gb file and it failed. I imagine you have to increase the memory limit also, i guess you put the args in the same place right?

Screenshot 2024-05-01 at 00.26.16.png

Screenshot 2024-05-01 at 00.27.09.png

I have

Quote

-e PHP_MEMORY_LIMIT=1G -e PHP_UPLOAD_LIMIT=0

and can upload 5+GB files just fine. 

 

If you use a reverse proxy you may need to change config there too.

I suddenly started having issues with uplaoding .mp4 files. I have not messed with the upload size, defualt is working just fine. I have 3 12mb-15mb .mp4 files that will not upload. Sometimes I'll get a connection error. I havent changed antyhing since this has been setup about a year now.I'm assuming it's something with the updates that i've taken for the docker and android app. 

On 4/22/2024 at 6:57 PM, mr_syd20 said:

Hi, I got a problem with my Nextcloud not functioning at all, with the issue i am having i get this [look on 452 png] now about that I am trying to figure out whatever problem it is do with php being old or Apache just malfunctioned on it own, it's taking me while to try and fix this problem but sadly i can't, i just dont know what to do at this point,

Screenshot (452).png

Screenshot (453).png

log from nextcloud.txt 3.18 kB · 2 downloads


Did you resolve this? I wrestled with it today. I think it was a MySQL docker update and 'mysql_native_password' not loading.. as its no longer supported or its deprecated. Go into the console and run ./occ and see if you get a mysql error.
I added a new user in mysql, same password, same privileges (different plugin) ... and changed the username in the config.php .. back in business.

1 hour ago, phuqwit said:


Did you resolve this? I wrestled with it today. I think it was a MySQL docker update and 'mysql_native_password' not loading.. as its no longer supported or its deprecated. Go into the console and run ./occ and see if you get a mysql error.
I added a new user in mysql, same password, same privileges (different plugin) ... and changed the username in the config.php .. back in business.

Hey there! I'm having I think the same issue, is there any way you could provide some more details on the "different plugin" portion of your comment?

14 hours ago, Kilrah said:

If you use a reverse proxy you may need to change config there too.

I have no reverse proxy it is all over lan. Even with the same config as you. I tried with upload limit as 0 and 25G and still nothing...

I tried the exact same order like this :

-e PHP_MEMORY_LIMIT=1G -e PHP_UPLOAD_LIMIT=0

unraid also puts a user to run it as which goes before, I dont imagine this affects anything:

--user 99:100

1440082447_Screenshot2024-05-02at00_25_22.thumb.png.c285c11ec8f3b58318663be5735e0375.png

Even for a 1.7gig file it cant

608553798_Screenshot2024-05-02at00_35_27.thumb.png.340577b978588ae48fef4f906da0ab3b.png

17 hours ago, fiore00713 said:

Hey there! I'm having I think the same issue, is there any way you could provide some more details on the "different plugin" portion of your comment?

I just created a new user in mysql and let it fill in the plug-in field itself. 'caching_sha2_password' ... I didn't specify it, it defaulted to it.
CREATE USER 'newusername'@'%' IDENTIFIED BY 'password';.
Then GRANTed permissions. The same as you do when setting up a user the first time.
Then changed the username in the config.php.

I'm sure there's a more elegant solution but .. hey ho

Hi!

I'm having trouble with the user data folder. I could not found solution so far.

 

These are my allocations:

/var/www/html   /mnt/user/appdata/nextcloud/html
/var/www/html   /custom_apps/mnt/user/appdata/nextcloud/apps
/var/www/html/config    /mnt/user/appdata/nextcloud/config
/var/www/html/data    /mnt/user/Private/nextcloud/

 

Inside the container there is a user called www-data:www-data (33:33) running the cron jobs. In my unraid the 33:33 user is sshd:sshd

I made the owner of the dir /mnt/user/Private/nextcloud/ the sshd user and the cron job suggested me to make the permission 770.

I did. If I make the permission 770 this is what I get on the frontpage (and the cronjob runs on the same error saying it has no permission):

The data directory is invalid.

Ensure that there is a ".ocdata" file in the root of the data directory.

The data directory is not writable.

Permissions can typically be fixed by giving the web server write access to the root directory. See https://docs.nextcloud.com/server/29/go.php?to=admin-dir_permissions.

 

Ok so 770 is not enough? Make it 777. Then I get this:
 

Your data directory is readable by other people.

Please change the permissions to 0770 so that the directory cannot be listed by other people.

 

Welp.. maybe 775?

The data directory is not writable.

Permissions can typically be fixed by granting write access to the web server on the root directory. See https://docs.nextcloud.com/server/29/go.php?to=admin-dir_permissions.

 

This is a bit comical.. :)) where is the issue now?

 

root@TEVENAS:/mnt/user/Private/nextcloud# ls -ld
drwxrwx--- 1 sshd sshd 142 May  6 13:20 ./
root@TEVENAS:/mnt/user/Private/nextcloud# ls -l -a
total 1104
drwxrwx--- 1 sshd   sshd      142 May  6 13:20 ./
drwxrwx--- 1 nobody users      18 May  7 12:46 ../
-rwxrwx--- 1 sshd   sshd      542 May  6 13:06 .htaccess*
-rwxrwxrwx 1 sshd   sshd        0 May  6 13:06 .ocdata*
drwxrwx--- 1 sshd   sshd      130 May  6 15:33 appdata_ock2dw0o714w/
drwxrwx--- 1 sshd   sshd       76 May  7 09:09 daninet/
drwxrwx--- 1 sshd   sshd       27 May  6 13:20 files_external/
-rwxrwx--- 1 sshd   sshd        0 May  6 13:06 index.html*
-rwxrwx--- 1 sshd   sshd  1123780 May  9 20:50 nextcloud.log*

 

Edited by daninet

What's inside the nextcloud is owned by 33:33 but not the folder itself. Change that, and then set perms to 0770.

Hi @Kilrah thanks for your answer. Are you sure my permission on nextcloud is not 770? For me it seems to be.

Here I redo everything from scratch:

 

root@TEVENAS:~# getent passwd sshd         #Making sure sshd:sshd is the 33:33 id user on my unraid
sshd:x:33:33:sshd:/:/bin/false
root@TEVENAS:~# chown -R sshd:sshd /mnt/user/Private/nextcloud        #Make sshd:sshd the owener of nextcloud folder recursively
root@TEVENAS:~# chmod -R 770 /mnt/user/Private/nextcloud              #Chmod 770 the entire folder and its contents recursively
root@TEVENAS:~# cd /mnt/user/Private
root@TEVENAS:/mnt/user/Private# ls -ld ./nextcloud                    #Check folder permission and owner, seems to be correct
drwxrwx--- 1 sshd sshd 142 May  6 13:20 ./nextcloud/
root@TEVENAS:/mnt/user/Private# cd nextcloud
root@TEVENAS:/mnt/user/Private/nextcloud# ls -l -a                    #List all the stuff to see its users and permissions
total 1108
drwxrwx--- 1 sshd    sshd      142 May  6 13:20 ./
drwxrwx--- 1 daninet users       6 May  7 12:46 ../
-rwxrwx--- 1 sshd    sshd      542 May  6 13:06 .htaccess*
-rwxrwx--- 1 sshd    sshd        0 May  6 13:06 .ocdata*
drwxrwx--- 1 sshd    sshd      130 May  6 15:33 appdata_ock2dw0o714w/
drwxrwx--- 1 sshd    sshd       76 May  7 09:09 daninet/
drwxrwx--- 1 sshd    sshd       27 May  6 13:20 files_external/
-rwxrwx--- 1 sshd    sshd        0 May  6 13:06 index.html*
-rwxrwx--- 1 sshd    sshd  1129157 May  9 21:00 nextcloud.log*
root@TEVENAS:/mnt/user/Private/nextcloud# cd ..
root@TEVENAS:/mnt/user/Private# stat -c "%a" ./nextcloud             #check chmod as a numeric value
770

 

After all this i still have this on my start screen:

image.png.5b50ca78f86ece4b58decd724f83452b.png

12 minutes ago, daninet said:

Are you sure my permission on nextcloud is not 770?

It is but the user's wrong

 

image.png.710386437138333dd6d8d9f1926ad0c8.png

../ is /mnt/user/Private

./ is /mnt/user/Private/nextcloud

 

nextcloud dir is already 770

root@TEVENAS:/mnt/user/Private# stat -c "%a" ./nextcloud
770

 

Ok this might not be obvious for me I'm not really good with the understanding of linux permissions: if the Private dir is not owned by 33:33 will it not work?

/mnt/user is owned by nobody:users so I guess it should work, everything else works on my system.

Oh no the Private dir can be something else indeed, seen wrong and the nextcloud dir is correct. 

 

Here everything in the data folder is 33:33 0770, not just the folder.

Solved. So data folder has to be nobody:users

And despite what they are saying online the cron shouldnt be run as www-data user. I just removed the --user flag and it works:

 

this is my cron script

#!/bin/bash
docker exec Nextcloud php /var/www/html/cron.php

 

Edited by daninet

On 4/29/2024 at 9:22 PM, Herbert Horst said:

When I enter user and PW on the login page and click on login, I am redirected directly to the login page.

 

On 4/29/2024 at 11:27 PM, Kilrah said:

Clear your browser cache/cookies

 

But is this normal?

Im using Firefox and even when I delete cookies and data of site the problem sometimes stays and is really anoying. Sometimes im not able to open my cloud because I only have 1 Browser on a machine installed and im stuck in this loop.

Probably not, I've had it happen once or twice after updates over the years but not more.

I'm having a problem.

After installing the image, I am faced with a problem, Nextcloud tells me it is in HTTP when I am indeed in HTTPS.

How to do ? I saw help talking about modifying the virtualhost but you have to be root or use sudo (not installed)

Can someone enlighten me because if I can't correct this Nextcloud is of no use to me since the apps don't want to connect to it...nc-error.thumb.webp.31f8a1289fd0ab57190340739fcc1e8c.webp

On 5/2/2024 at 6:28 AM, phuqwit said:


Did you resolve this? I wrestled with it today. I think it was a MySQL docker update and 'mysql_native_password' not loading.. as its no longer supported or its deprecated. Go into the console and run ./occ and see if you get a mysql error.
I added a new user in mysql, same password, same privileges (different plugin) ... and changed the username in the config.php .. back in business.

sorry for the late response, i just eventually waited for update for next cloud and delete the old DB data left over using [admirer]

and so then it work like business as usual

On 2/6/2024 at 1:46 AM, markymarc35 said:

Hi,

I'm trying to figure out why nextCloud stopped working after working correctly for almost a year.

When I try to go to the web UI, I get nothing, blank screen.

Looking in the logs, I noticed this line repeating itself:

[Mon Feb 05 19:35:29.871466 2024] [php:error] [pid 80] [client 172.17.0.1:40620] script '/var/www/html/custom_apps/richdocumentscode/proxy.php' not found or unable to stat

Same error, how did you fix it?

Hello, today I try to upgrade some apps in Nextcloud and it goes to maintance mode. I go to ssh and upgrade apps manually. I set in config.php maintance:false but still cannot make it work. Logs shows something like this all the time:
 

Bez nazwy.png

I just updated nextcloud instance and was not able to log into nextcloud after that.

 

in the nextcloud.log, I found this line : 

 

{"reqId":"BKqZAXTyeJt1vFTAqYMA","level":3,"time":"2024-06-01T14:58:43+00:00","remoteAddr":"192.168.*.***","user":"USER****","app":"index","method":"GET","url":"/index.php/apps/dashboard/","message":"Class \"OCA\\Circles\\Model\\Circle\" not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36","version":"29.0.1.1","exception":{"Exception":"Error","Message":"Class \"OCA\\Circles\\Model\\Circle\" not found","Code":0,"Trace":[{"file":"/var/www/html/apps/circles/lib/AppInfo/Capabilities.php","line":55,"function":"getSettings","class":"OCA\\Circles\\Service\\ConfigService","type":"->","args":[]},{"file":"/var/www/html/lib/private/CapabilitiesManager.php","line":74,"function":"getCapabilities","class":"OCA\\Circles\\AppInfo\\Capabilities","type":"->","args":[]},{"file":"/var/www/html/lib/private/Template/JSConfigHelper.php","line":167,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->","args":[false,true]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":264,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":145,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["user","dashboard"]},{"file":"/var/www/html/lib/public/AppFramework/Http/TemplateResponse.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->","args":[["#app-dashboard",null,"Dashboard"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":183,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Dashboard\\Controller\\DashboardController"],"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Dashboard\\Controller\\DashboardController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["dashboard.dashboard.index"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/dashboard/"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/apps/circles/lib/Service/ConfigService.php","Line":417,"message":"Class \"OCA\\Circles\\Model\\Circle\" not found","exception":{},"CustomMessage":"Class \"OCA\\Circles\\Model\\Circle\" not found"}}

 

 

Not sure why this happened.

Anyone got an idea ?

 

I'm not an expert but what I did was disabling the "circles" app from command line with this command : 

 

docker exec --user www-data CONTAINERID php occ app:disable circles

 

And now I can log back into the app.

 

 

But, should I enable the circles app again ?

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.