- Nextcloud Server version (e.g., 29.x.x):
31.0.6
- Operating system and version (e.g., Ubuntu 24.04):
debian Bullseye
- Web server and version (e.g, Apache 2.4.25):
apache
- Reverse proxy and version _(e.g. nginx 1.27.2)
swag
- PHP version (e.g, 8.3):
8.3.22
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
Today
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
docker-compose
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
nextcloud collapsed during download and installation of text2image_stablediffusion2 app ( Local Image Generation: Stable Diffusion).
There’s nothing in the apps, does not have a path, it’s not enabled so it can’t be removed. It’s can’t be installed via occ, fails with Error: Could not download app text2image_stablediffusion2
In the UI nothing can be done, it’s stuck at 47% deploying…
Steps to replicate it (hint: details matter!):
Guessing:
- Install Local Image Generation: Stable Diffusion
- Kill nextcloud while install is in progress
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log
located in your data directory). Feel free to use a pastebin/gist service if necessary.
{"reqId":"aESUBBTyJgnxkas0g6K4","level":3,"time":"2025-06-21T18:40:23+00:00","remoteAddr":"","user":"--","app":"app_api","method":"","url":"--","message":"Failed to remove container","userAgent":"--","version":"31.0.6.2","exception":{"Exception":"GuzzleHttp\\Exception\\ClientException","Message":"Client error: `DELETE http://192.168.178.2:2375/v1.41/containers/nc_app_text2image_stablediffusion2?force=true` resulted in a `404 Not Found` response:\n{\"message\":\"No such container: nc_app_text2image_stablediffusion2\"}\n\n","Code":404,"Trace":[{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":72,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":209,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":158,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":[1,"*** sensitive parameters replaced ***","*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php","line":52,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":251,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->","args":[true]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":227,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":272,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":229,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php","line":69,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php","line":189,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/ClientTrait.php","line":129,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["DELETE","http://192.168.178.2:2375/v1.41/containers/nc_app_text2image_stablediffusion2?force=true",{"synchronous":true}]},{"file":"/var/www/html/apps/app_api/lib/DeployActions/DockerActions.php","line":413,"function":"delete","class":"GuzzleHttp\\Client","type":"->","args":["http://192.168.178.2:2375/v1.41/containers/nc_app_text2image_stablediffusion2?force=true"]},{"file":"/var/www/html/apps/app_api/lib/Command/ExApp/Unregister.php","line":100,"function":"removeContainer","class":"OCA\\AppAPI\\DeployActions\\DockerActions","type":"->","args":["http://192.168.178.2:2375","nc_app_text2image_stablediffusion2"]},{"file":"/var/www/html/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OCA\\AppAPI\\Command\\ExApp\\Unregister","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":1078,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"OCA\\AppAPI\\Command\\ExApp\\Unregister"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/lib/private/Console/Application.php","line":187,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/console.php","line":87,"function":"run","class":"OC\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"}]},{"file":"/var/www/html/occ","line":33,"args":["/var/www/html/console.php"],"function":"require_once"}],"File":"/var/www/html/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php","Line":111,"message":"Failed to remove container","exception":{},"CustomMessage":"Failed to remove container"}}
Configuration
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
{
"system": {
"htaccess.RewriteBase": "\/",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"user": "default",
"password": "***REMOVED SENSITIVE VALUE***",
"dbindex": 0,
"timeout": 1.5,
"read_timeout": 1.5
"timeout": 1.5, [61/1670]
"read_timeout": 1.5
},
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***",
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "31.0.6.2",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"twofactor_enforced": "false",
"twofactor_enforced_groups": [],
"twofactor_enforced_excluded_groups": [],
"debug": false,
"loglevel": 2,
"maintenance": false,
"maintenance_window_start": 1,
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"overwritehost": "***REMOVED SENSITIVE VALUE***",
"overwriteprotocol": "https",
"updater.release.channel": "stable",
"theme": "",
"app_install_overwrite": [
"facerecognition",
"admin_notifications",
"text2image_helper",
"occweb",
"stt_whisper"
],
"memories.db.triggers.fcu": true,
], [0/1670]
"memories.db.triggers.fcu": true,
"memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
"memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
"memories.gis_type": 1,
"enabledPreviewProviders": [
"OC\\Preview\\Image",
"OC\\Preview\\HEIC",
"OC\\Preview\\TIFF"
],
"preview_max_filesize_image": 950,
"forbidden_filename_basenames": [
"con",
"prn",
"aux",
"nul",
"com0",
"com1",
"com2",
"com3",
"com4",
"com5",
"com6",
"com7",
"com8",
"com9",
"com\u00b9",
"com\u00b2",
"com\u00b3",
"lpt0",
"lpt1",
"lpt2",
"lpt3",
"lpt4",
"lpt5",
"lpt6",
"lpt7",
"lpt8",
"lpt9",
"lpt\u00b9",
"lpt\u00b2",
"lpt\u00b3"
],
"forbidden_filename_characters": [
"<",
">",
":",
"\"",
"|",
"?",
"*",
"\\",
"\/"
],
"forbidden_filename_extensions": [
" ",
".",
".filepart",
".part"
]
}
}
Apps
The output of occ app:list
(if possible).
Enabled:
- activity: 4.0.0
- admin_audit: 1.21.0
- admin_notifications: 1.0.2
- app_api: 5.0.2
- assistant: 2.4.0
- bruteforcesettings: 4.0.0
- calendar: 5.3.3
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- cloud_py_api: 0.2.0
- comments: 1.21.0
- contacts: 7.1.3
- contactsinteraction: 1.12.0
- context_chat: 4.3.0
- dashboard: 7.11.0
- dav: 1.33.0
- deck: 1.15.1
- end_to_end_encryption: 1.17.0
- external: 6.0.2
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_accesscontrol: 2.0.0
- files_automatedtagging: 2.0.0
- files_downloadlimit: 4.0.0
- files_emailviewer: 0.1.4
- files_external: 1.23.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- fulltextsearch: 31.0.0
- group_everyone: 0.1.17
- groupfolders: 19.1.0
- impersonate: 2.0.0
- integration_onedrive: 3.4.0
- integration_openai: 3.5.0
- integration_youtube: 0.3.1
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- memegen: 1.1.3
- memories: 7.5.2
- nextcloud_announcements: 3.0.0
- notes: 4.12.1
- notifications: 4.0.0
- oauth2: 1.19.1
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0-dev.1
- previewgenerator: 5.8.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recognize: 9.0.1
- recommendations: 4.0.0
- related_resources: 2.0.0
- richdocuments: 8.7.1
- richdocumentscode: 25.4.202
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- socialsharing_email: 3.3.0
- socialsharing_facebook: 3.3.0
- socialsharing_telegram: 3.3.0
- spreed: 21.1.0
- stt_whisper: 1.0.8
- support: 3.0.0
- survey_client: 3.0.0
- suspicious_login: 9.0.1
- systemtags: 1.21.1
- tasks: 0.16.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- updatenotification: 1.21.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- cadviewer: 10.10.7 (installed 10.10.7)
- camerarawpreviews: 0.8.7 (installed 0.8.7)
- duplicatefinder: 1.7.3 (installed 1.7.3)
- encryption: 2.19.0 (installed 2.18.0)
- files_3dmodelviewer: 0.0.15 (installed 0.0.15)
- files_antivirus: 6.0.2 (installed 6.0.2)
- files_downloadactivity: 1.18.1 (installed 1.18.1)
- files_fulltextsearch: 31.0.0 (installed 31.0.0)
- files_fulltextsearch_tesseract: 27.0.1 (installed 27.0.1)
- files_inotify: 0.2.3
- files_rightclick: 0.15.1 (installed 1.6.0)
- fulltextsearch_elasticsearch: 31.0.0 (installed 31.0.0)
- integration_deepl: 1.3.1 (installed 1.3.1)
- integration_github: 3.2.1 (installed 3.2.1)
- keeweb: 0.6.21 (installed 0.6.21)
- maps: 1.5.0 (installed 1.5.0)
- occweb: 0.2.3 (installed 0.2.3)
- secrets: 2.1.2 (installed 2.1.2)
- solitaire: 1.0.0 (installed 1.0.0)
- souvenirs: 1.11.9 (installed 1.11.9)
- text2image_stablediffusion: 2.0.0 (installed 2.0.0)
- thesearchpage: 1.2.12 (installed 1.2.12)
- twofactor_nextcloud_notification: 5.0.0
- twofactor_totp: 13.0.0-dev.0
- user_ldap: 1.22.0
- whiteboard: 1.1.0 (installed 1.1.0)