-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error: server is not connected to the internet message - but I am, or so I think ... #16255
Comments
i can confirm this, how is the connection checked ? maybe something is missing ... |
The check seems to be done here:
So www.owncloud.org needs to be reachable. |
Please create a <?php
require_once('./lib/base.php');
$client = \OC::$server->getHTTPClientService()->newClient();
try {
$client->get('https://www.owncloud.org/');
$client->get('http://www.owncloud.org/');
} catch (\Exception $e) {
throw $e;
} Also be sure to add |
Thanks for your Help, here is the trace: Interner Serverfehler Der Server hat einen internen Fehler und konnte Ihre Anfrage nicht Bitte wende Dich an den Serveradministrator, sollte dieser Fehler mehrfach Weitere Details können im Serverprotokoll gefunden werden. Technische Details Entfernte Adresse: 2a02:2450:102d:3ff:cd66:9893:147a:7cAnforderungskennung: Spur #0 /var/www/owncloud/3rdparty/guzzlehttp/guzzle/src/RequestFsm.php(104):
|
and once more without that AAA in the URL: Technische Details Spur |
@derkostka Interesting. Can you post your config.php and also try by fixing the aaaaaowncloud.org to owncloud.org - technically it should fail then as well if it is what I suspect. Thanks! |
Ah you were faster ;-) - Config.php still applies :-) |
Sure ! Please consider that if i upgrade i usually keep the old config. May be Welcome to Ubuntu 15.04 (GNU/Linux 3.8.13.28 armv7l) cat /var/www/owncloud/config/config.php 'someocinstanceid', 'passwordsalt' => 'tastysalt', 'hashingCost' => 10, 'trusted_domains' => array ( 0 => 'cloud.sebastiankostka.de', 1 => 'de1.portmap64.net', 2 => '192.168.6.9', 3 => 'odroid', 4 => 'vpn', ), 'datadirectory' => '/media/data/owncloud/data', 'version' => '8.1.0.5', 'dbtype' => 'mysql', 'dbhost' => '127.0.0.1', 'dbname' => 'owncloud', 'dbuser' => 'ownclouduser', 'dbpassword' => 'mysecretpassword', 'dbtableprefix' => 'oc_', 'sqlite.journal_mode' => 'DELETE', 'installed' => true, 'default_language' => 'de', 'defaultapp' => 'files', 'knowledgebaseenabled' => true, 'enable_avatars' => true, 'allow_user_to_change_display_name' => true, 'remember_login_cookie_lifetime' => 1296000, 'session_lifetime' => 86400, 'session_keepalive' => true, 'skeletondirectory' => '', 'mail_domain' => 'mydomain', 'mail_from_address' => 'owncloud', 'mail_smtpdebug' => false, 'mail_smtpmode' => 'smtp', 'mail_smtphost' => 'mail', 'mail_smtpport' => 465, 'mail_smtptimeout' => 10, 'mail_smtpsecure' => 'ssl', 'mail_smtpauth' => true, 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpname' => 'me@mymail', 'mail_smtppassword' => 'secret', 'overwritehost' => '', 'overwriteprotocol' => '', 'overwritewebroot' => '', 'overwritecondaddr' => '', 'overwrite.cli.url' => '', 'proxy' => '', 'proxyuserpwd' => '', 'trashbin_retention_obligation' => 30, 'trashbin_auto_expire' => true, 'appcodechecker' => false, 'updatechecker' => true, 'has_internet_connection' => true, 'check_for_working_webdav' => true, 'check_for_working_htaccess' => true, 'config_is_read_only' => false, 'log_type' => 'owncloud', 'logfile' => '/var/log/owncloud.log', 'loglevel' => 0, 'logdateformat' => 'F d, Y H:i:s', 'logtimezone' => 'Europe/Berlin', 'log_query' => false, 'cron_log' => true, 'log_rotate_size' => 104857600, '3rdpartyroot' => '', '3rdpartyurl' => '', 'customclient_desktop' => 'http://owncloud.org/sync-clients/', 'customclient_android' => ' https://play.google.com/store/apps/details?id=com.owncloud.android', 'customclient_ios' => ' https://itunes.apple.com/us/app/owncloud/id543672169?mt=8', 'appstoreenabled' => true, 'appstoreurl' => 'https://api.owncloud.com/v1', 'apps_paths' => array ( 0 => array ( 'path' => '/var/www/owncloud/apps', 'url' => '/apps', 'writable' => true, ), 1 => array ( 'path' => '/var/www/owncloud/apps2', 'url' => '/apps2', 'writable' => true, ), ), 'enable_previews' => true, 'preview_max_x' => NULL, 'preview_max_y' => NULL, 'preview_max_scale_factor' => 10, 'preview_max_filesize_image' => 50, 'preview_libreoffice_path' => '/usr/bin/libreoffice', 'preview_office_cl_parameters' => ' --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir ', 'enabledPreviewProviders' => array ( 0 => 'OC\Preview\Image', 1 => 'OC\Preview\MP3', 2 => 'OC\Preview\TXT', 3 => 'OC\Preview\MarkDown', ), 'ldapUserCleanupInterval' => 51, 'maintenance' => false, 'singleuser' => false, 'forcessl' => true, 'forceSSLforSubdomains' => true, 'openssl' => array ( 'config' => '/absolute/location/of/openssl.cnf', ), 'blacklisted_files' => array ( 0 => '.htaccess', ), 'share_folder' => '/', 'theme' => '', 'xframe_restriction' => true, 'cipher' => 'AES-256-CFB', 'redis' => array ( 'host' => 'localhost', 'port' => 6379, 'timeout' => 0, ), 'memcached_servers' => array ( 0 => array ( 0 => 'localhost', 1 => 11211, ), ), 'cache_path' => '', 'quota_include_external_storage' => false, 'filesystem_check_changes' => 1, 'asset-pipeline.enabled' => false, 'assetdirectory' => '/var/www/owncloud', 'mount_file' => 'data/mount.json', 'filesystem_cache_readonly' => false, 'supportedDatabases' => array ( 0 => 'sqlite', 1 => 'mysql', 2 => 'pgsql', 3 => 'oci', 4 => 'mssql', ), 'custom_csp_policy' => 'default-src \'self\'; script-src \'self\' \'unsafe-eval\'; style-src \'self\' \'unsafe-inline\'; frame-src *; img-src *; font-src \'self\' data:; media-src *; connect-src *', 'secret' => 'somesecret', 'trusted_proxies' => array ( 0 => '203.0.113.45', 1 => '198.51.100.128', ), 'forwarded_for_headers' => array ( 0 => 'HTTP_X_FORWARDED', 1 => 'HTTP_FORWARDED_FOR', ), 'max_filesize_animated_gifs_public_sharing' => 10, 'ldapIgnoreNamingRules' => false, ); Am 12.05.2015 23:21 schrieb "Lukas Reschke" notifications@github.com: > @derkostka https://github.com/derkostka Interesting. Can you post your > config.php and also try by fixing the aaaaaowncloud.org to owncloud.org - > technically it should fail then as well if it is what I suspect. Thanks! > > — > Reply to this email directly or view it on GitHub > https://github.com//issues/16255#issuecomment-101425597. |
@derkostka |
@RealRancor anyway, if it is a configuration problem the error message should indicate that. |
so yes, I copied over the sample and did my modifications as far as I knew them ... |
@derkostka https://github.com/owncloud/core/blob/v8.0.3/config/config.sample.php#L7-L10 The second message you have posted says:
Your current config.php contains the default "trusted_proxies" setting: https://github.com/owncloud/core/blob/v8.0.3/config/config.sample.php#L955 which could cause this. |
Thanks for the pointer. Good to see this one is probably (my) configuration fault. @jnfrmarks does this also apply to you ? Edit: I did remove all Proxy-relations i´ve seen from the config, still: I am away for the weekend, but i will rework my complete config and look again in a test instance. meanwhile, let´s wait for jnfrmarks reply. Thanks for the support ! |
@RealRancor @derkostka @LukasReschke I'm getting back to this now and don't know what I need to do here. I still see the warning on my CentOS system but not on my ubuntu system. |
@jnfrmarks Any way you can grant me access to that system? |
Relevant error entry:
When dumping the error entry:
This means |
On the owncloud.org server:
Looks like an SNI related issue. Digging… |
Thought about the same. Is curl used for this request? |
Yup. With 8.1 we always use the PHP cURL bindings in form of a wrapper around GuzzleHttp. This is a PHP bug: https://bugs.php.net/bug.php?id=67639 |
For testing purposes: <?php
function doCurl($url) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
return $code;
}
echo "HTTP Status: ".doCurl("https://owncloud.org")."\n";
echo "HTTP Status: ".doCurl("https://www.owncloud.org")."\n"; If the second line returns a 400 then the PHP version is affected by this bug. |
Is there something we need to do to either remove the |
Well… Recompiling PHP with a newer cURL version might help. Besides that everything else that we can do is only cosmetic and it is indeed possibly that this breaks other features as well when it comes to handling connections to hosts with SNI. Though having connections in the same PHP request to two different domains running on the same server with SNI is unlikely. I would however not say that this is impossible. If we just want to get rid of this error we need to stop using SNI on owncloud.org, for this please get in touch with sysadmin. |
On the first moment I can think about S2S breaking when handling SNI stuff with an alias, for example when the ownCloud instance is accessible from |
I used the rpm's from above (centos7) and the message is gone. |
The patch found in: fixes the problem for fedora 22 as well. Too bad there aren't official rpm available yet. |
I was able to compile curl 7.43 from source at http://curl.haxx.se using |
So shouldn't there be a recommendation from the Owncloud community to advise against using Centos as of now until its sorted or there is an actual permanent fix? I tried recompiling curl as well as many other dozens of solutions without any luck. |
You say you recompiled curl and it didn't work? Did you try the test case above outside of owncloud for testing? |
@Lonecrowe oC 8.1.1 shows the messages what to do in the admin section like seen here: Because of a bug in one single library its probably a little bit overkill to advise against a whole distribution. |
Generally speaking, a lot of the stuff should work even with older and buggy NSS. We employed workarounds for installing apps, if that with 8.1.1 does not work then please file a detailled issue. The more information the better. However, there are problems left. So in rare cases where you do a Server-to-Server share to different instances on the same server using SNI this will lead to problems. There are some others, but as a regular user you are not likely to experience a lot of them. Using CentOS and RHEL is completely fine. While it would be better that they update their stuff this is not completely dangerous. As we now have a check and also mitigated some other issues I'm going to close this. |
Thank you @dpackman. Your fix worked perfectly for me! |
So what's the proposed fix now? I'm still experiencing this on Arch with curl 7.43.0-1 and nss 3.19.2-2 |
@Chais file a bug at https://bugs.archlinux.org/ mentioning that this https://bugzilla.redhat.com/show_bug.cgi?id=1104597 patch fixes the problem for fedora 22 (well maybe, if you can, try to patch and recompile nss:-) ), the arch guys are usually very fast to fix things.. I don't understand why RedHat did not merge the patch at least in testing. Maybe there isn't enough people complaining :-) |
I also got the admin message "this server has no internet conection...". OC Server 8.1.1 Result from the above PHP/cURL test (seems ok): My system is Debian stable 64 bits. Apache
PHP
cURL
|
@sargue See https://forum.owncloud.org/viewtopic.php?f=17&t=29790 for some pointers |
@RealRancor Thanks! It was a missing ca-bundle.crt Did the "upgrader app" path from latest 8.0 version (waited until 8.1.1, skipped 8.1.0 as I had encryption enabled in the past). |
@sargue Yes, the updater is currently failing to copy this ca-bundle.crt if upgrading from oC 8.0.x to 8.1.x: owncloud/updater#164 |
FYI for anyone following this issue. Fedora 22/23 has had the updated curl-7.40.0-7.fc22/23 package pushed out to the stable repo 9 days ago (https://bugzilla.redhat.com/show_bug.cgi?id=1104597) RHEL/CentOS 7.1 has an updated package in the testing repo (https://bugzilla.redhat.com/show_bug.cgi?id=1241172) |
To fix the problem on Ubuntu 13.04 or 14.04, you can actually follow these instructions
This made things work for me again. |
I had the ca-bundle.crt, but downloading it again as Fohlen commented solved my problem. |
This helped me on Debian 7, too! |
I just got this error again after several years of not seeing them having tested some of the above fixes. |
Same here on v10.0.4, most interesting this is on a Debian VM, upgraded to Buster, so all packages are more recent than on my other systems (Jessie + Stretch), where the error does not show up. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
They should make sense
Actual behaviour
This one doesn't make sense as I am connected to the internet:
More information is needed (a pointer to a link?) on how to resolve this.
Server Host info:
Ubuntu 14.04
PHP 5.5.9
Server configuration:
ownCloud Enterprise Edition 8.1 beta 1 (daily) Build:2015-05-11T03:08:42+00:00 52fc45e
The text was updated successfully, but these errors were encountered: