New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is a directory .dropbox #17
Comments
This is very unusual. Did this occur between updates of Maestral? Or after any other changes? First, it seems like Maestral is trying to take you through the setup dialog. It only does that when either the Dropbox folder has been deleted or it cannot determine when the last sync was (if either of the fields "last_sync" or "cursor" in the config file "~/.maestral/maestral.ini" are empty). Second, it does find the item '.dropbox' in the Dropbox folder, which contains its revision index, but it seems to be a folder and not a file. Is there any chance that it may have been overwritten? Which file is it actually trying to open? You can check by running: import os
from maestral.config.main import CONF
from maestral.client import REV_FILE
dropbox_path = CONF.get("main", "path")
rev_file = os.path..join(dropbox_path, REV_FILE) Does If you delete the dropbox folder and restart Maestral, it will rebuild the index and download all files again. But it would be nice to find out how this happened. |
Thank you. I will later try what you suggested. To what happened, nothing from my perspective. I had maestral open while I hit the shutdown button but I only got a black screen because I kept pushing esc to show the shutdown log. I forced the shutdown via power button. Maybe a file got corrupted. After the above error I did update maestral because i thought maybe the bug is fixed in a newer version. Still the same error. |
No output |
Really? That cannot be. At least |
And the file should be binary file and not a folder. You will be able to see it in your Dropbox folder when you turn on "show hidden files." Maestral will never save a folder to this location. Thats what confuses me. It may be possible that you forced your PC to shut down while the file was open and that it got corrupted. But that seems very unlikely. |
|
How do I force a resync without deleting the content of my dropbox folder? |
@idnovic, thanks for the info. I think I know what the problem is - and it does not have anything to do with a corrupted index file. I believe your settings got overwritten accidentally during an update. Could you do the following, and see if it fixes the issue?
[main]
path = /Users/samschott/Dropbox
excluded_folders = []
excluded_files = ['desktop.ini', 'thumbs.db', '.ds_store', 'icon\r', '.dropbox.attr', '.dropbox']
version = '2.0.0'
[account]
email = ss2151@cam.ac.uk
type = business
usage = 30.1% of 1,313,560.0GB used
usage_type = team
[app]
system_startup = True
notifications = True
[internal]
cursor = 'a long alphanumeric string'
lastsync = 'a long number'
recent_changes = 'a list of recently changed items' I expect that those settings got overwritten with the defaults during an update, and yours will likely look like this: [main]
path =
excluded_folders = []
excluded_files = ['desktop.ini', 'thumbs.db', '.ds_store', 'icon\r', '.dropbox.attr', '.dropbox', '.maestral_rev_dict']
[account]
email =
type =
usage =
usage_type =
[app]
system_startup = False
notifications = True
[internal]
cursor =
lastsync = None
recent_changes = [] Could you look through the backup files, find the last modified file that has non-empty values for the
This is a bug in the code which updates the settings file in-place. It seems to have accidentally reverted all settings when adding the entry Sorry about all of this! PS: You seem to have folder called '.dropbox' in your root directory. How did that happen? |
If it is not used by maestral then I think this is from the original dropbox which I currently do not use. |
For Maestral, '.dropbox' should be binary file and not a folder. And it should be in your local Dropbox directory. I would guess that it is still present in your folder. Does your post mean that the backup has empty settings as well? And there is no other backup file? What do you get from 'ls ~/.maestral'? The output should look like this: ... $ ls ~/.maestral
defaults maestral.ini-2.0.0.bak o2_store.txt
maestral.ini maestral.ini.bak Here, |
If you cannot recover the last sync status from a backup file, I am afraid you will have to re-download your dropbox completely. Before you do so, delete the stray '.dropbox' item in your root directory. Otherwise, the current version of Maestral will crash on startup. I have fixed this behavior now. I will look into what went wrong with the config files. The code here isn't actually my own but copied from the Spyder IDE. So it may take me some for me to figure out. |
yes the above maestral.ini files are the only once. I did view the folder with ls -a and the other files are as you expected. .dropbox is in my case a folder and not a file. If maestral did not create it then dropbox did. In this case you should move maestral's file to an other location. I will post the content of my .dropbox folder below. |
Neither Maestral nor Dropbox itself should create anything in the root folder! In any case, commit 8b64629 should deal with this correctly and will no longer be bothered by the stray folder. |
|
This is with the newest update |
Oups. Fixed in the last commit. Very sorry, the default setting for |
Ah, this does look like the original Dropbox client settings. You should not delete this! I misunderstood and thought the folder was located in your root directory instead of your home directory. Thats why I was so confused. |
I have this error with the latest version. Still the same? |
You may need to edit the config file manually as well and replace |
Yes it works again! |
Great :) I will be more careful with testing changes before pushing in the future. |
no problem and thank you! |
Currently I can not start maestral-gui
The text was updated successfully, but these errors were encountered: