Can'delete files from web interface, even though deleted from server folder

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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:

Nextcloud version (eg, 13.0.2): 13.0.2
Operating system and version (eg, Ubuntu 16.04): Ubuntu 16.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.18
PHP version (eg, 7.1): PHP 7.0.28-0ubuntu0.16.04.1 (cli) ( NTS )

The issue you are facing:

I sent a file from my local machine to my nextcloud data/user/files folder using scp succesfully. I then discovered the desktop app and installed it. I copied a folder from my local machine to the nextcloud shared folder on my local machine. This generated errors which seem to be related to permissions. The folder transferred, but the files inside it did not. I check my file permissions on nextcloud server and everything looks fine:

owner:group: www-data:www-data
nextcloud folders: 755
nextcloud files: 644

In the nextcloud web app I tried to delete the files but there is no delete option in the dropdown menu when I click the three dots to the right of the folder. When I try to delete it in the nextcloud android app it say I dot have permission.

I then deleted the files from the nextcloud server using the command and they no longer show in /var/www/nextcloud/data/my_username/files but do still show in the web app. I also deleted them from my local shared folder and rubbish bin. They’re still showing in the web app.

How do I delete these files and what is the correct procedure to share my desktop files with the web app?

Ultimately I want to share a .kdbx keepass database with the nextcloud and then access the nextcloud file on my android device via keepass2android.

Is this the first time you’ve seen this error? (Y/N): Y

The output of your Nextcloud log in Admin > Logging:

This is the last error which relates to me trying to use the .kdbx file (on the mobile app) I deleted from the server using the command line. Seems to suggest the file has been deleted but it is still showing in the web app. I have restated apache logged out of webapp and cleared my browser cache before logging back in, still there.

Fatal	webdav	Sabre\DAV\Exception\ServiceUnavailable: Could not open file

    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 85: OCA\DAV\Connector\Sabre\File->get()
    [internal function] Sabre\DAV\CorePlugin->httpGet(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit('method GET', Array)
    /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
    /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php - line 80: Sabre\DAV\Server->exec()
    /var/www/nextcloud/remote.php - line 164: require_once('/var/www/nextcl...')
    {main}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'XXXXXXXXXXXXXXXX',
  'passwordsalt' => 'XXXXXXXXXXXXXXXXXXXXXXXX',
  'secret' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  'trusted_domains' => 
  array (
    0 => 'nextcloud_ip',
    1 => 'my_domain',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'http://nextcloud_ip/nextcloud_folder',
  'dbtype' => 'mysql',
  'version' => '13.0.2.1',
  'dbname' => 'nextclouddb_name',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'dbusername',
  'dbpassword' => 'password',
  'installed' => true,
  'maintenance' => false,
);

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

Below is the error.log with ip addresses changed:

[Thu May 10 06:25:04.108106 2018] [mpm_prefork:notice] [pid 2721] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Thu May 10 06:25:04.108159 2018] [core:notice] [pid 2721] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 10 06:26:34.197313 2018] [:error] [pid 4830] [client 12.345.678.910:33283] script '/var/www/html/ip_js.php' not found or unable to stat
[Thu May 10 09:31:43.469876 2018] [:error] [pid 4833] [client 10.987.654.321:33441] script '/var/www/html/azenv.php' not found or unable to stat, referer: https://proxyradar.com/
[Thu May 10 10:58:50.528204 2018] [:error] [pid 4831] [client 12.345.678.910:29641] script '/var/www/html/ip_js.php' not found or unable to stat
[Thu May 10 11:33:45.809854 2018] [:error] [pid 4830] [client 63.45.156.111:51080] script '/var/www/html/xmlrpc.php' not found or unable to stat
[Thu May 10 13:48:40.421762 2018] [:error] [pid 7115] [client 63.45.156.111:63327] script '/var/www/html/xmlrpc.php' not found or unable to stat
[Thu May 10 14:59:37.822529 2018] [authz_core:error] [pid 8869] [client 678.213.234.543:48012] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 15:03:48.921784 2018] [:error] [pid 8866] [client 95.213.177.124:42430] script '/var/www/html/azenv.php' not found or unable to stat, referer: https://proxyradar.com/
[Thu May 10 15:56:32.477569 2018] [authz_core:error] [pid 4834] [client 678.213.234.543:49062] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 15:56:44.456824 2018] [authz_core:error] [pid 4834] [client 678.213.234.543:49078] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 15:56:58.228499 2018] [authz_core:error] [pid 4834] [client 678.213.234.543:49098] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 16:00:32.583746 2018] [:error] [pid 8885] [client 47.74.32.28:52608] script '/var/www/html/xmlrpc.php' not found or unable to stat
[Thu May 10 16:24:17.941617 2018] [authz_core:error] [pid 9212] [client 678.213.234.543:49510] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 16:24:22.074146 2018] [authz_core:error] [pid 8885] [client 678.213.234.543:49506] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 16:24:41.846584 2018] [authz_core:error] [pid 9212] [client 678.213.234.543:49516] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 16:25:00.243862 2018] [authz_core:error] [pid 25077] [client 678.213.234.543:49540] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 16:40:31.317110 2018] [mpm_prefork:notice] [pid 2721] AH00169: caught SIGTERM, shutting down
[Thu May 10 16:40:32.250639 2018] [mpm_prefork:notice] [pid 25300] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Thu May 10 16:40:32.250707 2018] [core:notice] [pid 25300] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 10 17:48:24.399568 2018] [authz_core:error] [pid 25332] [client 678.213.234.543:50652] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 17:48:30.668891 2018] [authz_core:error] [pid 25737] [client 678.213.234.543:50662] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 18:07:23.897707 2018] [mpm_prefork:notice] [pid 25300] AH00169: caught SIGTERM, shutting down
[Thu May 10 18:07:24.827552 2018] [mpm_prefork:notice] [pid 26066] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Thu May 10 18:07:24.827619 2018] [core:notice] [pid 26066] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 10 18:29:47.027124 2018] [authz_core:error] [pid 26343] [client 678.213.234.543:51598] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 18:29:53.140145 2018] [authz_core:error] [pid 26336] [client 678.213.234.543:51604] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 19:06:35.736219 2018] [authz_core:error] [pid 26073] [client 678.213.234.543:52228] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 19:18:12.070483 2018] [authz_core:error] [pid 26664] [client 678.213.234.543:52360] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Thu May 10 19:18:17.620305 2018] [authz_core:error] [pid 26828] [client 678.213.234.543:52376] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata

Any help you can provide would be much appreciate, seems like simple stuff to do but just don know what to change to get it all working.

Many thanks,

Fraser

I can confirm same or similar issue.

Nextcloud 13.0.6
mysql
php7.0
Ubuntu 16.04
Apache

I’ve run the mysql commands that I know: oc_file_locks and oc_filecache

I’ve run occ files:scan --all and I cannot delete this ONE file. As a result, my other devices using the NC sync client (desktop) can’t sync as it shows an error “Service temporarily not available”

The difference is that this file was shared from another NC server that has now been removed.

Anyway, if anyone’s got an idea, I’d love to hear it! Otherwise, I’ll just open a bug report as the others I’ve seen aren’t exactly like mine.

TIA.