Ghosts files still present after a file as been moved

Steps to reproduce

1.Owncloud client is installed on mac os
2.Some files are moved to another folder
3.These files are still present in the original folder via the web interface like ghost files (they should not be anymore present in this folder after the move)
3.We can't delete them manually
4.We have a 404 not found in the apache log when trying to access the ghost files
4.The files are not present in the physical server and in the table oc_filecache
5.The oc files:scan doesn't delete them from the original folder
6.While trying synchronisation with a client we have the message : the file was delete from the server

Expected behaviour

Tell us what should happen
The file should be deleted from the orignal folder after the move.
The ghost file should not be visible avec the occ scan

Actual behaviour

Tell us what happens instead
The file is still present in the original folder in the web interface but as expected not on the physical server

Server configuration

Operating system:
Debian Jessie

Web server:

Mysql 5.6

PHP version:

ownCloud version: (see ownCloud admin page)
9.1.5 (stable)

Login as admin user into your ownCloud and access 
paste the results into and puth the link here.
`No errors have been found.``

**The content of config/config.php:**

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

    "system": {
        "updatechecker": false,
        "instanceid": "***********",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
        "datadirectory": "\/var\/www\/owncloud\/data",
        "overwrite.cli.url": "***********",
        "dbtype": "mysql",
        "version": "",
        "theme": "***********",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Paris",
        "installed": true,
        "mail_smtpmode": "sendmail",
        "mail_from_address": "cloud",
        "mail_domain": "***********",
        "allow_user_to_change_display_name": true,
        "appstore.experimental.enabled": false,
        "loglevel": 2,
        "maintenance": false,
        "session_keepalive": true,
        "singleuser": false

**List of activated apps:**

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.
- comments: 0.3.0
- configreport: 0.1.1
- dav: 0.2.7
- encryption: 1.3.0
- federatedfilesharing: 0.3.0
- files: 1.5.1
- files_pdfviewer: 0.8.1
- files_sharing: 0.10.0
- files_texteditor: 2.1
- files_trashbin: 0.9.0
- files_versions: 1.3.0
- files_videoplayer: 0.9.8
- gallery: 15.0.0
- notifications: 0.3.0
- provisioning_api: 0.5.0
- systemtags: 0.3.0
- templateeditor: 0.1
- updatenotification: 0.2.1
- activity
- external
- federation
- files_antivirus
- files_external
- firstrunwizard
- user_external
- user_ldap

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...


Operating system:


Web server error log

Insert your webserver log here
HTTP/1.1" 404"

#### ownCloud log (data/owncloud.log)

Insert your ownCloud log here
We just have logs when we try a preview of a picture :
"app":"gallery","message":"ExceptionCould not locate node linked to ID: 337839","level":3,

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

Temporary solution is to backup the folder, remove the folder with the ghost files et copy back the files finishing with a occ scan


Thanks for the response. Do you know when Owncloud 9.1.7 will be released ?