- su www-data -c "git clone -b master https://github.com/nextcloud/external/ /var/www/html/apps/external/"
- su www-data -c "php /var/www/html/occ app:enable external"
- su www-data -c 'php /var/www/html/occ config:app:set external sites --value="{\"1\":{\"id\":1,\"name\":\"Nextcloud\",\"url\":\"https:\/\/www.nextcloud.com\",\"lang\":\"\",\"type\":\"link\",\"device\":\"\",\"icon\":\"external.svg\",\"groups\":[],\"redirect\":false},\"2\":{\"id\":2,\"name\":\"Forum\",\"url\":\"https:\/\/help.nextcloud.com\",\"lang\":\"\",\"type\":\"link\",\"device\":\"\",\"icon\":\"external.svg\",\"groups\":[],\"redirect\":false}}"'
{
"reqId": "HiSGniw95mb7iJyKZGdv",
"level": 3,
"time": "2022-10-12T08:36:44+00:00",
"remoteAddr": "192.168.0.2",
"user": "test",
"app": "no app in context",
"method": "GET",
"url": "/ocs/v2.php/apps/external/api/v1?format=json",
"message": "Class 'OCA\\External\\Vendor\\Firebase\\JWT\\JWT' not found in file '/var/www/html/apps/external/lib/JWTManager.php' line 64",
"userAgent": "Mozilla/5.0 (Android) Nextcloud-android/1.0.0",
"version": "26.0.0.0",
"exception": {
"Exception": "Exception",
"Message": "Class 'OCA\\External\\Vendor\\Firebase\\JWT\\JWT' not found in file '/var/www/html/apps/external/lib/JWTManager.php' line 64",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 172,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 298,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 63,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 23,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 165,
"Previous": {
"Exception": "Error",
"Message": "Class 'OCA\\External\\Vendor\\Firebase\\JWT\\JWT' not found",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/apps/external/lib/SitesManager.php",
"line": 136,
"function": "getToken",
"class": "OCA\\External\\JWTManager",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/apps/external/lib/Controller/APIController.php",
"line": 78,
"function": "getSitesToDisplay",
"class": "OCA\\External\\SitesManager",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 225,
"function": "get",
"class": "OCA\\External\\Controller\\APIController",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 133,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 172,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 298,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 63,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 23,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/apps/external/lib/JWTManager.php",
"Line": 64
},
"CustomMessage": "--"
}
}
While running this on android library, we see:
setup is done via: