Hi, the problem might me how quickstatements.svc is resolveable from outside of the docker internal network. For me it helped to add quickstatements to /etc/hosts. But I‘m unsure if this is the same error.
Best, Lukas
Am 13.12.2021 um 07:44 schrieb jm zauron.subs@gmail.com:
Hi all
I'm using last version of https://github.com/wmde/wikibase-release-pipeline/tree/main/example but when I try to login to QuickStatements appears this error:
<br /> <b>Warning</b>: parse_ini_file(/quickstatements/data/oauth.ini): failed to open stream: No such file or directory in <b>/var/www/html/magnustools/public_html/php/oauth.php</b> on line <b>102</b><br /> <br /> <b>Fatal error</b>: Uncaught Exception: Cannot get user agent from ini file '/quickstatements/data/oauth.ini' in /var/www/html/magnustools/public_html/php/oauth.php:104 Stack trace: #0 /var/www/html/magnustools/public_html/php/oauth.php(48): MW_OAuth->loadIniFile() #1 /var/www/html/quickstatements/public_html/quickstatements.php(110): MW_OAuth->__construct(Array) #2 /var/www/html/quickstatements/public_html/api.php(122): QuickStatements->getOA() #3 {main} thrown in <b>/var/www/html/magnustools/public_html/php/oauth.php</b> on line <b>104</b><br />
I've seen that exists a special script to configure OAuth in QuickStatements inside Wikibase-bundle docker image, if I try to execute manually I get this error:
root@61abd70a19f8:/extra-install# ./QuickStatements.sh
- php /var/www/html/extensions/OAuth/maintenance/createOAuthConsumer.php --approve --callbackUrl http://quickstatements.svc:8840/api.php --callbackIsPrefix true --user admin --name QuickStatements --description QuickStatements --version 1.0.1 --grants createeditmovepage --grants editpage --grants highvolume --jsonOnSuccess
The following extensions are required to be installed for this script to run: OAuth. Please enable them and then try again.
It seems to be missing an OAuth extension, any idea? Perhaps I have a misconfiguration problem?
BR, JM
Wikibaseug mailing list -- wikibaseug@lists.wikimedia.org To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org