NC tries to download file instead of edit

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 9 (30.0.17)
  • Operating system and version (e.g., Ubuntu 24.04):
  • Linux 4.18.0-553.87.1.el8_10.x86_64 x86_64
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.37 (Red Hat Enterprise Linux)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • PHP 8.2.29
  • Is this the first time you’ve seen this error? (Yes / No):
    • NO
  • When did this problem seem to first start?
    • After last update
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • local server install
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

[When I go into files, and click on an .md file, I should go into edit. But instead, NC wants to download the file. If I try to edit locally, I get a message “Open Nextcloud Deskto sync client? Then I choose “Open Online” and I get the message “Edit locally” action failed]

Steps to replicate it (hint: details matter!):

  1. Happens every time

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 neces

“File”:“/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php”,“Line”:113,“message”:“failed to create instance of background job: OCA\Files_External\BackgroundJob\CredentialsCleanup”,“exception”:{},“CustomMessage”:“failed to create instance of background job: OCA\Files_External\BackgroundJob\CredentialsCleanup”}}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

[Sun Dec 07 10:26:14.383167 2025] [access_compat:error] [pid 36107:tid 139823121688320] [client 10.0.0.9:47426] AH01797: client denied by server configuration: /var/www/html/nextcloud/data/.ncdata

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!):

 $CONFIG = array (
  'instanceid' => 'ocqo9uo17uf9',
  'passwordsalt' => '***REDACTED***',
  'secret' => '***REDACTED***',
  'trusted_domains' => 
  array (
    0 => 'fir',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'sqlite3',
  'version' => '30.0.17.2',
  'overwrite.cli.url' => 'http://fir/nextcloud',
  'installed' => true,
  'maintenance' => false,
  'loglevel' => 2,
  'log_type' => 'file',
  'theme' => '',

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

unfortunately you didn’t share the list of apps but I suppose you disable the app “text” which is responsible for editing .md files if you enable the app editing likely works again.

local edit requires local client to be installed and registered for a protocol (I suppose nc:// or similar)

The “text” app is installed an enabled (version 4.1.0). It used to work before I updated.

How do I setup NC to use a local app? By local client, do yo mean the desktop sync app? That is installed an running. Version 3.2.4, I think.

is missing in your first posting.

I don’t know what “occ” is ? Is that an app I can install on Red Hat? I tried dnf install occ, but nothing was found.

Here is a list of my active apps, copied from within NC.

Active apps

All apps are up-to-date.

Name Version Level

Activity 3.0.0

AppAPI 4.0.6

Brute-force settings 3.0.0

Calendar 5.5.9

Collaborative tags 1.20.0

Comments 1.20.1

Contacts Interaction 1.11.0

Dashboard 7.10.0

Deleted files 1.20.1

Federation 1.20.0

File reminders 1.3.0

File sharing 1.22.0

Files download limit 3.0.0

First run wizard 3.0.0

Log Reader 3.0.0

Monitoring 2.0.0

Nextcloud announcements 2.0.0

Nextcloud webhook support 1.1.0-dev

Notifications 3.0.0

PDF viewer 3.0.0

Password policy 2.0.0

Passwords (Legacy Support Release) 2025.12.10

Photos 3.0.2

Privacy 2.0.0

Recommendations 3.0.0

Related Resources 1.5.0

Share by mail 1.20.0

Support 2.0.0

Text 4.1.0

Update notification 1.20.0

Usage survey 2.0.0

User status 1.10.0

Versions 1.23.0

Weather status 1.10.0

Hi @wallyreport

I had to edit your post because you exposed your secrets here to the world!

Then you obviously did not read the manual
Nextcloud is available as a gift, but not for free!
The minimum compensation is the in-depth study of the documentation.


ernolf

2 Likes

I am not sure if I want to bother reading the manual for application that does not even basically work.

I have already put many hours into nextcloud, and I have nothing to show for it.

Show me that nextcloud can actually do something useful, then I will read the manual.

1 Like

Yeah, well, that’s not how it works in the open-source world. You have to be a bit more proactive. :wink:

But you could try Nextcloud AIO or the Snap Package. The latter can be installed with literally one command and should suffice as a “showcase” what Nextcloud can do :wink:

2 Likes

Please fill out the information needed to assist you, such as the above.

Also what version did you update from?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.