Giter VIP home page Giter VIP logo

onedrive-d-old's People

Contributors

avlubimov avatar decarabas avatar drizzt avatar kissarat avatar kpj avatar ledominator avatar nicoinn avatar vk5ztv avatar xybu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onedrive-d-old's Issues

Wild memory usage when there are many folders in remote repo

In April 1 wip branch, each dir is scanned by a single thread.

A single skydrive-cli -ls --objects process eats roughly 18MB memory. The test OneDrive repo has 13 dirs and there is chance that 200MB+ memory is used simultaneously.

May introduce another Queue and fixed number of scanner workers to have the memory usage controlled.

After scanning the memory usage is pretty good:

  • inotifywait process eats less than 1M
  • onedrive-d with watcher on eats ~15MB memory
  • if all 4 workers are on, they take roughly 18 * 4 = 72MB memory in total

Dropbox-d takes 70MB when there is no task at hand, and Ubuntu One eats roughly 45MB at idle.

user --chuid not found

$ sudo service onedrive-d start
 * Starting daemon onedrive-d
start-stop-daemon: user '--chuid' not found

Looks like this isn't working:

DAEMON_USER="$SUDO_USER"
if [ "${#DAEMON_USER}" -eq "0" ]; then
    DAEMON_USER="$USER"
fi

Though I couldn't tell you why.

I'm on Ubuntu 14.04 x64, onedrive-d works fine.

GUI app not working (?) on lubuntu 14.04

Hello!
So quickly - I can install, login, choose my folder to sync but ... the app is not working. Nothing is uploading/downloading and the icon doesn't appear on tray. The folder name is simple - onedrive .It's inside my home folder.

Reinstallation log:
http://pastebin.com/zAdREnvb
Starting demon log:
http://pastebin.com/hLAejdZQ

And 1 more thing about onedrive-d working in console. onedrive-cli tree shows the tree. I can upload files using onedrive-cli put too. However, it's impossible to upload folders.
Waiting 4 reply.

onedrive-d.py cannot correctly handle MOVED_FROM events

MOVED_FROM + MOVED_TO = mv command in Linux
MOVED_FROM singly means soft deletion
DELETED is the hard deletion.

Say, when deleting 6 files simultaneously, the daemon can only correctly handle 4 of them because of the buggy buf mechanism.

Need a better algorithm.

Fedora 20: Exception during initial sync

started onedrive-d manuall and got this stacktrace. Seems there is a Problem in handling umlauts. (\xc3\x9c is supposed to be a 'Ü')

Thread-2: /home/hades32/OneDrive/Familienbereich/Background (1).jpg Old_mtime is 1409557306.54 and new_mtime is 1352499184 and is changed to 1352499184.0
Thread-2: executed task: Task(get, /home/hades32/OneDrive/Familienbereich/Background (1).jpg, /Familienbereich/Background (1).jpg)
Thread-2: /home/hades32/OneDrive/Familienbereich/TUID_19173760_1_thomas.pdf Old_mtime is 1409557311.82 and new_mtime is 1370628636 and is changed to 1370628636.0
Thread-2: executed task: Task(get, /home/hades32/OneDrive/Familienbereich/TUID_19173760_1_thomas.pdf, /Familienbereich/TUID_19173760_1_thomas.pdf)
Traceback (most recent call last):
File "/usr/bin/onedrive-cli", line 9, in
load_entry_point('python-onedrive==14.08.0', 'console_scripts', 'onedrive-cli')()
File "/usr/lib/python2.7/site-packages/onedrive/cli_tool.py", line 310, in main
contents = api.get(resolve_path(optz.file), byte_range=optz.byte_range)
File "/usr/lib/python2.7/site-packages/onedrive/cli_tool.py", line 239, in
resolve_path = ( (lambda s: id_match(s) or resolve_path_wrap(s))
File "/usr/lib/python2.7/site-packages/onedrive/cli_tool.py", line 238, in
resolve_path_wrap = lambda s: api.resolve_path(s and s.replace('', '/').strip('/'))
File "/usr/lib/python2.7/site-packages/onedrive/api_v5.py", line 482, in resolve_path
raise DoesNotExists(root_id, path[i:])
onedrive.api_v5.DoesNotExists: (u'folder.1fd9b66b81b450c4.1FD9B66B81B450C4!833', [u'\u0102\x9cbergabeprotokol.tif'])
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/site-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/components.py", line 123, in run
self.consume(task)
File "/usr/lib/python2.7/site-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/components.py", line 87, in consume
old_mtime = os.stat(t.p1).st_mtime
OSError: [Errno 2] No such file or directory: '/home/hades32/OneDrive/Familienbereich/\xc3\x9cbergabeprotokol.tif'

Select folders for Sync

Hey,
is it possible to excluded some folders?
something like the “selective sync” feature in Dropbox...

Unicode (UTF-8) problem

There is some problem with unicode file names...

OSError: [Errno 2] Directory or file doesn't exist: '/home/kubik256/OneDrive/Documents/odstoupen\xc3\xad od smlouvy ve 14ti denni lhute.docx'

Instead of \xc3\xad there has to be char í ...that makes the fail :(

For now i'll fix that by renaming that file directly inside OneDrive web portal, but for future it will need some fix ;)

Thanks, BR.

onedrive-cli fails on ubuntu 14.04

dgp@dgp-p6803w:$ onedrive-cli tree
Traceback (most recent call last):
File "/usr/local/bin/onedrive-cli", line 9, in
load_entry_point('python-onedrive==14.08.0', 'console_scripts', 'onedrive-cli')()
File "/usr/local/lib/python2.7/dist-packages/onedrive/cli_tool.py", line 236, in main
api = api_v5.PersistentOneDriveAPI.from_conf(optz.config)
File "/usr/local/lib/python2.7/dist-packages/onedrive/conf.py", line 46, in from_conf
with open(path, 'rb') as src:
IOError: [Errno 2] No such file or directory: '/home/dgp/.lcrc'
dgp@dgp-p6803w:
$ find . -name .lcrc -ls
find: `./.config/menus': Permission denied
dgp@dgp-p6803w:~$

Cannot select local folder

Running Lubuntu 14.04
After entering onedrive-d i get the pop-up to choose a local folder which exists.
I cannot select however any folder. In th terminal screen this message appears:

/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/prefs.py:296: GtkWarning: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
gtk.main()
/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/prefs.py:296: Warning: /build/buildd/glib2.0-2.40.0/./gobject/gtype.c:4210: type id '0' is invalid
gtk.main()
/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/prefs.py:296: Warning: can't peek value table for type '' which is not currently referenced
gtk.main()
/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/prefs.py:296: GtkWarning: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
gtk.main()
/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/prefs.py:296: Warning: /build/buildd/glib2.0-2.40.0/./gobject/gtype.c:4210: type id '0' is invalid
gtk.main()
/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/prefs.py:296: Warning: can't peek value table for type '' which is not currently referenced
gtk.main()
OneDrive-d was not authenticated or properly configured. Exit.
Exception ImportError: 'No module named onedrive' in <bound method PersistentOneDriveAPI.del of <onedrive.api_v5.PersistentOneDriveAPI object at 0xb597d7ec>> ignored

How to solve this?

Unable to start after fresh install

I'm on Ubuntu x64. I downloaded and installed, and immediately got the following error:

Traceback (most recent call last):
  File "/usr/local/bin/onedrive-d", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: PyYAML

The same error occurs if I run onedrive-d, any ideas?

Errno 2 while trying to start daemon

I'm running Arch Linux and I tried to run master and wip but they crash with Errno 2.

vistaus@yoga13:/fromsvngit/onedrive-d$ sudo onedrive-d
Traceback (most recent call last):
File "/usr/bin/onedrive-d", line 9, in
load_entry_point('onedrive-d==0.8', 'console_scripts', 'onedrive-d')()
File "/usr/lib/python2.7/site-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/daemon.py", line 169, in main
subp = subprocess.Popen(["onedrive-auth"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 709, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
vistaus@yoga13:
/fromsvngit/onedrive-d$

I've installed all the dependencies it needs. I also tried to run it with Python 3 but it needs to be updated for Python 3.

Why is it crashing and can I fix it somehow?

Bug when moving files swiftly

Say, there is a file at /a/b/cc.c
mv /a/b/cc.c /a
mv /a/cc.c /a/b/cc.c

And daemon will say the file not found when performing synchronization.

onedrive-d freezes; requires relogin on each launch

Every time I launch onedrive-d from the terminal, it will work for a while but then freeze after a number of files. Once it hasn't done anything for a number of minutes, I can only press Control-C to kill the process, and then it returns something like this:

Traceback (most recent call last):
File "/usr/local/bin/onedrive-d", line 9, in
load_entry_point('onedrive-d==0.8', 'console_scripts', 'onedrive-d')()
File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/daemon.py", line 190, in main
OneDrive_StatusIcon(API).run()
File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/daemon.py", line 145, in run
gtk.main()
KeyboardInterrupt

Then, when I re-launch onedrive-d, it requires that I re-login to my Microsoft account.

What's the deal?

Cannot sync files nested more than 2 levels

I am unable to retrieve/sync anything that is contained in folders nested more than two levels.

Examples:
onedrive/folder1/folder2/* = all files and folders are synced correctly
onedrive/folder1/folder2/folder3/... = folders are synced correctly but only files contained into folder1 are synced

Folders are scanned by onedrive-d but nothing is downloaded. I tested different folder structures and I can reproduce this.

I run Mint 17 Cinnamon 64bit and the local Onedrive folder is on ext4 partition, but it is the same with a NTFS partition.

Fedora 20: service script not working

The service script seems not to work on Fedora:

[hades32@acer onedrive-d]$ sudo service onedrive-d start
[sudo] password for hades32:
/etc/init.d/onedrive-d: line 26: log_daemon_msg: command not found
/etc/init.d/onedrive-d: line 27: start-stop-daemon: command not found
/etc/init.d/onedrive-d: line 28: log_end_msg: command not found

Error: Reached stack-limit of 50

Thread-2: executed task: Task(get, /home/<user>/Documents/onedrive/Documents/ConfigImages/back_arrow.png, /Documents/ConfigImages/back_arrow.png)
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/components.py", line 121, in run
    self.consume(task)
  File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/components.py", line 110, in consume
    AGENT.add_message(title = "OneDrive-d", text = t.p2 + " was updated.")
  File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/daemon.py", line 136, in add_message
    self.last_message.show()
Error: GDBus.Error:org.freedesktop.DBus.GLib.UnmappedError.NotifyOsd.Code1: Reached stack-limit of 50

^CTraceback (most recent call last):
  File "/usr/local/bin/onedrive-d", line 9, in <module>
    load_entry_point('onedrive-d==0.8', 'console_scripts', 'onedrive-d')()
  File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/daemon.py", line 190, in main
    OneDrive_StatusIcon(API).run()
  File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.8-py2.7.egg/onedrive_d/daemon.py", line 145, in run
    gtk.main()

Cannot select folder on setup

When I select sync folder on setup, the window disappears. I use Kubuntu Trusty.
here is the error log:

usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/prefs.py:296: GtkWarning: gtk_tree_model_filter_get_value: assertion 'GTK_TREE_MODEL_FILTER (model)->priv->stamp == iter->stamp' failed
  gtk.main()
/usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/prefs.py:296: Warning: /build/buildd/glib2.0-2.40.0/./gobject/gtype.c:4210: type id '0' is invalid
  gtk.main()
/usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/prefs.py:296: Warning: can't peek value table for type '<invalid>' which is not currently referenced
  gtk.main()

inotifywait not exiting after program exit

Perhaps this is by design, but whenever I close onedrive-d (either via Ctrl-C or right click on statubar icon -> Exit), it leaves the spawned inotifywait running. If the program is launched and closed several times, the same number of inotifywaits keep running. Running Ubuntu 14.04.

UBUNTU problems with some characters in filenames outside latin alphabet

Can't sync some files.

Traceback (most recent call last): File "/usr/local/bin/onedrive-cli", line 9, in <module> load_entry_point('python-onedrive==14.08.0', 'console_scripts', 'onedrive-cli')() File "/usr/local/lib/python2.7/dist-packages/onedrive/cli_tool.py", line 310, in main contents = api.get(resolve_path(optz.file), byte_range=optz.byte_range) File "/usr/local/lib/python2.7/dist-packages/onedrive/cli_tool.py", line 239, in <lambda> resolve_path = ( (lambda s: id_match(s) or resolve_path_wrap(s)) \ File "/usr/local/lib/python2.7/dist-packages/onedrive/cli_tool.py", line 238, in <lambda> resolve_path_wrap = lambda s: api.resolve_path(s and s.replace('\\', '/').strip('/')) File "/usr/local/lib/python2.7/dist-packages/onedrive/api_v5.py", line 482, in resolve_path raise DoesNotExists(root_id, path[i:]) onedrive.api_v5.DoesNotExists: (u'folder.af9e3be076e98b4e.AF9E3BE076E98B4E!937', [u'Modlitwa do Matki Boskiej Cz\xc4\x99stochowskiej.docx']) Exception in thread Thread-2: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/components.py", line 123, in run self.consume(task) File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/components.py", line 87, in consume old_mtime = os.stat(t.p1).st_mtime OSError: [Errno 2] Nie ma takiego pliku ani katalogu: '/home/ljasinskipl/Cloud/Microsoft OneDrive/MBNP/Modlitwa do Matki Boskiej Cz\xc4\x99stochowskiej.docx'

Error after Authentication

The application does not proceed after the OAuth page redirects. This is the error:
(Could be an error with the python-onedrive package?

TypeError: init() got an unexpected keyword argument 'ssl_version'

Notifies many updates when nothing has changed

WIP branch and release both notify numerous updates, but nothing has changed in the files concerned on the client of in the cloud, not even the accessed dates. Not certain if upload/download is also taking place wasting bandwidth.

Not Syncing folder from Fedora 20

Installed fine, although I had to manually install pynotify via "yum install notify-python"
It'll sync files and folders "to" Fedora brilliantly. However, it wont sync "folders" to OneDrive.

note the "folder_test" folder and "MINECRAFT" folder are missing.

onedrive_linux

I also checked iOS to rule out a windows comparability issue :) - The folders are not there either.

photo 09-06-2014 12 29 48

Need to understand all params used in Windows OneDrive cli

All files are stored at %AppData%\..\Local\Microsoft\Windows\SkyDrive\settings

'''
[global]
enablePerformanceCounters = false
storageRequestLoggingEnabled = false
storageRequestLoggingLogSize = 10
storageRequestLoggingLogCount = 5
useContentEncodingForMetadata = true
useAcceptEncodingForMetadata = true
cid = %something%
KeepAllClientLogs = false
tempDir=
peerFetcherDisabled = false
cloudFetcherDisabled = false
directTCPDisabled = false
relayDisabled = false
proxyDisabled = false
disableStallDetection = false
disableDiagnostics = false
diagnosticsAssertOnFailure = false
disableThumbnailDownload = false
delegatedSyncPartnerInteractionDisabled = false
delegatedSyncPartnerLogLevel = 4
delegatedSyncPartnerMaxLogSizeInMB = 5
delegatedSyncPartnerMaxNumberOfLogs = 10
delegatedSyncPartnerLogRolloverFrequencyInSec = 86400
delegatedSyncPartnerRequiresReset = true
fileChangeTrackerEnabled = true
currentDavUrlTemplate =
'''

'''
[PolicySettings]
PolicyDocumentPollIntervalSeconds = 89815
BackoffOnErrorsIntervalSeconds = 295
PolicyDocumentPrefetchIntervalSeconds = 7015
BackgroundPollShortIntervalSeconds = 325
BackgroundPollLongIntervalSeconds = 89815
UploadBatchMaxFolderCount = 50
UploadBatchMaxDocumentCount = 50
UploadBlockSizeKB = 4080
DownloadBlockSizeKB = 4080
MaxFileSizeBytes = 2147483647
Tier1MaxFileSizeBytes = 2147483647
Tier1FileInclusionList = |doc|docm|docx|dot|dotm|dotx|odc|odp|ods|odt|pot|potm|potx|pps|ppsm|ppsx|ppt|pptm|pptx|rtf|vdw|vdx|vsd|vsdm|vsdx|vssm|vssx|vst|vstm|vstx|vsw|vsx|vtx|xla|xlam|xlm|xls|xlsb|xlsm|xlsx|xlt|xltm|xltx|xlw|
MaxItemsInOneFolder = 150000
LowVisibilityFileExclusionList = ~$.|.laccdb|Desktop.ini|Thumbs.db|EhThumbs.db|.ds_store|Icon\r|.lock
HighVisibilityFileExclusionList =
DavUrlMatch = ^(?:http|https)://([a-zA-Z0-9])+.([a-zA-Z0-9-]+.)docs(-df|-bvt|-s3|-gd|-current|-dev).live(-tst)
.net(?::[0-9])?/(?'cid'(?:[A-Fa-f0-9]))(?'path'(/.*)?$)
DocumentBackgroundPollIntervalSeconds = 3600
DavUrlTemplate = https://d.docs.live.net/{hexcid}/{path}
ShareUrlTemplate = https://skydrive.live.com/?cid={hexcid}&id={resourceid}&action=Share
PathEncoding = CaretEncode
FileSyncPartnerDisabled = false
WacUrlTemplate = https://skydrive.live.com/redir.aspx?cid={hexcid}&resid={ResourceID}&type=3
MaxClientMBTransferredPerDay = 537600
MaxClientRequestsPerDay = 2500000
NumberOfConcurrentUploads = 3
AllowUserOverrideOfConcurrentUploads = true
SkyApiURL = https://skyapi.live.net
SkyDriveURI = https://dm2301.storage.live.com/MyData/LiveFolders
SkyDriveItemsURI = https://dm2301.storage.live.com/Items/{ResourceID}
SherlockEnabled = true
SherlockURL = https://rtlc.live.com/Sherlock/v2/TransactionReport
SyncHeartbeatEnabled = true
SyncHeartbeatInterval = 60
SyncVerificationEnabled = true
SyncVerificationInterval = 1440
SyncProgressInterval = 60
SyncTelemetryURL = http://wlepsi3.redmond.corp.microsoft.com/SyncDiag.ashx
FullSyncMaxItemCount = 200
IncrementalSyncMaxItemCount = 50
ContentEncodingForMetadata = GZip
AcceptEncodingForMetadata = GZip
QosCollectionEnabled = true
SkyDriveURIServiceName = dm2301.storage.live.com
SkyDriveURIAuthPolicy = MBI_SSL
LowDiskSpaceLimitMB = 200
DownloadThumbnailsEnabled = true
ExtendedIdleTimeoutSeconds = 600
AutomaticVerboseLoggingEnabled = true
AutomaticVerboseLoggingTTLSeconds = 43200
SherlockEnabledUsers = 2
CacheMaxFreePercent = 10
CacheMaxSizeMB = 10240
TelemetryItemAlreadyExistsMaxErrorEvents = 1000
TelemetryItemAlreadyExistsErrorCallbackFrequency = 1
TelemetryItemAlreadyExistsMinReportingThreshold = 3
TelemetryItemAlreadyExistsMaxReportingThreshold = 10
TelemetryDefaultMaxErrorEvents = 1000
TelemetryDefaultErrorCallbackFrequency = 1
TelemetryDefaultMinReportingThreshold = 3
TelemetryDefaultMaxReportingThreshold = 10
TelemetrySherlockMinimumLogReUploadIntervalSeconds = 300
TelemetrySherlockMinimumPollIntervalSeconds = 28800
TelemetrySherlockMinimumTransactionReportUploadIntervalSeconds = 300
NumConcurrentDownloads = 1
ThumbnailSizeThresholdPercentage = 1.000000
ThumbnailSizeBufferMB = 20
ThumbnailSizeEstimateKB = 40
OutstandingStorageRequestsActive = 6
OutstandingStorageRequestsPassive = 2
GroupFoldersEnabled = false
SyncAllMaxUpgradeDifference = 20971520
SyncAllMaxQuotaUsed = 52428800
SyncAllMinDiskSize = 75161927680
SyncAllMinFreeDiskSpace = 0.001000
LoggingMaxLogFileSizeMB = 2
MaxLogFilesToKeep = 40
LogUploadUri = https://dm2301.storage.live.com/clientlogs
LogUploadEnabled = false
MaxLogUploadRetries = 3
LoggingMinTimeBetweenLogUploadsInSeconds = 10
LoggingUploadRetryAfterTimeInSeconds = 0
SkyDrivePhotosURI = https://dm2301.storage.live.com/MyData/Jump/Photos
SkyDriveDocumentsURI = https://dm2301.storage.live.com/MyData/Jump/Documents
SkyDriveWMPhotosURI = https://dm2301.storage.live.com/MyData/Jump/WMPhotos
SkyDriveMusicURI = https://dm2301.storage.live.com/MyData/Jump/Music

[MetaData]
SchemaVersion = 2
ETag = %Etag%
LastRefresh = 1404054319
LastUpdate = 1403922891
'''

File names in OneDrive is case-insensitive

Say, there are two files in the same dir, LICENSE and license

While Linux distinguishes them, OneDrive treats them as one file if you upload or download. If the license is newer, daemon will upload it and LICENSE gets overwritten remotely, and then LICENSE is downloaded to local repo and this is definitely a bug.

There should be a handler for this.

Adds "NEWER_xxx" or "OLDER_xxx" at the end of all files

Hi,
I'm a onedrive-d user since yesterday, thanks for this, I've been waiting for it for a long time!
But I got two big issues when using it on my Linux Mint 17 (Quiara).
First of all, almost all of my files have been renamed with either someting like "(NEWER_xxx)" or '(OLDER_xxx)" at the end...
For instance: "20130922_152148_Android.jpg (NEWER_1393719369.0)"
or "20130531_091154_Android.jpg (OLDER_1393706583.0)"
As you can imagine, it's no longer possible to open easlily a file named 20130531_091154_Android.jpg (OLDER_1393706583.0) based on its suffix which is now in the middle... :-/

Some times, the original files still exists (the one without the suffix) but most of the times not. For instance:
/data/OneDrive/Images/Pellicule/20130806_151840_Android.jpg
/data/OneDrive/Images/Pellicule/20130806_151840_Android.jpg (OLDER_1396738997.0)
And they are both 143.4kB large and updated on 06-04-2014
I even found things like:
/data/OneDrive/Photos/2004/DSCN1424.JPG
/data/OneDrive/Photos/2004/DSCN1424.JPG (NEWER_1336234185.0) (OLDER_1336234185.0)

The other issue is an exception (and seems to be linked to the previous issue). Here is the trace:

Traceback (most recent call last):

File "/usr/local/bin/onedrive-cli", line 9, in
load_entry_point('python-onedrive==14.08.0', 'console_scripts', 'onedrive-cli')()
File "/usr/local/lib/python2.7/dist-packages/onedrive/cli_tool.py", line 310, in main
contents = api.get(resolve_path(optz.file), byte_range=optz.byte_range)
File "/usr/local/lib/python2.7/dist-packages/onedrive/cli_tool.py", line 239, in
resolve_path = ( (lambda s: id_match(s) or resolve_path_wrap(s))
File "/usr/local/lib/python2.7/dist-packages/onedrive/cli_tool.py", line 238, in
resolve_path_wrap = lambda s: api.resolve_path(s and s.replace('', '/').strip('/'))
File "/usr/local/lib/python2.7/dist-packages/onedrive/api_v5.py", line 478, in resolve_path
self.listdir(root_id)))[name]
File "/usr/local/lib/python2.7/dist-packages/onedrive/api_v5.py", line 497, in listdir
offset=offset)['data']
File "/usr/local/lib/python2.7/dist-packages/onedrive/api_v5.py", line 346, in listdir
return self(ujoin(folder_id, 'files'), dict(limit=limit, offset=offset))
File "/usr/local/lib/python2.7/dist-packages/onedrive/api_v5.py", line 329, in call
return self.request(api_url(), **kwz).

File "/usr/local/lib/python2.7/dist-packages/onedrive/api_v5.py", line 176, in request
raise raise_for.get(code, ProtocolError)(code, message)
onedrive.api_v5.ProtocolError: (None, MaxRetryError("HTTPSConnectionPool(host='apis.live.net', port=443): Max retries exceeded with url: /v5.0/folder.31100c4dd70e082d.31100C4DD70E082D!8221/files?access_token=... (Caused by <class 'socket.error'>: [Errno 104] Connection reset by peer)",))
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/components.py", line 123, in run
self.consume(task)
File "/usr/local/lib/python2.7/dist-packages/onedrive_d-0.85-py2.7.egg/onedrive_d/components.py", line 87, in consume
old_mtime = os.stat(t.p1).st_mtime
OSError: [Errno 2] Aucun fichier ou dossier de ce type: '/data/OneDrive/Images/Pellicule/20130922_152434_Android.jpg'

The last sentence in french means: no such file or directory...
This file 20130922_152434_Android.jpg indeed doe not exist on my Linux but another one named "20130922_152434_Android.jpg (NEWER_1393719155.0)" exists

Thnaks for your attention and hopefully for a solution to my first issue which creates a big mess...

Error occur when clicking on the "Connect to OneDrive.com" button

The installation seems right, till the end, when the "preferences" window appear, I clicked on the "Connect to the OneDrive.com" buttion:
An error occured:

:~$ onedrive-prefs NOT SANDBOXED [ERROR:flash/platform/pepper/common/pep_process.cpp(19)] CHECK(g_process_type == PROCESS_TYPE_UNKNOWN) failed java version "1.7.0_55" OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode) Aborted (core dumped)

Platform: Ubuntu 14.04LTS

Install on centos 6.5

I followed the instructions on this post
http://xmodulo.com/2014/06/sync-microsoft-onedrive-linux.html
And receive this error...

Setup is done. You can run onedrive-d command after finishing the settings.
[mgj7@vizpc007 onedrive-d]$ Traceback (most recent call last):
  File "/usr/bin/onedrive-prefs", line 9, in <module>
    load_entry_point('onedrive-d==0.85', 'console_scripts', 'onedrive-prefs')()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.6/site-packages/onedrive_d-0.85-py2.6.egg/onedrive_d/prefs.py",     line 9, in <module>
    from onedrive import api_v5
  File "/usr/lib/python2.6/site-packages/onedrive/api_v5.py", line 499
    type_filter = {type_filter}
                              ^
SyntaxError: invalid syntax

My knowledge of python (which is relatively basic) tells me that there should be two values in te curly braces on line 499, but I haven't used dictionaries all the often tbh. Is this an issue with my system? or the current release of the onedrive api?

Cheer for any help,

Morgan

A GUI for authentication window?

Instead of giving a URL and let the user copy the auth the URL back, can't we just show the webpage in a small window and let the user do the authentication work?

Possible bug when moving files to local repo

Currently MOVED_TO is paired with MOVED_FROM. If one moves files from any dir other than local repo to local repo, the monitor will go wrong.

Possible fixes (with #8):
Treat MOVED_TO as file modification events where the file needs to be uploaded.
Treat MOVED_FROM events as file deletions.

Future enhancement:
Use MOVED_FROM buffer to delay file deletions. If M_T matches items in the buffer, issue mv command; otherwise handle the event normally.

When moving a file, the file content, size, and mtime don't change. Thus they can be used to hash a file in the buffer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.