Some JPG / PNG files fail to sync - error server replied:Forbidden

I can not locate a solution to this strange problem where all files types seem to sync successfully with the cloud and with other clients, except certain jpegs or png files. Some image files of this type sync without a problem but others fail. The files that fail are various sizes, image quality, etc. I have nothing blacklisted. I can upload most of these files with the web browser but they fail even if they are already on the server.

Also, this may/may not be related but un-edited cron.php fails with no details but "error"
/usr/bin/php -q /home/captainsinn/public_html/cloud/cron.php
result: {"data":{"message":"Backgroundjobs are using system cron!"},"status":"error"}

Error reported in latest MacOS client under Activity show list of ignored or erroneous files:

9/9/17 11:25:14 AM, Artwork/exterior/Captains Inn ext 006.jpg, Documents/Captain's Inn,Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/exterior/Captains Inn ext 006.jpg - server replied: Forbidden
9/9/17 11:16:26 AM, Artwork/exterior/Captains Inn ext 002.jpg, Documents/Captain's Inn,Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/exterior/Captains Inn ext 002.jpg - server replied: Forbidden
9/9/17 11:16:20 AM, Artwork/exterior/Boathouse ext 001.jpg, Documents/Captain's Inn,Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/exterior/Boathouse ext 001.jpg - server replied: Forbidden
9/9/17 11:13:31 AM, Artwork/exterior/Boathouse ext 002.jpg, Documents/Captain's Inn,Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/exterior/Boathouse ext 002.jpg - server replied: Forbidden
9/9/17 10:58:11 AM, Artwork/New Image/new_logo.png, Documents/Captain's Inn,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/New Image/new_logo.png - server replied: Forbidden
9/9/17 10:58:05 AM, Artwork/New Image/new_logo.jpg, Documents/Captain's Inn,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/New Image/new_logo.jpg - server replied: Forbidden
9/9/17 10:58:02 AM, Artwork/New Image/captainsinn_pen.png, Documents/Captain's Inn,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/New Image/captainsinn_pen.png - server replied: Forbidden
9/9/17 10:21:50 AM, From old cell phones/Motorola Backup/imagejpeg950.jpg, Documents/My Docs,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/My Docs/From old cell phones/Motorola Backup/imagejpeg950.jpg - server replied: Forbidden
9/9/17 10:21:49 AM, From old cell phones/Motorola Backup/1028092140a.jpg, Documents/My Docs,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/My Docs/From old cell phones/Motorola Backup/1028092140a.jpg - server replied: Forbidden
9/9/17 10:21:49 AM, From old cell phones/Motorola Backup/fiona bday 1c.jpg, Documents/My Docs,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/My Docs/From old cell phones/Motorola Backup/fiona bday 1c.jpg - server replied: Forbidden
Forbidden
9/9/17 10:21:10 AM, Credit Card Procedures.docx, ownCloud/Documents/Tutto,Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Tutto/Credit Card Procedures.docx - server replied: Locked
9/9/17 10:21:09 AM, ..DSStore, ownCloud/Documents/Tutto,File is listed on the ignore list.

Steps to reproduce

  1. Create sub-directory with various types of image files: .ai, .pdf, .jpg, .png
  2. Sync Main folder with this sub-directory along with many other sub directories
  3. Have tried to remove folder, remove sync connection, add folder back to documents directory and create new sync connection
  4. Have tried to copy files up to cloud folder with web browser.

Expected behaviour

Expect all subfolders and files to sync

Actual behaviour

All sub-directories sync without problem
Some Files of type PNG and JPG fail to sync. Errors reported for those "either forbidden or blacklisted"
Copying files with browser works but while syncing file is reported as failed to sync with blacklist / forbidden errors
Files are varies sizes from 100s kb to 10s MB
Compared files and meta data of images but I can not see any difference or reason for failing

Server configuration

Operating system:
Apache 2.4.25

Web server:
Godaddy Linux based

Database:
SQL Lite

PHP version:
PHP version 5.6

ownCloud version: (see ownCloud admin page)
ownCloud 9.1.6 (production)

Updated from an older ownCloud or fresh install:
This is a fresh install

Where did you install ownCloud from:
Installed via Web

Signing status (ownCloud 9.0 and above):

The content of config/config.php:
<?php
$CONFIG = array (
'instanceid' => 'oct1ifogr5wq',
'passwordsalt' => 'o0//wNRpxxxxx3sFgrpZFspkfKkApCc',
'secret' => 'Nk3ZQ54xxxxpZOqiAlU2J+XVzmzBJEIHl3CZpHJ21Lga1',
'trusted_domains' =>
array (
0 => 'www.capxxxxinn.com',
1 => 'capxxxxxxnn.com',
),
'datadirectory' => '/home/cxxxxxxn/public_html/cloud/data',
'overwrite.cli.url' => 'https://www.cxxxxxxxxnn.com/cloud',
'dbtype' => 'sqlite3',
'version' => '9.1.6.2',
'logtimezone' => 'UTC',
'installed' => true,
'check_for_working_htaccess' => true,
'updater.secret' => '$2y$10$53FxxxxxxxxxxnHUPQHewFay7cGWot22TEFmKN6exbdGH5gBwhi',
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
);

{
    "basic": {
        "license key": "",
        "date": "Sat, 09 Sep 2017 18:09:41 +0000",
        "ownCloud version": "9.1.6.2",
        "ownCloud version string": "9.1.6",
        "ownCloud edition": "",
        "server OS": "Linux",
        "server OS version": "Linux p3plcpnl0656.prod.phx3.secureserver.net 2.6.32-673.26.1.lve1.4.30.el6.x86_64 #1 SMP Wed Jun 21 19:37:37 EDT 2017 x86_64",
        "server SAPI": "cgi-fcgi",
        "webserver version": "Apache\/2.4.25",
        "hostname": "www.cxxxxxxnn.com",
        "user count": 3,
        "user directories": 3,
        "logged-in user": "admin"
    },
    "integritychecker": {
        "passing": true,
        "enabled": false,
        "result": []
    },
    "apps": [
        {
            "id": "templateeditor",
            "name": "Mail Template Editor",
            "description": "This application enables ownCloud to send custom emails to users. By default, ownCloud can send password reset emails, shared file and share link emails, activity stream notifications and more. By configuring an email server, admins can enable these emails to be sent. By providing an email address on their Personal page, users can receive these emails. By default, all of these emails will contain ownCloud email templates. The template editor allows admins to change email templates for emails sent by the system. While it is possible to manually change email templates within ownCloud, this app makes it far simpler by updating this via the ownCloud admin panel. More information is available in the Mail Template Editor documentation.",
            "licence": "AGPL",
            "author": "J\u00f6rn Dreyer",
            "version": "0.1",
            "dependencies": {
                "owncloud": {
                    "@attributes": {
                        "min-version": "9.1",
                        "max-version": "9.1"
                    }
                }
            },
            "shipped": "true",
            "default_enable": "",
            "info": [],
            "remote": [],
            "public": [],
            "types": [],
            "repair-steps": {
                "install": [],
                "pre-migration": [],
                "post-migration": [],
                "live-migration": [],
                "uninstall": []
            },
            "background-jobs": [],
            "two-factor-providers": [],
            "groups": null,
            "active": true,
            "internal": true,
            "level": 200,
            "removable": false,
            "update": null,
            "preview": "\/cloud\/apps\/templateeditor\/img\/app.svg",
            "previewAsIcon": true,
            "appconfig": {
                "installed_version": "0.1",
                "types": "",
                "enabled": "yes"
            }
        },
        {
            "id": "updatenotification",
            "name": "Update notification",
            "description": "Displays update notifications for ownCloud and provides the SSO for the updater.",
            "licence": "AGPL",
            "author": "Lukas Reschke",
            "version": "0.2.1",
            "namespace": "UpdateNotification",
            "default_enable": "",
            "dependencies": {
                "owncloud": {
                    "@attributes": {
                        "min-version": "9.1",
                        "max-version": "9.1"
                    }
                }
            },
            "background-jobs": {
                "job": "OCA\\UpdateNotification\\Notification\\BackgroundJob"
            },
            "info": [],
            "remote": [],
            "public": [],
            "types": [],
            "repair-steps": {
                "install": [],
                "pre-migration": [],
                "post-migration": [],
                "live-migration": [],
                "uninstall": []
            },
            "two-factor-providers": [],
            "groups": null,
            "active": true,
            "internal": true,
            "level": 200,
            "removable": false,
            "update": null,
            "appconfig": {
                "installed_version": "0.2.1",
                "types": "",
                "enabled": "yes"
            }
        },
        {
            "id": "comments",
            "name": "Comments",
            "description": "Files app plugin to add comments to files",
            "licence": "AGPL",
            "author": "Arthur Schiwon, Vincent Petry",
            "default_enable": "",
            "version": "0.3.0",
            "dependencies": {
                "owncloud": {
                    "@attributes": {
                        "min-version": "9.1",
                        "max-version": "9.1"
                    }
                }
            },
            "types": [
                "logging"
            ],
            "info": [],
            "remote": [],
            "public": [],
            "repair-steps": {
                "install": [],
                "pre-migration": [],
                "post-migration": [],
                "live-migration": [],
                "uninstall": []
            },
            "background-jobs": [],
            "two-factor-providers": [],
            "groups": null,
            "active": true,
            "internal": true,
            "level": 200,
            "removable": false,
            "update": null,
            "appconfig": {
                "installed_version": "0.3.0",
                "types": "logging",
                "enabled": "yes"
            }
        },
        {
            "id": "files_external",
    
I
*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

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.

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

Are you using encryption: yes/no
NO

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

LDAP configuration (delete this part if not used)

Client configuration

Browser:
Safari 10.1.2

Operating system:
MacOS 10.10.5

Logs

Web server error log

ownCloud log (data/owncloud.log)

{"reqId":"WbQlFDI@sLwAAGB4aPsAAABA","remoteAddr":"107.199.77.117","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 423 \\\"Documents\\\/Captains\\\" is locked\",\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\FileLocked\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(640): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->move('Documents\\\/Capta...', 'Documents\\\/Capta...')\\n#1 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpMove(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#2 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#3 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:MOVE', Array)\\n#4 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#5 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(61): Sabre\\\\DAV\\\\Server->exec()\\n#6 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/remote.php(164): require_once('\\\/home\\\/captainsi...')\\n#7 {main}\",\"File\":\"\\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ObjectTree.php\",\"Line\":252,\"User\":\"admin\"}","level":4,"time":"2017-09-09T17:29:56+00:00","method":"MOVE","url":"\/cloud\/remote.php\/webdav\/Documents\/Captains","user":"admin"}
{"reqId":"T5KoZul\/XKPAZ7KyBQJh","remoteAddr":"","app":"PHP","message":"Undefined index: REQUEST_URI at \/home\/captainsinn\/public_html\/cloud\/lib\/base.php#175","level":3,"time":"2017-09-09T17:30:01+00:00","method":"--","url":"--","user":"--"}
{"reqId":"WbQlJzI@sLwAAFZ4LbEAAACE","remoteAddr":"107.199.77.117","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 423 \\\"Documents\\\/Captains\\\" is locked\",\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\FileLocked\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->delete()\\n#1 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(285): Sabre\\\\DAV\\\\Tree->delete('Documents\\\/Capta...')\\n#2 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpDelete(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#4 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(459): Sabre\\\\Event\\\\EventEmitter->emit('method:DELETE', Array)\\n#5 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(248): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#6 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(61): Sabre\\\\DAV\\\\Server->exec()\\n#7 \\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/remote.php(164): require_once('\\\/home\\\/captainsi...')\\n#8 {main}\",\"File\":\"\\\/home\\\/captainsinn\\\/public_html\\\/cloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php\",\"Line\":283,\"User\":\"admin\"}","level":4,"time":"2017-09-09T17:30:15+00:00","method":"DELETE","url":"\/cloud\/remote.php\/webdav\/Documents\/Captains","user":"admin"}
{"reqId":"BionZhQPtZrvtndpwhjO","remoteAddr":"","app":"PHP","message":"Undefined index: REQUEST_URI at \/home\/captainsinn\/public_html\/cloud\/lib\/base.php#175","level":3,"time":"2017-09-09T17:45:01+00:00","method":"--","url":"--","user":"--"}
{"reqId":"WbQovzI@sLwAAHNw-bMAAADS","remoteAddr":"73.231.69.175","app":"PHP","message":"Class 'OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin' not found at \/home\/captainsinn\/public_html\/cloud\/remote.php#54","level":3,"time":"2017-09-09T17:45:39+00:00","method":"PROPFIND","url":"\/cloud\/remote.php\/webdav\/Tutto\/Desktop","user":"--"}
{"reqId":"MA91d3jLXvtgNhvWiEry","remoteAddr":"","app":"PHP","message":"Undefined index: REQUEST_URI at \/home\/captainsinn\/public_html\/cloud\/lib\/base.php#175","level":3,"time":"2017-09-09T18:00:01+00:00","method":"--","url":"--","user":"--"}
{"reqId":"mgN\/a\/ELxELxIw4dlIRM","remoteAddr":"","app":"PHP","message":"Undefined index: REQUEST_URI at \/home\/captainsinn\/public_html\/cloud\/lib\/base.php#175","level":3,"time":"2017-09-09T18:15:01+00:00","method":"--","url":"--","user":"--"}

Browser log

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

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

Hi,

the word "locked" in the error message is a sign that something is wrong with file locking.

Are you using redis or apcu? If not - you should.

another thing I noticed, your filenames have spaces in them.

Do you have your configuration set to UTF-8?

dmitry,

Thank you for the response!

I did enable apcu in the PHP extensions. I updated the config.php file with 'memcache.local' => '\OC\Memcache\APCu'. The character set was already set for UTF-8.
The memory error went away on the admin screen. I ran "Restart Sync" from the GUI.

The "Lock" file errors still appear and i'm still not able to sync some jpg, .tif, or png file types and one word document ".docx". It's still reporting "Locked", "forbidden" or "blacklisted". Also receiving an error from the cron.php job that runs every 15 mins on the server. (Not sure if that is related to the above problem).

I am able to upload via the browser a jpg file that failed. The uploaded file is readable. The error for that particular file is "Continue blacklisting: Error transferring.... Forbidden"

*** Truncated from 167 sync errors "
9/11/17 2:06:30 PM, Monterey Cnty Tax/2016 - Tot Qtr 2.jpg, Documents/Captain's Inn,The item is not synced because of previous errors: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Monterey Cnty Tax/2016 - Tot Qtr 2.jpg - server replied**: **Forbidden****
9/11/17 2:06:30 PM, Marketing/PowerMarketing/20160504_w9 update.jpg, Documents/Captain's Inn,The item is not synced because of previous errors: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Marketing/PowerMarketing/20160504_w9 update.jpg - server replied: Forbidden
9/11/17 2:06:30 PM, Dinner Menus/SaturdayDinnerMenu.jpg, Documents/Captain's Inn,The item is not synced because of previous errors: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Dinner Menus/SaturdayDinnerMenu.jpg - server replied: Forbidden
9/11/17 2:06:30 PM, Dinner Menus/Captain’s Inn Thanksgiving dinner menu3.png, Documents/Captain's https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Company docs/Original Docs/Photos/Originals/captains living room.tif-chunking-3637479487-8-2 - server replied: Locked ("Documents/Captains Inn/Company docs/Original Docs/Photos/Originals/captains living room.tif" is locked)
9/11/17 2:06:30 PM,Company docs/Original Docs/Photos/PhotosCaptInn/xguestsunset.JPG, Documents/Captain's Inn,The item is not synced because of previous errors: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Company docs/Original Docs/Photos/PhotosCaptInn/xguestsunset.JPG - server replied: Forbidden
9/11/17 2:01:19 PM, Credit Card Procedures.docx, ownCloud/Documents/Tutto,Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Tutto/Credit Card Procedures.docx - server replied: Locked

What is your background job service? cron or Ajax? If it's Ajax switch to cron and see if it solves your problem

No, its cron on the server...

/usr/bin/php -q /home/captainsinn/public_html/cloud/cron.php

results in
{"data":{"message":"Backgroundjobs are using system cron!"},"status":"error"}

This is the strange thing:

All files are in the same directory. All files posted around the same date. I own all files. None are locked and the Exif information is all the same.

File: Captains Inn ext 006.jpg 8.5 MB fails
File: Captains Inn ext 005.jpg 13.5 MB successful

File: Captains Inn ext 003.jpg 12 MB successful
File: Captains Inn ext 002.jpg 7.8 MB fails

Errors are consistent for 150+ images. Most are successful but some fail through the desktop interface. Uploading through any browser is successful for the failed images but the sync still fails.

9/12/17 8:28:53 AM, Artwork/exterior/Captains Inn ext 006.jpg, Documents/Captain's Inn,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/exterior/Captains Inn ext 006.jpg - server replied: Forbidden

9/12/17 8:22:10 AM, Artwork/exterior/Boathouse ext 002.jpg, Documents/Captain's Inn,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/exterior/Boathouse ext 002.jpg - server replied: Forbidden
9/12/17 8:19:53 AM, Artwork/exterior/Captains Inn ext 002.jpg, Documents/Captain's Inn,Continue blacklisting: Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/exterior/Captains Inn ext 002.jpg - server replied: Forbidden

Could you install a redis server? This usualy helps with "file locked" issues.

here is how to do this

https://doc.owncloud.com/server/10.0/admin_manual/configuration/server/caching_configuration.html#redis

or here

https://doc.owncloud.com/server/10.0/admin_manual/configuration/server/caching_configuration.html#configuring-transactional-file-locking

Ok. I'll switch to redis and see what happens. Thank you again

No Problem, hope it helps

Nope same problem.. Here's my config if you see anything wrong let me know:

?php
$CONFIG = array (
'instanceid' => 'oct1ifogr5wq',
'passwordsalt' => 'oxxxxxxkfKkApCc',
'secret' => ' xxx',
'trusted_domains' =>
array (
0 => 'www.captainsinn.com',
1 => 'captainsinn.com',
),
'datadirectory' => '/home/captainsinn/public_html/cloud/data',
'overwrite.cli.url' => 'https://www.captainsinn.com/cloud',
'dbtype' => 'sqlite3',
'version' => '9.1.6.2',
'logtimezone' => 'UTC',
'installed' => true,
'check_for_working_htaccess' => true,
'theme' => '',
'loglevel' => 1,
'maintenance' => false,
'filelocking.enabled' => true,
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => [
'host' => 'localhost',
'port' => 6379,
'timeout' => 0.0,
'password' => '', // Optional, if not defined no password will be used.
],
);

try this instead of what you have. I am not sure if this brackets work "["

'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
 'redis' => array(
      'host' => 'localhost',
      'port' => 6379,
       ),

also it always helps to restart your web server when changing configuration :slight_smile:

nope nope nope.. And i have no way to restart the server its on godaddy shared hosting.

Now, I'm getting Redis errors:

Info cli Memcache \OC\Memcache\APCu not available for distributed cache 2017-09-12T22:20:01+00:00

Info cli Memcache \OC\Memcache\APCu not available for local cache 2017-09-12T22:20:01+00:00

Fatal webdav Exception: {"Message":"Redis server went away","Exception":"RedisException","Code":0,"Trace":"#0 \/home\/captainsinn\/public_html\/cloud\/lib\/private\/Memcache\/Redis.php(113): Redis->incrBy('33ed47bdcb7038f...', 1)\n#1 \/home\/captainsinn\/public_html\/cloud\/lib\/private\/Lock\/MemcacheLockingProvider.php(72): OC\Memcache\Redis->inc('files\/844e36445...')\n#2 \/home\/captainsinn\/public_html\/cloud\/lib\/private\/Files\/Storage\/Common.php(668): OC\Lock\MemcacheLockingProvider->acquireLock('files\/844e36445...', 1)\n#3 \/home\/captainsinn\/public_html\/cloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php(584): OC\Files\Storage\Common->acquireLock('files\/Documents...', 1, Object(OC\Lock\MemcacheLockingProvider))\n#4 \/home\/captainsinn\/public_html\/cloud\/lib\/private\/Files\/Storage\/Wrapper\/Wrapper.php(584): OC\Files\Storage\Wrapper\Wrapper->acquireLock('files\/Documents...', 1, Object(OC\Lock\MemcacheLockingProvider))\n#5 \/home\/captainsinn\/public_html\/cloud\/lib\/private\/Files\/View.php(1922): OC\Files\Storage\Wrapper\Wrapper->acquireLock('files\/Documents...', 1, Object(OC\Lock\MemcacheLockingProvider))\n#6 \/home\/captainsinn\/public_html\/cloud\/lib\/private\/Files\/View.php(2024): OC\Files\View->lockPath('\/Documents\/Tutt...', 1, false)\n#7 \/home\/captainsinn\/public_html\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/Node.php(334): OC\Files\View->lockFile('\/Documents\/Tutt...', 1)\n#8 \/home\/captainsinn\/public_html\/cloud\/apps\/dav\/lib\/Connector\/Sabre\/LockPlugin.php(65): OCA\DAV\Connector\Sabre\Node->acquireLock(1)\n#9 [internal function]: OCA\DAV\Connector\Sabre\LockPlugin->getLock(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#10 \/home\/captainsinn\/public_html\/cloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#11 \/home\/captainsinn\/public_html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(446): Sabre\Event\EventEmitter->emit('beforeMethod', Array)\n#12 \/home\/captainsinn\/public_html\/cloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(248): Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))\n#13 \/home\/captainsinn\/public_html\/cloud\/apps\/dav\/appinfo\/v1\/webdav.php(61): Sabre\DAV\Server->exec()\n#14 \/home\/captainsinn\/public_html\/cloud\/remote.php(164): require_once('\/home\/captainsi...')\n#15 {main}","File":"\/home\/captainsinn\/public_html\/cloud\/lib\/private\/Memcache\/Redis.php","Line":113,"User":"tutto"} 2017-09-12T22:17:55+00:00

not good. How can you edit your config.php file without access to command line? O_O

Godaddy uses cPanel which gives me access to files that I can edit. I also can ssh into my account but I have no admin privileges like to restart Apache or run admin commands that could effect other users running on the same server. I can create cron jobs through cPanel.

I actually think this is another problem why certain files don't sync. Maybe because the cron is failing or somewhere there is a list with files that are locked/blacklisted and it won't flush out or unlock them.

I might just reinstall and see if it fixes the problem

Your hoster probably just don't have APCu and Redis installed which is quite common for shared hosters. You probably have to move on to a host where you get more permissions / access.

Something that helped for me was to remove the troublesome files out of the ownCloud folder to a local folder, wait for the ownCloud client to sync, then move the files back, then force a sync and look at the error log.

I only had the "server replied: Forbidden" errors on two files. The error happened for me after opening the two files on my computer, then moving the files to a new location, all within a few seconds.

Thank you for the suggestion. I tried and it reports the file is locked.

11/28/17 9:52:29 AM, Artwork/exterior/Captains Inn ext 004.tiff, Documents/Captain's Inn,Error transferring https://www.captainsinn.com/cloud/remote.php/webdav/Documents/Captains Inn/Artwork/exterior/Captains Inn ext 004.tiff-chunking-3116235801-22-2 - server replied: Locked ("Documents/Captains Inn/Artwork/exterior/Captains Inn ext 004.tiff" is locked)

I have not opened or edited the file in months. I was able to upload via a browser. But it still tries to sync from the desktop client and fails. It's a tiff file of about 200 MB. I'm not sure whats going on and whether its the file format or the size or cloud issue. I can't see any difference when looking at the file compared to other tif images to see any difference and the file is differently not locked.

It was happening with most image formats: jpg, png, and tif. Errors would be that the file is Blacklisted but I did basically what you suggested in the past and now those files sync. Now its just this one file.