Hi there,
I am trying to automate some stuff using the REST API but am struggling to get even the simplest example from the manual to work. This command returns nothing:
curl --silent -u admin:admin \ 'http://localhost/ocs/v1.php/cloud/capabilities?format=json'
Does the API has to be enabled somehow or is it possible it was disabled during installation? (I did not setup the install). Couldn’t find any relevant information in the manual/forums
Best,
Julian
Server configuration
Operating system:
Ubuntu 18.04.2 LTS
Web server:
Apache/2.4.25 (Univention)
Database:
MySql
PHP version:
PHP 7.2.19-0ubuntu0.18.04.1
ownCloud version: (see ownCloud admin page)
10.2.1.4
Updated from an older ownCloud or fresh install:
fresh install
Where did you install ownCloud from:
Owncloud is installed as univention app and is running in a docker
Signing status (ownCloud 9.0 and above):
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
=======
- core
- INVALID_HASH
- core/css/header.css
- core/img/logo-icon.svg
- core/img/logo.svg
- lib/private/legacy/defaults.php
- resources/config/ca-bundle.crt
- EXTRA_FILE
- core/img/logo-icon.svgOLD
- core/img/logo.svgOLD
- core/css/header.cssOLD
- lib/private/legacy/defaults.phpOLD
- mynewtheme
- EXCEPTION
- OC\IntegrityCheck\Exceptions\MissingSignatureException
- Signature data not found.
Raw output
==========
Array
(
[core] => Array
(
[INVALID_HASH] => Array
(
[core/css/header.css] => Array
(
[expected] => 7f92e6d33dc8e1961f5449570b57f9e5149bfe6102264bd4994e8f88cf707c1e46e65fcc56ea405f442659034381885239ca8b83b56f6140c5b1990248e93891
[current] => 7b182e59e91d68776bdf7739c8a9e095e0036cff12f3198fbaf9ec4b5d35270103adabad31f1bbd140b507d892766ec935bbc196f7d135174b899bc15c66324a
)
[core/img/logo-icon.svg] => Array
(
[expected] => 681895c4997d7cbcb0fae26caf602fc51be5ca4de22574961ee54244f1bca5d44e41c744905f7ffbaa6cb3afb265f5df8faee4d7431b6e9aa1fa663e4b6ba615
[current] => c98e0562d7ae62b9dc4a62ac75bd6433474da8a0094ce197cfaade93903ebe7eb1f4f53efa2e93f6de01651555540074eaf0b49e9deeba4d8bc222fdc2287a61
)
[core/img/logo.svg] => Array
(
[expected] => 0fed54bd7c739cf9fb09ed57d9f2c751579db063418382bb5c4937e4b57cfc399c6752695b41d44a11cc4fab1fa3a9cf20384479c3a9ec74d39b035c1811dcfc
[current] => ddc69c5eceecf1ef3f8b3ea5595505a166d77a19c81b9c15c3cb8746e3419f43b18658420a6247cc4a63ae98bed8e92249e7ccf4befdbd0474d3866b7b4c09ed
)
[lib/private/legacy/defaults.php] => Array
(
[expected] => 0ce167da7cd223c775aa265eae6206cab18366cbd35d65628d2ad3b98e04561ebb843100b6e1ea01e27041af207d0e2cb37fd5fc97b7dfd6b2fdd48c941904bc
[current] => 2546cf6b4b7e67bbc0cac45086870167f2c87aad875f25d5c8bf44d8d26e7b3bc5f11b873e45f0a89eeae6bf11d4f0c583da4710a3df7e81e06dc5aeab91fe8d
)
[resources/config/ca-bundle.crt] => Array
(
[expected] => 273c36f5742fce6c727ed529e7669da4b89a6cafa87e59437882afee183bdd04dae5685c97e5a0a2bf4d7bb5e178d7e1d5a678e72b328ef0f5d83d0f6042f139
[current] => b3b4a64faa1ba0358f675f91c409ea22f1412313b1b4cadbd6a1115cf302b8ec1170c38960acadcadc52ca528bd8ce44511751518369cb10e134662f46a09f00
)
)
[EXTRA_FILE] => Array
(
[core/img/logo-icon.svgOLD] => Array
(
[expected] =>
[current] => 681895c4997d7cbcb0fae26caf602fc51be5ca4de22574961ee54244f1bca5d44e41c744905f7ffbaa6cb3afb265f5df8faee4d7431b6e9aa1fa663e4b6ba615
)
[core/img/logo.svgOLD] => Array
(
[expected] =>
[current] => 0fed54bd7c739cf9fb09ed57d9f2c751579db063418382bb5c4937e4b57cfc399c6752695b41d44a11cc4fab1fa3a9cf20384479c3a9ec74d39b035c1811dcfc
)
[core/css/header.cssOLD] => Array
(
[expected] =>
[current] => 7f92e6d33dc8e1961f5449570b57f9e5149bfe6102264bd4994e8f88cf707c1e46e65fcc56ea405f442659034381885239ca8b83b56f6140c5b1990248e93891
)
[lib/private/legacy/defaults.phpOLD] => Array
(
[expected] =>
[current] => 0ce167da7cd223c775aa265eae6206cab18366cbd35d65628d2ad3b98e04561ebb843100b6e1ea01e27041af207d0e2cb37fd5fc97b7dfd6b2fdd48c941904bc
)
)
)
[mynewtheme] => Array
(
[EXCEPTION] => Array
(
[class] => OC\IntegrityCheck\Exceptions\MissingSignatureException
[message] => Signature data not found.
)
)
)
The content of config/config.php:
{
"basic": {
"license key": "***REMOVED SENSITIVE VALUE***",
"date": "Tue, 28 Jan 2020 15:43:12 +0000",
"ownCloud version": "10.2.1.4",
"ownCloud version string": "10.2.1",
"ownCloud edition": "Community",
"server OS": "Linux",
"server OS version": "Linux a0034d376780 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64",
"server SAPI": "apache2handler",
"webserver version": "Apache",
"hostname": "***REMOVED SENSITIVE VALUE***",
"logged-in user": "Administrator"
},
"stats": {
"users": {
"Database": {
"count": 1,
"seen": 1,
"logged in (30 days)": 1
},
"LDAP": {
"count": 17,
"seen": 12,
"logged in (30 days)": 12
}
},
"groups": {
"OC\\Group\\Database": 2,
"OCA\\Guests\\GroupBackend": 1
}
},
"config": {
"apps_paths": [
{
"path": "\/var\/www\/owncloud\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/owncloud\/custom",
"url": "\/custom",
"writable": true
}
],
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "\/var\/lib\/univention-appcenter\/apps\/owncloud\/data\/files",
"dbtype": "mysql",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbname": "owncloud",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"log_type": "owncloud",
"supportedDatabases": [
"sqlite",
"mysql",
"pgsql"
],
...... trunctated as it has too many chars