Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

RPCJSON - importer un fichier lss ou lsa

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 2 months ago #209696 by DenisChenu
Replied by DenisChenu on topic RPCJSON - importer un fichier lss ou lsa

riqcles wrote: (? pourquoi pas de ssl sur le localhost ?).

Le SSL valide un nom de domaine valide …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: riqcles
The topic has been locked.
  • riqcles
  • riqcles's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 2 months ago #209716 by riqcles
Replied by riqcles on topic RPCJSON - importer un fichier lss ou lsa
Ok bien compris pour le https.

Mais sinon pourquoi ceci :
**********
Serveur uWamp :
**********
1. serveur http et site http --> ok c'est bon
2. serveur https et site https --> ok c'est bon
3. serveur https et forcer https dans l'application (ssl dans la BBD) --> KO : Fatal error: Uncaught Exception: Incorrect response id: (request id: 1)

Utilisation du programme d'import de masse de fichier lss et lsa:
Résultat sur le serveur uWamp :
D:\Programmes\UwAmp\www\RPCImportSurveys>php index.php
Import limesurvey_survey_277683.lss as lss
imported as survey id 277683
Import limesurvey_survey_388353.lss as lss
imported as survey id 388353
Import limesurvey_survey_438968.lss as lss
imported as survey id 438968
Import limesurvey_survey_579149.lss as lss
imported as survey id 579149
Import limesurvey_survey_961991.lss as lss
imported as survey id 961991
Import survey_archive_517494.lsa as lsa
imported as survey id 517494

L'import fonctionne correctement.


Serveur du bureau (avec règles de sécurité).

Resultat :
D:\Programmes\UwAmp\www\RPCImportSurveysSEP>php index.php

Warning: fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in D:\Programmes\UwAmp\www\RPCImportSurveysSEP\vendor\src\org\jsonrpcphp\JsonRPCClient.php on line 175

Warning: fopen(https://MONSERVEUR_AVEC_DOMAINE/limesurveyactuelle/index.php/admin/remotecontrol): failed to open stream: Invalid argument in D:\Programmes\UwAmp\www\RPCImportSurveysSEP\vendor\src\org\jsonrpcphp\JsonRPCClient.php on line 175

Fatal error: Uncaught Exception: Unable to connect to https://MONSERVEUR_AVEC_DOMAINE/limesurveyactuelle/index.php/admin/remotecontrol in D:\Programmes\UwAmp\www\RPCImportSurveysSEP\vendor\src\org\jsonrpcphp\JsonRPCClient.php:181
Stack trace:
#0 D:\Programmes\UwAmp\www\RPCImportSurveysSEP\importtSurveys.php(14): org\jsonrpcphp\JsonRPCClient->__call('get_session_key', Array)
#1 D:\Programmes\UwAmp\www\RPCImportSurveysSEP\index.php(6): include_once('D:\\Programmes\\U...')
#2 {main}
thrown in D:\Programmes\UwAmp\www\RPCImportSurveysSEP\vendor\src\org\jsonrpcphp\JsonRPCClient.php on line 181

D:\Programmes\UwAmp\www\RPCImportSurveysSEP>


Serveur du bureau (redirection automatique du http vers https)

D:\Programmes\UwAmp\www\RPCImportSurveysSEP>php index.php

Warning: fopen(https://MONSERVEUR_AVEC_DOMAINE/limesurveyactuelle/index.php/admin/remotecontrol): failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? in D:\Programmes\UwAmp\www\RPCImportSurveysSEP\vendor\src\org\jsonrpcphp\JsonRPCClient.php on line 175

Fatal error: Uncaught Exception: Unable to connect to https://MONSERVEUR_AVEC_DOMAINE/limesurveyactuelle/index.php/admin/remotecontrol in D:\Programmes\UwAmp\www\RPCImportSurveysSEP\vendor\src\org\jsonrpcphp\JsonRPCClient.php:181
Stack trace:
#0 D:\Programmes\UwAmp\www\RPCImportSurveysSEP\importtSurveys.php(15): org\jsonrpcphp\JsonRPCClient->__call('get_session_key', Array)
#1 D:\Programmes\UwAmp\www\RPCImportSurveysSEP\index.php(6): include_once('D:\\Programmes\\U...')
#2 {main}
thrown in D:\Programmes\UwAmp\www\RPCImportSurveysSEP\vendor\src\org\jsonrpcphp\JsonRPCClient.php on line 181


Mais comme ceci est propre à la configuration du serveur mandataire inversé, ce n'est pas la peine de remplir ce topic avec ce problème qui est propre à moi.... :lol:

Je vais chercher et peut être trouver la solution.

Par contre, je souhaiterais savoir si d'autres personnes rencontre ce problème en activant https sur leur serveur et en forçant le https dans LimeSurvey.

Si oui, une remonté de bug, pourra être faite ?

Merci à la communauté.

LimeSurvey version 6.6.6
OS : RockyLinux / PHP 8.2.X
BDD : PostGresql 17.x /

Future LimeSurvey version 6.10.5
OS : RockyLinux / PHP 8.2.X
BDD : PostGresql 17.x /
The topic has been locked.
Moderators: Nickkoholchtpartner

Lime-years ahead

Online-surveys for every purse and purpose