Coder Social home page Coder Social logo

Comments (15)

 avatar commented on August 16, 2024

Navigate to...

/var/www/nextcloud/config

enter the config file...

sudo nano config.php

Find the trusted domains...

  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '192.168.xxx.xxx',
    4 => 'letsencrypt domain',

Add the domain of the actual IP the subdomain points to...

2 => 'actual.domain.letsencrypt.points.to',

Save file and exit from Nano.

Do not simply restart the Apache webservice, but a warm reboot will suffice.

Issue is resolved. Closing issue.

from nextcloudpi.

nachoparker avatar nachoparker commented on August 16, 2024

Hi,
I am glad you got it working.

I do not understand very well... isn't it 2 => actual.domain the same as 4 => letsencrypt.domain? or am I missing some configuration that you have?

Also, I am interested if anybody else run into this.

Thanks for your feedback

from nextcloudpi.

nachoparker avatar nachoparker commented on August 16, 2024

I'll reopen this until we clarify. Maybe there is something else that can be done from NCP to avoid this situation.

from nextcloudpi.

 avatar commented on August 16, 2024

isn't it 2 => actual.domain the same as 4 => letsencrypt.domain?

I would think it is, or should be, just by how I understand it. Though, I would enter the letsencrypt.domain and be met with the solid background color, only. It wasn't until I did an entry with actual.domain that the logo and login image would appear. I would agree that the letsencrypt.domain should be sufficient.

I also notice during my syncs that the same issue would be encountered for larger file syncs. But, I think that just may be a performance limitation by the RPi3, itself.

I also get a lot of connection timeouts during syncs on 12.0.0, just like when I used OwnCloud on the unit.

from nextcloudpi.

 avatar commented on August 16, 2024

Update- I just went to the letsencyrpt.domain and the login background image and logo image are not there. It is only the background color. I own the domain I'm using for the letsencrypt.domain, not that that would make any difference/"should".

from nextcloudpi.

 avatar commented on August 16, 2024

screenshot from 2017-07-04 14-37-00

from nextcloudpi.

 avatar commented on August 16, 2024

Update- I shut off Fail2Ban and the images load, now. I'm going to watch it the next couple of days. If it still shows, Fail2Ban may be the problem.

from nextcloudpi.

nachoparker avatar nachoparker commented on August 16, 2024

fail2ban... I'll keep an eye on it.

Do you have modsecurity on?

update: just tried with and without fail2ban on a fresh image... couldn't reproduce yet

from nextcloudpi.

nachoparker avatar nachoparker commented on August 16, 2024

I was re-reading...

I still can't understand the subdomain thing. Is that what you input in nextcloudpi-config in the letsencrypt section?

from nextcloudpi.

 avatar commented on August 16, 2024

In the LetsEncrypt selection of the NCP Config utility, I entered the address for NCP which includes the sub.

from nextcloudpi.

 avatar commented on August 16, 2024

Performed a full rebuild Activated Fail2Ban. Result:
screenshot from 2017-07-08 13-41-12

Disabled Fail2Ban. Result:
screenshot from 2017-07-08 13-46-03

Conclusion: Fail2Ban was/is the issue.

from nextcloudpi.

nachoparker avatar nachoparker commented on August 16, 2024

good one

does it happen only from outside? or does it also happen using your local network IP?

Could you have a look at the logs for fail2ban, apache and nextcloud?

I want to reproduce it myself

from nextcloudpi.

nachoparker avatar nachoparker commented on August 16, 2024

finally, I could reproduce it

thanks

from nextcloudpi.

nachoparker avatar nachoparker commented on August 16, 2024

It seems like I have found the root cause. CSP code does not play well with PHP cache.

I have reported the issue to the server developers ( nextcloud/server#5664 )

The most likely outcome is that I will have to blacklist some files from PHP cache.

Does not seem fail2ban related. According to my testing, it can be worked around for now by issuing these commands

systemctl stop php7.0-fpm
systemctl stop mysqld
systemctl start php7.0-fpm
systemctl start mysqld

or rebooting. The problem is that then, if we try to access through IP again (after we last did through domain) we would be in the same situation.

It is a minor issue though, as the user will most likely access the same way always

from nextcloudpi.

nachoparker avatar nachoparker commented on August 16, 2024

This has been fixed upstream. Will be included in NC 12.0.1

Will close now, thanks for reporting and please, reopen if it still happens after update.

from nextcloudpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.