OpenMOOC / moocng

MOOC Engine
Apache License 2.0
88 stars 43 forks source link

Metadata not found - after update #51

Closed johnfelipe closed 11 years ago

johnfelipe commented 11 years ago

1

i fetch, download wget --no-check-certificate https://idp.domain.com/simplesaml/saml2/idp/metadata.php and do all process

Help please

johnfelipe commented 11 years ago

This is log:

Jun 13 01:02:16 felipeurrego simplesamlphp[10101]: 3 [020df91069] SimpleSAML_Error_MetadataNotFound: METADATANOTFOUND('%ENTITYID%' => '\'http://moocng.felipeurrego.com/saml2/metadata/\'')
Jun 13 01:02:16 felipeurrego simplesamlphp[10101]: 3 [020df91069] Backtrace:
Jun 13 01:02:16 felipeurrego simplesamlphp[10101]: 3 [020df91069] 3 /var/www/idp/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:293 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaData)
Jun 13 01:02:16 felipeurrego simplesamlphp[10101]: 3 [020df91069] 2 /var/www/idp/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:310 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataConfig)
Jun 13 01:02:16 felipeurrego simplesamlphp[10101]: 3 [020df91069] 1 /var/www/idp/simplesamlphp/modules/saml/lib/IdP/SAML2.php:296 (sspmod_saml_IdP_SAML2::receiveAuthnRequest)
Jun 13 01:02:16 felipeurrego simplesamlphp[10101]: 3 [020df91069] 0 /var/www/idp/simplesamlphp/www/saml2/idp/SSOService.php:19 (N/A)
Jun 13 01:02:16 felipeurrego simplesamlphp[10101]: 3 [020df91069] Error report with id 83524364 generated.
Jun 13 01:03:10 felipeurrego simplesamlphp[10099]: 3 [020df91069] SimpleSAML_Error_MetadataNotFound: METADATANOTFOUND('%ENTITYID%' => '\'http://moocng.felipeurrego.com/saml2/metadata/\'')
Jun 13 01:03:10 felipeurrego simplesamlphp[10099]: 3 [020df91069] Backtrace:
Jun 13 01:03:10 felipeurrego simplesamlphp[10099]: 3 [020df91069] 3 /var/www/idp/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:293 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaData)
Jun 13 01:03:10 felipeurrego simplesamlphp[10099]: 3 [020df91069] 2 /var/www/idp/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:310 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataConfig)
Jun 13 01:03:10 felipeurrego simplesamlphp[10099]: 3 [020df91069] 1 /var/www/idp/simplesamlphp/modules/saml/lib/IdP/SAML2.php:296 (sspmod_saml_IdP_SAML2::receiveAuthnRequest)
Jun 13 01:03:10 felipeurrego simplesamlphp[10099]: 3 [020df91069] 0 /var/www/idp/simplesamlphp/www/saml2/idp/SSOService.php:19 (N/A)
Jun 13 01:03:10 felipeurrego simplesamlphp[10099]: 3 [020df91069] Error report with id ccd52054 generated.
pitbulk commented 11 years ago

First of all review if there is any problem in the moocng.

Also check the metarefresh module documentation: https://github.com/OpenMOOC/documentation/blob/master/source/IdP_guide.rst#configure-the-cron-and-metarefresh-module

johnfelipe commented 11 years ago

I check everything but still problem:

1

service httpd restart
cd /var/www/moocng/saml2
wget --no-check-certificate https://idp.felipeurrego.com/simplesaml/saml2/idp/metadata.php
mv metadata.php remote_metadata.xml
service httpd restart
/etc/init.d/slapd restart

before update it work any change

Help please

tnks

johnfelipe commented 11 years ago
Jun 24 19:04:13 felipeurrego simplesamlphp[1965]: 3 [130b322754] SimpleSAML_Error_MetadataNotFound: METADATANOTFOUND('%ENTITYID%' => '\'http://moocng.felipeurrego.com/saml2/metadata/\'')
Jun 24 19:04:13 felipeurrego simplesamlphp[1965]: 3 [130b322754] Backtrace:
Jun 24 19:04:13 felipeurrego simplesamlphp[1965]: 3 [130b322754] 3 /var/www/idp/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:293 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaData)
Jun 24 19:04:13 felipeurrego simplesamlphp[1965]: 3 [130b322754] 2 /var/www/idp/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:310 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataConfig)
Jun 24 19:04:13 felipeurrego simplesamlphp[1965]: 3 [130b322754] 1 /var/www/idp/simplesamlphp/modules/saml/lib/IdP/SAML2.php:296 (sspmod_saml_IdP_SAML2::receiveAuthnRequest)
Jun 24 19:04:13 felipeurrego simplesamlphp[1965]: 3 [130b322754] 0 /var/www/idp/simplesamlphp/www/saml2/idp/SSOService.php:19 (N/A)
Jun 24 19:04:13 felipeurrego simplesamlphp[1965]: 3 [130b322754] Error report with id 2ab38a4d generated.

how fix it, or file to review settings

johnfelipe commented 11 years ago

I review and /var/www/idp/simplesamlphp/metadata/moocng is empty how create saml20-sp-remote.php

Tnks

johnfelipe commented 11 years ago

Hi again, please tell me how create saml20-sp-remote.php, fetch delete this file, tnks

pitbulk commented 11 years ago

Hi @johnfelipe,

The /var/www/idp/simplesamlphp/metadata/moocng/saml20-sp-remote.php is a file that is autogenerated by the metarefresh module.

The metarefresh module failed (check the output of the metarefresh execution): get_contents(http://moocng.felipeurrego.com/saml2/metadata/) 404 Not found.

I already said you to check that. The IdP cann't access to http://moocng.felipeurrego.com/saml2/metadata and that is the problem. Try to access in a browser to http://moocng.felipeurrego.com/saml2/metadata and see what is happening.

johnfelipe commented 11 years ago

Metadata not found Unable to locate metadata for 'http://moocng.felipeurrego.com/auth/saml2/metadata/'

in browser:

metadata

but

http://moocng.felipeurrego.com/auth/login/

still:

metadata2

and log:

Jun 14 01:24:56 felipeurrego simplesamlphp[11176]: 3 [879d1c0fa8] SimpleSAML_Error_MetadataNotFound: METADATANOTFOUND('%ENTITYID%' => '\'http://moocng.felipeurrego.com/auth/saml2/metadata/\'')
Jun 14 01:24:56 felipeurrego simplesamlphp[11176]: 3 [879d1c0fa8] Backtrace:
Jun 14 01:24:56 felipeurrego simplesamlphp[11176]: 3 [879d1c0fa8] 3 /var/www/idp/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:293 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaData)
Jun 14 01:24:56 felipeurrego simplesamlphp[11176]: 3 [879d1c0fa8] 2 /var/www/idp/simplesamlphp/lib/SimpleSAML/Metadata/MetaDataStorageHandler.php:310 (SimpleSAML_Metadata_MetaDataStorageHandler::getMetaDataConfig)
Jun 14 01:24:56 felipeurrego simplesamlphp[11176]: 3 [879d1c0fa8] 1 /var/www/idp/simplesamlphp/modules/saml/lib/IdP/SAML2.php:296 (sspmod_saml_IdP_SAML2::receiveAuthnRequest)
Jun 14 01:24:56 felipeurrego simplesamlphp[11176]: 3 [879d1c0fa8] 0 /var/www/idp/simplesamlphp/www/saml2/idp/SSOService.php:19 (N/A)
Jun 14 01:24:56 felipeurrego simplesamlphp[11176]: 3 [879d1c0fa8] Error report with id fa3cf15c generated.
johnfelipe commented 11 years ago

I update again all with other appliance and register fine, but http://moocng.felipeurrego.com/auth/login/

error

Help please

pitbulk commented 11 years ago

So as I said to you the problem is in the mooncg element, not in the IdP.

Your moocng is not working, check the logs and take care about the settings replacement that I already explained to you (local_settings.py >> settings/local.py and change the header of the local.py then to import the commons.py)