Jump to content
linuxserver.io

[Support] Linuxserver.io - Nextcloud

2468 posts in this topic Last Reply

Recommended Posts

So I tried to set up NextCloud through the webui, and used root as the username, and left the password blank, but I keep getting a time out on the gateway. Any thoughts?  I have the port open on my router (port 443).  Not sure what is going on here.

Share this post


Link to post

Which MariaDB docker did you use?

 

If you follow CHBMB's guide here: https://www.linuxserver.io/index.php/2016/07/28/installing-nextcloud-on-unraid/  you will see that the MariaDB docker by Linuxserver has a password variable that you set.

 

I would start from scratch and follow the guide. Worked great for me. Only issue i had was a permission issue which i fixed quickly.

Share this post


Link to post

OK, I see the options.  My screen looks different than the one in the instructions, but I didn't realize I had to select Advanced view from the top right of the screen when adding the container.

Share this post


Link to post

How do I get to the custom.cnf file?  I do not see the folder for /mnt/cache/.appdata/mariadb folder in my windows file explorer?  Sorry I am pretty noob at this stuff.

Share this post


Link to post

Alright, one more question (promise).  I have a user share set up on my Unraid server that is mnt/user/nextcloud.  How do I map that in the Nextcloud setup?  there is a space that says /data but what is the path I should put in there to get it mapped to that share?

Share this post


Link to post

I personally would put /mnt/diskX/nextcloud where X = disk number

 

Also make sure that the share is set to use just one disk.  Just save on the array spinning up all the time, however /mnt/user/nextcloud would work.

Share this post


Link to post

Thanks for the reply.  I tried putting in /mnt/user/nextcloud but I get an error that states can't create or write into the data directory /mnt/user/nextcloud.  Any thoughts?  I know I am close here :)

Share this post


Link to post

Thanks for the reply.  I tried putting in /mnt/user/nextcloud but I get an error that states can't create or write into the data directory /mnt/user/nextcloud.  Any thoughts?  I know I am close here :)

 

from unraid command line type.

 

ls -lah /mnt/user

 

and paste the output here.

Share this post


Link to post

I setup LDAP integration with my domain.  I logged out and was logging in with a domain user and now I am getting a 500 error.  It also seems to have rebooted the docker when I attempted the login.

 

[cont-init.d] executing container initialization scripts...
[cont-init.d] 10-adduser: executing... 

-------------------------------------
_ _ _
| |___| (_) ___
| / __| | |/ _ \ 
| \__ \ | | (_) |
|_|___/ |_|\___/
|_|

Brought to you by linuxserver.io
We do accept donations at:
https://www.linuxserver.io/donations
-------------------------------------
GID/UID
-------------------------------------
User uid: 99
User gid: 100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-config: executing... 
[cont-init.d] 20-config: exited 0.
[cont-init.d] 30-keygen: executing... 
using keys found in /config/keys
[cont-init.d] 30-keygen: exited 0.
[cont-init.d] 40-config: executing... 
[cont-init.d] 40-config: exited 0.
[cont-init.d] 50-install: executing... 
[cont-init.d] 50-install: exited 0.
[cont-init.d] 60-memcache: executing... 
[cont-init.d] 60-memcache: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.

 

I'm getting all of these PHP errors in the log file

 

2016/08/07 09:59:57 [error] 288#0: *284 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:00:04 [error] 288#0: *284 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:00:23 [error] 288#0: *284 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:00:48 [error] 288#0: *284 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:01:30 [error] 288#0: *284 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:01:32 [error] 288#0: *284 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:01:54 [error] 290#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:01:57 [error] 290#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:02:03 [error] 290#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"
2016/08/07 10:03:33 [error] 290#0: *6 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function getFileInfo() on null in /config/www/nextcloud/lib/private/files/filesystem.php on line 874" while reading response header from upstream, client: 192.168.254.1, server: _, request: "GET /index.php/apps/files/ HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.stevensononthe.net"

 

I'm not sure how to resolve this now as the page just gives me a 500 error.

 

Edit: If I clear the browser cache I can see the login page again. 

 

Edit2: After clearing the cache its working fine.  Seems a non-issue now.  Move along. hehe

Share this post


Link to post

Thanks for the reply.  I tried putting in /mnt/user/nextcloud but I get an error that states can't create or write into the data directory /mnt/user/nextcloud.  Any thoughts?  I know I am close here :)

 

from unraid command line type.

 

ls -lah /mnt/user

 

and paste the output here.

 

Here is the output:

 

root@Tower:~# ls -lah /mnt/user

total 11G

drwxr-xr-x 1 root  root    39 Aug  6 21:33 ./

drwxr-xr-x 9 root  root  180 Aug  6 21:35 ../

drwxrwxrwx 1 nobody users  112 Jun 24 06:25 Backup/

drwxrwxrwx 1 nobody users  11K Aug  5 19:47 Movies/

drwxrwxrwx 1 nobody users 5.6K Jul 24 18:54 Music/

drwxrwxrwx 1 nobody users 2.2K Dec  8  2015 Old\ Archived\ Materials/

drwxrwxrwx 1 nobody users 8.9K Aug 24  2015 Pictures/

-rw-rw-rw- 1 nobody users  467 Dec  7  2013 Secondary\ (D)\ -\ Shortcut.lnk

drwxrwxrwx 1 nobody users  136 Jun 27 18:58 TV/

drwxrwxrwx 1 nobody users  112 Dec 13  2015 Videos/

drwxrwxrwx 1 nobody users  144 Aug  6 21:34 appdata/

-rw-rw-rw- 1 nobody users  10G Aug  7 09:19 docker.img

drwxrwxrwx 1 nobody users  52 Aug  6 19:31 mariadb/

drwxrwxrwx 1 nobody users  144 Aug  7 08:07 nextcloud/

Share this post


Link to post

So is it okay that I created a share and pointed Nexcloud to it for the data dir?  Where does the default data directory reside?

Share this post


Link to post

So is it okay that I created a share and pointed Nexcloud to it for the data dir?  Where does the default data directory reside?

 

Yes it's fine the default data directory resides wherever you put it.

 

Here's mine:

 

mFgG78f.png

 

Your permissions look ok to me.  So I'm confused as to what is going on...

 

Can you post a screenshot like mine above but for both Nextcloud and MariaDB please?  And what version of Unraid you using?  And just to check, this is a completely fresh install?

Share this post


Link to post

How do I get to the custom.cnf file?  I do not see the folder for /mnt/cache/.appdata/mariadb folder in my windows file explorer?  Sorry I am pretty noob at this stuff.

 

Folders starting with a period are hidden in Windows explorer by default. 

 

Why are you using .appdata?  I only do so because I.... actually I can't remember why I did, but it must have made sense once upon a time...  :-\

Share this post


Link to post

How do I get to the custom.cnf file?  I do not see the folder for /mnt/cache/.appdata/mariadb folder in my windows file explorer?  Sorry I am pretty noob at this stuff.

 

Folders starting with a period are hidden in Windows explorer by default. 

 

Why are you using .appdata?  I only do so because I.... actually I can't remember why I did, but it must have made sense once upon a time...  :-\

Because at one point that was a workaround to prevent mover from moving the files off of the cache drive.  No point in it now however...

Share this post


Link to post

 

 

 

Why are you using .appdata?  I only do so because I.... actually I can't remember why I did, but it must have made sense once upon a time...  :-\

 

Because folders starting with a period were ignored by the mover in previous versions of unRAID (before being able to set cache only in user shares)

 

At least that's my guess.....

 

Sent from my SM-N900W8 using Tapatalk

 

 

Share this post


Link to post

Because at one point that was a workaround to prevent mover from moving the files off of the cache drive.  No point in it now however...

 

Because folders starting with a period were ignored by the mover in previous versions of unRAID (before being able to set cache only in user shares)

 

Yep, you're both right.  That was the reason!  ;D

Share this post


Link to post

Here is the error I get when I try to finalize the setup:

 

 

don't change the storage location in that window from /data

 

/mnt/user/nextcloud doesn't exist inside the container

 

 

Share this post


Link to post

How do I change it to use the mnt/user/nextcloud share?

 

you don't.

 

http://imgur.com/a/FLANd

 

set your folder in the add/edit docker screen like this.

 

then, don't change the /data in the setup screen for nextcloud.

 

/data and /mnt/user/nextcloud are the point where the folder inside the container and the folder outside the container become the same point, provided you set it as shown in the add/edit screen.

Share this post


Link to post

Alright, just nuked the entire nextcloud container, image, and files on the cache drive.  Going to install again just like you show.

 

Share this post


Link to post

OK, so it set up this time.  Now, my question is this:  Is my data going to be stored in the /mnt/user/nextcloud folder?  I have data I want to copy to that folder for access outside my network.

Share this post


Link to post

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.