Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make federation retry stop when failing #24983

Closed
pixel8383 opened this issue Jan 6, 2021 · 2 comments
Closed

Make federation retry stop when failing #24983

pixel8383 opened this issue Jan 6, 2021 · 2 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@pixel8383
Copy link

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

I inserted a wrong address to create a federation (a local one instead of a public dns) and obviously on the public server side, the federation failed.

Since then my nextcloud.log is continuously fullfilled by this:

{"reqId":"7MzEpBG2iHucoQJlwnj3","level":2,"time":"2021-01-05T19:15:02+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Host nextcloud.home.local was not connected to because it violates local access rules","userAgent":"--","version":"20.0.4.0"}

I have tried to remove the Federation plugin but didn’t solve. How can I stop Nextcloud to try to connect to that server?

Thank you.

Steps to reproduce

  1. Create a federation with a local server
  2. The local server will be able to connect but the remote server which can't resolve the address will not
  3. Remove the federation

Expected behaviour

Federation retries to stop when failing after a reasonable amount of time/retries.

Actual behaviour

Federation is counted forever and the log is fullfilled by fails.

Server configuration

Operating system: FreeBSD

Web server: nginx

Database: MariaDB

PHP version: 7.4

Nextcloud version: (see Nextcloud admin page) 20.0.4

Updated from an older Nextcloud/ownCloud or fresh install: updated from older

Where did you install Nextcloud from: curl download

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@pixel8383 pixel8383 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jan 6, 2021
@pixel8383
Copy link
Author

Any idea on how to stop nextcloud retry to connect to an unreachable federation server?

@szaimen
Copy link
Contributor

szaimen commented Jul 2, 2021

Lets trackt his in #23619

@szaimen szaimen closed this as completed Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants