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

nextcloud.com blocked in Russia #11286

Closed
vovpff opened this issue Sep 19, 2018 · 2 comments
Closed

nextcloud.com blocked in Russia #11286

vovpff opened this issue Sep 19, 2018 · 2 comments
Labels

Comments

@vovpff
Copy link

vovpff commented Sep 19, 2018

Steps to reproduce

  1. Install nextcloud in Russia
  2. See logs
  3. A lot of internet_connection_check errors in logs

Expected behaviour

Clear logs without errors

Actual behaviour

Periodically appear error

Error
internet_connection_check	GuzzleHttp\Exception\ClientException: Client error: `GET http://www.nextcloud.com/` resulted in a `451 Unavailable For Legal Reasons` response: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name=" (truncated...)
/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 65:

GuzzleHttp\Exception\RequestException::create(GuzzleHttp\Psr7\Request {}, "*** sensiti ... *")

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/promises/src/Promise.php - line 203:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/promises/src/Promise.php - line 156:

GuzzleHttp\Promise\Promise::callHandler(1, "*** sensiti ... *", [ GuzzleHttp ... l])

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/promises/src/TaskQueue.php - line 47:

GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensiti ... *")

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/promises/src/Promise.php - line 246:

GuzzleHttp\Promise\TaskQueue->run(true)

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/promises/src/Promise.php - line 223:

GuzzleHttp\Promise\Promise->invokeWaitFn()

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/promises/src/Promise.php - line 267:

GuzzleHttp\Promise\Promise->waitIfPending()

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/promises/src/Promise.php - line 225:

GuzzleHttp\Promise\Promise->invokeWaitList()

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/promises/src/Promise.php - line 62:

GuzzleHttp\Promise\Promise->waitIfPending()

/var/www/html/etcs2.vovpff.ru/3rdparty/guzzlehttp/guzzle/src/Client.php - line 131:

GuzzleHttp\Promise\Promise->wait()

/var/www/html/etcs2.vovpff.ru/lib/private/Http/Client/Client.php - line 161:

GuzzleHttp\Client->request("get", "http://www.nextcloud.com/", { verify: "/ ... e})

/var/www/html/etcs2.vovpff.ru/settings/Controller/CheckSetupController.php - line 152:

OC\Http\Client\Client->get("http://www.nextcloud.com/")

/var/www/html/etcs2.vovpff.ru/settings/Controller/CheckSetupController.php - line 135:

OC\Settings\Controller\CheckSetupController->isSiteReachable("www.nextcloud.com")

/var/www/html/etcs2.vovpff.ru/settings/Controller/CheckSetupController.php - line 601:

OC\Settings\Controller\CheckSetupController->isInternetConnectionWorking()

/var/www/html/etcs2.vovpff.ru/lib/private/AppFramework/Http/Dispatcher.php - line 166:

OC\Settings\Controller\CheckSetupController->check()

/var/www/html/etcs2.vovpff.ru/lib/private/AppFramework/Http/Dispatcher.php - line 99:

OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\ ... {}, "check")

/var/www/html/etcs2.vovpff.ru/lib/private/AppFramework/App.php - line 118:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\ ... {}, "check")

/var/www/html/etcs2.vovpff.ru/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main("OC\\Setting ... r", "check", OC\AppFramew ... {}, { _route: "s ... "})


OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "s ... "})

/var/www/html/etcs2.vovpff.ru/lib/private/Route/Router.php - line 297:

call_user_func(OC\AppFramew ... {}, { _route: "s ... "})

/var/www/html/etcs2.vovpff.ru/lib/base.php - line 989:

OC\Route\Router->match("/settings/ajax/checksetup")

/var/www/html/etcs2.vovpff.ru/index.php - line 42:

OC::handleRequest()

Main reason of error: nextcloud.com website IP address blocked by RKN (government communication controller organisation) in whole Russia.

How to avoid this error?

Server configuration

Operating system: Ubuntu 18.04

Web server: Ubuntu LAMP

Database: MySQL

PHP version: 7.1.2

Nextcloud version: 14.0.0

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

Where did you install Nextcloud from: tar.bz2 from official website

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) ...
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #10941 (Nextcloud customiztion), #5147 (CSP blocking nextcloud image and logo on NC12), #104 (NextCloud / OwnCloud), #5405 (Nextcloud / direct_menu), and #4987 (scan.nextcloud.com causing exception in theming?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants