Ok, here is the output of my config.php:
{
"system": {
"debug": true,
"profiler": true,
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/apps-extra",
"url": "\/apps-extra",
"writable": false
},
{
"path": "\/var\/www\/html\/apps-shared",
"url": "\/apps-shared",
"writable": false
},
{
"path": "\/var\/www\/html\/apps-writable",
"url": "\/apps-writable",
"writable": true
}
],
"allow_local_remote_servers": true,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "1025",
"skeletondirectory": "\/skeleton",
"setup_create_db_user": false,
"loglevel": 2,
"log_query": false,
"query_log_file": "\/shared\/log\/querylog-nextcloud.log",
"query_log_file_requestid": "yes",
"diagnostics.logging": false,
"diagnostics.logging.threshold": 0,
"log.condition": {
"apps": [
"diagnostics",
"admin_audit"
]
},
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"nextcloud",
"nextcloud.local",
"192.168.21.6",
"localhost"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "29.0.0.8",
"overwrite.cli.url": "http:\/\/nextcloud.local",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"updater.release.channel": "git",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"lookup_server": "",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"theme": "",
"maintenance": false,
"app_install_overwrite": [
"logreader",
"app_api"
]
},
"apps": {
"admin_audit": {
"enabled": "yes",
"installed_version": "1.19.0",
"types": "logging"
},
"app_api": {
"default_daemon_config": "docker_socket_proxy",
"enabled": "yes",
"installed_version": "2.3.0",
"types": ""
},
"backgroundjob": {
"lastjob": "52"
},
"circles": {
"enabled": "yes",
"installed_version": "29.0.0-dev",
"loopback_tmp_scheme": "http",
"maintenance_run": "0",
"maintenance_update": "{\"3\":1710491402,\"2\":1710492301,\"1\":1710492301}",
"types": "filesystem,dav"
},
"cloud_federation_api": {
"enabled": "yes",
"installed_version": "1.12.0",
"types": "filesystem"
},
"comments": {
"enabled": "yes",
"installed_version": "1.19.0",
"types": "logging"
},
"contactsinteraction": {
"enabled": "yes",
"installed_version": "1.10.0",
"types": "dav"
},
"core": {
"backgroundjobs_mode": "cron",
"files_metadata_installed": "1",
"installedat": "1710250472.6835",
"lastcron": "1710492302",
"lastupdateResult": "[]",
"lastupdatedat": "1710430245",
"moveavatarsdone": "yes",
"previewsCleanedUp": "1",
"public_files": "files_sharing\/public.php",
"vendor": "nextcloud"
},
"dashboard": {
"enabled": "yes",
"installed_version": "7.9.0",
"types": ""
},
"dav": {
"enabled": "yes",
"installed_version": "1.30.0",
"needs_system_address_book_sync": "no",
"types": "filesystem"
},
"federatedfilesharing": {
"enabled": "yes",
"installed_version": "1.19.0",
"types": ""
},
"federation": {
"enabled": "yes",
"installed_version": "1.19.0",
"types": "authentication"
},
"files": {
"enabled": "yes",
"installed_version": "2.1.0",
"types": "filesystem"
},
"files_pdfviewer": {
"enabled": "yes",
"installed_version": "2.10.0",
"types": ""
},
"files_reminders": {
"enabled": "yes",
"installed_version": "1.2.0",
"types": ""
},
"files_sharing": {
"enabled": "yes",
"installed_version": "1.21.0",
"types": "filesystem"
},
"files_trashbin": {
"enabled": "yes",
"installed_version": "1.19.0",
"types": "filesystem,dav"
},
"files_versions": {
"enabled": "yes",
"installed_version": "1.22.0",
"types": "filesystem,dav"
},
"lookup_server_connector": {
"enabled": "yes",
"installed_version": "1.17.0",
"types": "authentication"
},
"oauth2": {
"enabled": "yes",
"installed_version": "1.17.0",
"types": "authentication"
},
"profiler": {
"enabled": "yes",
"installed_version": "1.5.0",
"types": "logging"
},
"provisioning_api": {
"enabled": "yes",
"installed_version": "1.19.0",
"types": "prevent_group_restriction"
},
"recommendations": {
"enabled": "yes",
"installed_version": "2.1.0",
"types": ""
},
"settings": {
"enabled": "yes",
"installed_version": "1.12.0",
"types": ""
},
"sharebymail": {
"enabled": "yes",
"installed_version": "1.19.0",
"types": "filesystem"
},
"systemtags": {
"enabled": "yes",
"installed_version": "1.19.0",
"types": "logging"
},
"theming": {
"enabled": "yes",
"installed_version": "2.4.0",
"types": "logging"
},
"twofactor_backupcodes": {
"enabled": "yes",
"installed_version": "1.18.0",
"types": ""
},
"updatenotification": {
"enabled": "yes",
"installed_version": "1.19.1",
"types": ""
},
"user_oidc": {
"enabled": "yes",
"installed_version": "5.0.1",
"provider-1-jwksCache": "",
"provider-1-jwksCacheTimestamp": "",
"types": "authentication"
},
"user_status": {
"enabled": "yes",
"installed_version": "1.9.0",
"types": ""
},
"viewer": {
"enabled": "yes",
"installed_version": "2.3.0",
"types": ""
},
"weather_status": {
"enabled": "yes",
"installed_version": "1.9.0",
"types": ""
},
"workflowengine": {
"enabled": "yes",
"installed_version": "2.11.0",
"types": "filesystem"
}
}
}
Concerning the logs, the only 2 commands I can execute are log:file and log:manage. I tried to generate log file using both but I’me only able to configure the log file, not generate it.
To be honnest, you gave me the solution, or at least a way to bypass my problem by showing me where the occ script is stored.
I was trying to add app_api with occ using the command given by the tutorial, which is:
sudo -u www-data docker-compose exec -it nextcloud php ./occ app:enable --force app_api
Now that I know where occ is stored, I just added app_api with
./occ.sh app:enable
And it worked just fine, so thank you and I will continue with my installation of nc_py_api.
If you still want to understand the origin of this error I can continue to answer to your questions anyway.
Valentin.