[Support] Linuxserver.io - Nextcloud


4757 posts in this topic Last Reply

Recommended Posts

5 hours ago, skois said:

Let me begin with this. Your setup is very complex FOR ME! i have a pfsense but haven't done much with it. That being said i'll just tell you what i would try and *i think* you didn't mentioned doing!

 

Does the sync from client fails for ALL files? or some sync fine and others don't? 

If you connect to NC webui using the domain name, does it open? (nextcloud.domain.com)

Can you upload from the webui without problems?


Also just to be sure, 1443 is the host port on swag which is 443 on container side, and 444 is the host post in nextcloud which is mapped on 443 on container side. correctly?

 

server ------ app

1443  (swag) 443

444 (nextcld)443
 

Thanks for chiming in @skois! Not that complex, just minimum gear for survival, :). I'm kidding, yes, it is very complex - at least for me (or for us!). I will add VLANs in the near future to isolate my servers from the kids playing Roblox and from my wife clicking in vishing email links, I am just trying to fine tune everything before adding another layer of complexity.

 

Your answers:

 

Does the sync from client fails for ALL files? or some sync fine and others don't? 

 

It is a kind of random, every time is a different file. It fails while analyzing the remote files changes, between 5 and 10 minutes of scanning.

 

If you connect to NC webui using the domain name, does it open? (nextcloud.domain.com)

 

Flawless

 

Can you upload from the webui without problems?

 

I never tried, can you believe it? Just did - flawless as well.

 

Also just to be sure, 1443 is the host port on swag which is 443 on container side, and 444 is the host post in nextcloud which is mapped on 443 on container side. correctly?

 

Confirmed!

nextcloud - 444

swag - 1443

pfsense - 443

 

 

Link to post
  • Replies 4.8k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Application Name: Nextcloud Application Site: https://nextcloud.com/ Docker Hub: https://hub.docker.com/r/linuxserver/nextcloud/ Github: https://github.com/linuxserver/docker-nextcl

Here's my list of instructions....    Use them at your own risk.....   If upgrading to v12 please see here:   ##Turn on maintenance mode docker exec -it nextcloud occ m

Thanks, fixed for me as well, and I also added this line add_header Referrer-Policy no-referrer always; to appdata/nextcloud/nginx/site-confs/default   And now I have a green

Posted Images

9 minutes ago, agarkauskas said:

Thanks for chiming in @skois! Not that complex, just minimum gear for survival, :). I'm kidding, yes, it is very complex - at least for me (or for us!). I will add VLANs in the near future to isolate my servers from the kids playing Roblox and from my wife clicking in vishing email links, I am just trying to fine tune everything before adding another layer of complexity.

 

Your answers:

 

Does the sync from client fails for ALL files? or some sync fine and others don't? 

 

It is a kind of random, every time is a different file. It fails while analyzing the remote files changes, between 5 and 10 minutes of scanning.

 

If you connect to NC webui using the domain name, does it open? (nextcloud.domain.com)

 

Flawless

 

Can you upload from the webui without problems?

 

I never tried, can you believe it? Just did - flawless as well.

 

Also just to be sure, 1443 is the host port on swag which is 443 on container side, and 444 is the host post in nextcloud which is mapped on 443 on container side. correctly?

 

Confirmed!

nextcloud - 444

swag - 1443

pfsense - 443

 

 

Try putting only few small files in windows client, see if it syncs fine. Then add more, mostly to narrow down if its problem on file size, quantity size.

Is there any files with weird characters? like chinese? 
Any file paths bigger than 255 characters?

Link to post
On 1/3/2021 at 5:14 AM, skois said:

Click on the docker icon => console
run 'occ app:list' without quotes. 
this will list all the available apps and on the last rows it will tell which of them are disabled. if settings is disabled or any other essential app. 

run 'occ app:enable settings' or the name of the app you want.

Wow this was actually a big help. turns out that it was disabled but now i have another issue...

App "Nextcloud settings" cannot be installed because it is not compatible with this version of the server.

So i will give a little background: i accidentally updated nextcloud via the docker tab in unraid. after i made this mistake i was unable to access it altogether. i used the backup/restore plugin and have arrived here. i ran the 'occ app:list' and noticed that setting is indeed disabled (which it wasnt before i updated). now i am unable to update because i cant access the settings menu. Any more help would be much appreciated. Thanks everyone.

Link to post
Wow this was actually a big help. turns out that it was disabled but now i have another issue...

App "Nextcloud settings" cannot be installed because it is not compatible with this version of the server.

So i will give a little background: i accidentally updated nextcloud via the docker tab in unraid. after i made this mistake i was unable to access it altogether. i used the backup/restore plugin and have arrived here. i ran the 'occ app:list' and noticed that setting is indeed disabled (which it wasnt before i updated). now i am unable to update because i cant access the settings menu. Any more help would be much appreciated. Thanks everyone.
Check your config.php in appdata/nextcloud/www/nextcloud/config
And confirm that the version it mentions is the correct.

Sent from my Mi 10 Pro using Tapatalk

Link to post
45 minutes ago, skois said:

Check your config.php in appdata/nextcloud/www/nextcloud/config
And confirm that the version it mentions is the correct.

Sent from my Mi 10 Pro using Tapatalk
 

it says 16.0.0.9
i have no idea if thats the right version or not. sorry if these are stupid questions... how to i see what version is currently installed if i cant access the setting menu?

Link to post
48 minutes ago, kerpster said:

it says 16.0.0.9
i have no idea if thats the right version or not. sorry if these are stupid questions... how to i see what version is currently installed if i cant access the setting menu?

Thats a good question :D But i dont have the answer!
I don't know if there is a way to manually install the Settings app for a version 16 or where to find it to donwload. I'm not near a pc right now, so i can't search. 

Link to post
8 hours ago, skois said:

Try putting only few small files in windows client, see if it syncs fine. Then add more, mostly to narrow down if its problem on file size, quantity size.

Is there any files with weird characters? like chinese? 
Any file paths bigger than 255 characters?

@skois, I would say yes, I have files with weird characters, like é, ã, ç... I will try the baby steps approach you suggested.

 

Now before that this morning I made the necessary changes to operate swag in port 443.

That enabled me to add a rule in pfsense DNS Resolver to translate internally my nextcloud CNAME to my internal IP - worked like a charm in my workstation but in my notebook...

 

It is a corporate Notebook, using Symantec DNS Protection / Override / WTF completely out of my control that skips my local pfsense DNS Resolver if it detects an external equivalent CNAME.

So, if I hook my notebook to my 4G mobile hot spot it works. On my internal LAN it continue giving me SYNC Fail because the local translation doesnt work. GRRRRRRR...

 

More to come!

Link to post
On 1/4/2021 at 10:10 AM, saarg said:

What is with the attitude?

I asked about a pretty simple question which you should be able to answer if you remember how you set up nextloud. When settin up nextloud you choose a database and you need to check if that is running if it's an external one. If you chose sqlite, it's in nextloud and it might be corrupt.

 

All we know is that you scream, like a child, that your nextcloud doesn't work and doesn't supply any info that were asked for. Not much we can do to help then.

You did not ask me what database is running or if it is running at all. You asked me if it is "running correctly". My interpretation of "running correctly" is that it is running but there is a problem with the functionality. I do not know how to answer that question because I am not a database administrator and I do not know how to TS databases. But if you are asking if it is running then the answer is yes it is running and I am using MariaDB. I am not having an "attitude" per se. I am simply trying to frame my response in such a way to convey my problem and establish what I do know and don't know. There seems to be a lot of assumptions here based on peoples responses and I can tell that people are not taking the time to read my OP because they are asking me for things that I have explained over and over again that I do not know how to provide. If there is any "attitude" at all then maybe it's my frustration that people are not listening to me and are making assumptions.

 

P.S. I have tried my best to provide as much information as I can to the best of my capabilities. Here:

 

So don't give me that crap that I never provided any information to help you out!

 

Edited by BrunoVic
Link to post
On 1/3/2021 at 2:52 AM, alturismo said:

you may should consider the art you ask for help, starting with help NOW ... we are here mostly for fun and a helping each other as users ...

 

about your logs

 

- click on the docker symbol, click LOG ... a window appear with the current running docker logs

- about nextcloud nginx logs, take a look at your appdata folder, log, nginx ...

image.thumb.png.9876380bec4af5cf9de6b3e0bcccd926.png

 

these are startpoints where to look, as nextcloud usually is running behind a reverse proxy, thats why there was the question about the reverse proxy logs, but you should find them yourself, and thats about it from me to help with this kinda attitude.

THANK YOU. Finally someone who has answered my questions!

 

P.S. I didn't just ask help now. It's been three weeks of downtime. At the time I needed an important file for a job I was applying to and after a docker update it just stopped working. Hence my sense of urgency. I've managed to recover the file due to someone else's assistance. But you have to empathize with me that I have been asking the same question over and over again and being told to provide the things I keep asking how to do. You would be angry too if you asked "How do you get the logs" and the response is "Please provide the logs". Then you go into this circular loop of never ending questions that seem to repeat themselves. I am supposed to be happy about that?

Screen Shot 2021-01-07 at 12.52.48 PM.png

Edited by BrunoVic
Link to post
1 hour ago, BrunoVic said:

I have been asking the same question over and over again and being told to provide the things I keep asking how to do.

Here was my first response after you replied to me that you didn't know how to get them.
But instead of providing them, you was being a Karen. You ask us to read all your previous comments but you don't bother to see our replies.
 

 

Capture.thumb.PNG.f84eea5d4b5c9c119a76f7b3618e3a85.PNG

Link to post

Note to everyone.. DO NOT UPDATE collabora docker. For some reason it does not work when updated. Poked a bit in the xml config file, and saw some changes in the domains. Instead of the domains i had in docker template it was listing "localhost". Tried to copy the config from the previous docker version but still didn't work.

In case you updated and now it doesn't work for you. Open docker template and change repository field from "collabora/code" to "collabora/code:6.4.2.2"

Link to post
10 hours ago, BrunoVic said:

THANK YOU. Finally someone who has answered my questions!

 

P.S. I didn't just ask help now. It's been three weeks of downtime. At the time I needed an important file for a job I was applying to and after a docker update it just stopped working. Hence my sense of urgency. I've managed to recover the file due to someone else's assistance. But you have to empathize with me that I have been asking the same question over and over again and being told to provide the things I keep asking how to do. You would be angry too if you asked "How do you get the logs" and the response is "Please provide the logs". Then you go into this circular loop of never ending questions that seem to repeat themselves. I am supposed to be happy about that?

Screen Shot 2021-01-07 at 12.52.48 PM.png

If you dont mind my asking, how did you resolve your server error? I am having a similar issue and not sure how to approach it.

Link to post
Wait what? I misread that. But hey your misuse of the word Karen is not impressing anyone. You're still a jerk! I am not sure why I misread that but you took the first shot at me with your attitude response when all I was doing was expressing my concerns about troubleshooting the proxy. If I missed that which with my dyslexia that can happen all you had to do was reiterate your response or maybe rephrase it in a way that is more READABLE instead of taking some cheap shots at me.
 
Now that I've read it for probably the 10th time and understand your request now I can provide you the logs you need. But this could all have been avoided if YOU did not start attacking me. Not ONCE did I start attacking you.
Oh sorry that you think I have an attitude. Yes Karen is not right. More like entitled.
Hopefully someone here will help you. I won't.
Good luck and be healthy.

Sent from my Mi 10 Pro using Tapatalk

Link to post
9 hours ago, jmial said:

If you dont mind my asking, how did you resolve your server error? I am having a similar issue and not sure how to approach it.

I tell you what when I have time I will investigate this and find out what is going on. I might have to source some Nextcloud forums to figure this out. Clearly they don't want to help us out here because we are entitled according to skois. Once I figure this out I will do a technical write up on what I did to resolve this problem.

Link to post
18 hours ago, skois said:

Note to everyone.. DO NOT UPDATE collabora docker. For some reason it does not work when updated. Poked a bit in the xml config file, and saw some changes in the domains. Instead of the domains i had in docker template it was listing "localhost". Tried to copy the config from the previous docker version but still didn't work.

In case you updated and now it doesn't work for you. Open docker template and change repository field from "collabora/code" to "collabora/code:6.4.2.2"

Until 6.4.2.2 domains needed "//" (two) before every "."

 

on 6.4.3.1 needs only "/" (one).
So if you update to 6.4.3.1 remember to remove the extra "/"

Link to post
1 hour ago, skois said:

Until 6.4.2.2 domains needed "//" (two) before every "."

 

on 6.4.3.1 needs only "/" (one).
So if you update to 6.4.3.1 remember to remove the extra "/"

So it's working properly after the upgrade with that change?

Link to post

Hello all, I am struggling to find out the correct answer. I followed Spaceinvader One video to install Nexrcloud. I have installed and it works just I can't change the file upload size. I have searched in the directory for the PHP.ini file but can't find anywhere to change the upload size. I would be extremely grateful if anyone can point me in the right direction. Thank in advance.

Link to post

The php-local.ini file can be chnged using nano in terminal.

 

Steps:

Open Terminal - change to correct path

~# cd /mnt/user/appdata/nextcloud/php/ - the php directory is where you will find the php-local.ini file

nano php-local.ini

 

My file looks like this:

date.timezone = America/New_York
upload_max_filesize=20G
memory_limit=8G
max_execution_time=3600
max-imput_time=3600

[pdlib]
extension="pdlib.so"

 

 

Link to post

Hey Guys,

 

I have been doing my best to read up on peoples answers to a question that has been asked several time about lan connections failing but wan connections working. I am currently able to access my nextcloud server externally after using the spaceinvader one videos as a guide, but as soon as i configured the swag docker for reverse proxy i can no longer connect locally. Some had previously mentioned hairpinning on your router could cause this problem and I have looked into this as well. I am using an OpenWRT on a Linksys and have for my port forwarding Enabled NAT loopback. Which seems to be the same thing i think. The weirdest part of this to me is when i use my vpn in browser and i open open webui for nextcloud it works, seemingly because its routed externally (nextcloud.example.com)? Not very sure why this worked, so i tried using the local address and port in my web browser (https://192.168.XXX.XXX:444), this sure enough returns via the domain and external routing(returns via nextcloud.example.com). Do i have something configured wrong in my swag that is forcing my calls out or is this due to Loopback not being the same as hairpinning. Please see my config files below.

 

y4m5kTTMVVrVKOog5O2sAYvM6fTYCr0577EhWPfXy4muZnzk1gGPgRmdZPwuBAyVUT2VztMI-jR4xJON

 

Here is the Open WRT port forwarding i was talking about if it helps

 

y4mTC43JvSDTVlfYRDy2KIV8feEilFTKWfMWso_Zy4m5RVGWZlI9JUUCUI9oxGBLpRPappJUP0IWLEpd

 

Any guidance you could give me would be great. I really appreciate it!

Edited by MadOne627
Fixing Images
Link to post
7 hours ago, blakeslade said:

Experiencing an "Internal Server Error" following SpaceInvaderone's YT instructions as well as Linuxserver.io's. Have not installed Letsencrypt.

 

Been searching through this thread, but I haven't found that solution yet. Can someone give me a hand? If I'm missing a log file, let me know!

Nextcloud_docker_settings.png

Mariadb_docker_settings.png

Nextcloud_Internal_server_error.png

Nextcloud_inital_setup.png

Nextcloud_config.php 610 B · 0 downloads Nextcloud_Log.txt 2.02 kB · 0 downloads Mariadb_Log.txt 5.54 kB · 0 downloads

If we assume your lan pc is on the same subnet and your subnet is 10.0.0.0/24, then on your config.php on nc add this on the trusted domains.
It should work now



  'trusted_domains' => 
  array (
    0 => '10.0.0.72:444',
    1 => '10.0.0.*',
  ),

 

Link to post
3 hours ago, MadOne627 said:

Hey Guys,

 

I have been doing my best to read up on peoples answers to a question that has been asked several time about lan connections failing but wan connections working. I am currently able to access my nextcloud server externally after using the spaceinvader one videos as a guide, but as soon as i configured the swag docker for reverse proxy i can no longer connect locally. Some had previously mentioned hairpinning on your router could cause this problem and I have looked into this as well. I am using an OpenWRT on a Linksys and have for my port forwarding Enabled NAT loopback. Which seems to be the same thing i think. The weirdest part of this to me is when i use my vpn in browser and i open open webui for nextcloud it works, seemingly because its routed externally (nextcloud.example.com)? Not very sure why this worked, so i tried using the local address and port in my web browser (https://192.168.XXX.XXX:444), this sure enough returns via the domain and external routing(returns via nextcloud.example.com). Do i have something configured wrong in my swag that is forcing my calls out or is this due to Loopback not being the same as hairpinning. Please see my config files below.

 

swag.png?psid=1&width=1313&height=890nextcloud.png?psid=1&width=1358&height=9

 

Here is the Open WRT port forwarding i was talking about if it helps

 

port%20forwarding.png?psid=1&width=1361&port%20forwarding%20advanced.png?psid=1&

 

Any guidance you could give me would be great. I really appreciate it!

Your photos seems to either be deleted on not shared publicly!
Probably on your config you have an 'overwritehost' => nc.example.com 
This rewrites every request even from a local ip to the public domain.
Remove this line and add your local ip subnet or pc specific to your trusted domains. (see the previous 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.