{"action":"created","issue":{"url":"https://api.github.com/repos/Backblaze/B2_Command_Line_Tool/issues/292","repository_url":"https://api.github.com/repos/Backblaze/B2_Command_Line_Tool","labels_url":"https://api.github.com/repos/Backblaze/B2_Command_Line_Tool/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/Backblaze/B2_Command_Line_Tool/issues/292/comments","events_url":"https://api.github.com/repos/Backblaze/B2_Command_Line_Tool/issues/292/events","html_url":"https://github.com/Backblaze/B2_Command_Line_Tool/issues/292","id":194377683,"number":292,"title":"b2 sync gets \"destination file is newer\"","user":{"login":"kazsulec","id":24458970,"avatar_url":"https://avatars.githubusercontent.com/u/24458970?v=3","gravatar_id":"","url":"https://api.github.com/users/kazsulec","html_url":"https://github.com/kazsulec","followers_url":"https://api.github.com/users/kazsulec/followers","following_url":"https://api.github.com/users/kazsulec/following{/other_user}","gists_url":"https://api.github.com/users/kazsulec/gists{/gist_id}","starred_url":"https://api.github.com/users/kazsulec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazsulec/subscriptions","organizations_url":"https://api.github.com/users/kazsulec/orgs","repos_url":"https://api.github.com/users/kazsulec/repos","events_url":"https://api.github.com/users/kazsulec/events{/privacy}","received_events_url":"https://api.github.com/users/kazsulec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-12-08T16:15:22Z","updated_at":"2016-12-08T21:40:45Z","closed_at":null,"body":"After starting `b2 sync` using command line tool, leaving it to run for a period of time, and then cancelling it, I use `b2 sync --dryRun` to see how more files are needed to be uploaded. Usually, it lists them. Recently, the command I used and the error I received were:\r\n```\r\ntom@tombuntu-HP-G70:/media/tom/FreeAgent Drive/Images/100 Images/Canon Elph100HS/7z$ b2 sync --dryRun . b2://CanonElph100HS/7z\r\nERROR:b2.console_tool:ConsoleTool command error \r\nTraceback (most recent call last):\r\nFile \"build/bdist.linux-x86_64/egg/b2/console_tool.py\", line 896, in run_command\r\nreturn command.run(args)\r\nFile \"build/bdist.linux-x86_64/egg/b2/console_tool.py\", line 700, in run\r\ndry_run=args.dryRun,\r\nFile \"/usr/local/lib/python2.7/dist-packages/logfury/v0_1/trace_call.py\", line 84, in wrapper\r\nreturn function(*wrapee_args, **wrapee_kwargs)\r\nFile \"build/bdist.linux-x86_64/egg/b2/sync/sync.py\", line 211, in sync_folders\r\nsource_folder, dest_folder, args, now_millis, reporter\r\nFile \"build/bdist.linux-x86_64/egg/b2/sync/sync.py\", line 149, in make_folder_sync_actions\r\nsync_type, source_file, dest_file, source_folder, dest_folder, args, now_millis\r\nFile \"build/bdist.linux-x86_64/egg/b2/sync/sync.py\", line 105, in make_file_sync_actions\r\nfor action in policy.get_all_actions():\r\nFile \"build/bdist.linux-x86_64/egg/b2/sync/policy.py\", line 93, in get_all_actions\r\nif self._should_transfer():\r\nFile \"build/bdist.linux-x86_64/egg/b2/sync/policy.py\", line 46, in _should_transfer\r\nreturn self.files_are_different(self._source_file, self._dest_file, self._args)\r\nFile \"build/bdist.linux-x86_64/egg/b2/sync/policy.py\", line 79, in files_are_different\r\nraise DestFileNewer(dest_file.name,)\r\nDestFileNewer: destination file is newer: 2011.7z.006\r\nERROR: destination file is newer: 2011.7z.006\r\ntom@tombuntu-HP-G70:/media/tom/FreeAgent Drive/Images/100 Images/Canon Elph100HS/7z$\r\n```\r\nUsing `--replaceNewer` gets me back to a list.\r\n\r\nBut why is this happening at all? Every file on b2, as a copy of what I'm trying to backup to the cloud, will be newer than the original on my drive. When I view the file named in the error message, I don't see any record of the source system's datetime stamp for the file. What am I failing to understand here?"},"comment":{"url":"https://api.github.com/repos/Backblaze/B2_Command_Line_Tool/issues/comments/265863793","html_url":"https://github.com/Backblaze/B2_Command_Line_Tool/issues/292#issuecomment-265863793","issue_url":"https://api.github.com/repos/Backblaze/B2_Command_Line_Tool/issues/292","id":265863793,"user":{"login":"bwbeach","id":603739,"avatar_url":"https://avatars.githubusercontent.com/u/603739?v=3","gravatar_id":"","url":"https://api.github.com/users/bwbeach","html_url":"https://github.com/bwbeach","followers_url":"https://api.github.com/users/bwbeach/followers","following_url":"https://api.github.com/users/bwbeach/following{/other_user}","gists_url":"https://api.github.com/users/bwbeach/gists{/gist_id}","starred_url":"https://api.github.com/users/bwbeach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwbeach/subscriptions","organizations_url":"https://api.github.com/users/bwbeach/orgs","repos_url":"https://api.github.com/users/bwbeach/repos","events_url":"https://api.github.com/users/bwbeach/events{/privacy}","received_events_url":"https://api.github.com/users/bwbeach/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T21:40:45Z","updated_at":"2016-12-08T21:40:45Z","body":"This is going to take some more investigation.\r\n\r\nI don't see any way the server-side code could drop the file info.  When the request comes in, the file info gets bundled with the content type and content sha1 into a JSON object, which is then stored.  The JSON object is present for all of these files, but is just missing the file info.\r\n\r\nI also don't see how the command-line tool could fail to include file info in the upload or start request.\r\n\r\nPuzzled..."}}
{"actor":{"display_login":"bwbeach"}}