stravo1 / obsidian-gdrive-sync Goto Github PK
View Code? Open in Web Editor NEWsync notes across devices in Obsidian via Google Drive
sync notes across devices in Obsidian via Google Drive
I did every thing after the instructions. I even created a new vault and tried it again from beginning, it always appearing the same message.
I have enjoyed using this plugin and testing it. It would be great if the notifications you get at the bottom didn't show up that say like "file has been modified externally. Updating file changes" or something like that because it can be distracting while typing. Not sure if you have control over that.
I've only just started using your plugin, but last night it seems that occasionally when it synced, my cursor would pop to the top of page while typing. Not sure if this is because I accidentally clicked on the metadata date at one point or not, but will update if I can give more details to replicate.
When downloading files it errors and deleted half of the files.
I dont have the logs because it deleted them too
DO NOT USE THIS PLUGIN ITS UNSTABLE
Steps to reproduce
Result
Expected result
As you may already be aware, I had a bad experience with this plugin deleting half my files when I was just starting up my Obsidian vault, and although the issue has since been fixed, I'm not currently comfortable with using the plugin just yet. It's because of this error I feel that in order to truly get used to this plugin, I need it to give me more control over what is backed up and what is downloaded.
I have a couple of suggestions, but for now I will focus on one: It would be great if it was possible to disable automatic syncing for a particular Obsidian instance. That way you can specifically select what files you want to download, and upload changes at your own leisure, without needing to overwrite every single file. Files that don't exist on an Obsidian instance could be manually downloaded either through the command pallete or settings.
One last thing: if it isn't already possible, it would appreciate it if you could select multiple files in the file explorer and upload/download those only. This would let me try out the syncing with certain files, as opposed to having every file be synced (especially because I want to avoid uploading attachments while they are getting renamed to add the -synced
suffix).
It would be awesome if I could sync my config over Google Drive so I don't have a config desync on my phone and Windows.
First, thank you for this amazing plugin. Really beautiful work.
I have the sync plugin working between my windows PC and my phone. (I uploaded everything to Drive by initializing it on the PC, then I added the plugin to my phone and it successfully downloaded everything).
Both devices successfully upload files that are changed. I checked the files in google drive, and can see the updates.
However, neither device is downloading files that have been updated. Why? Do I have to do this manually? Let me know what to do. Thanks.
Filenames after upload are folder_name + "/" + note_name.md
I can't sync it with Android because of "/" in the filenames
Is there any way to create a structure with files inside folders?
Using the latest (0.9.9) version of the plugin.
I create a (empty) subfolder under a parent folder, (On Desktop/Windows)
I open the Android-app > automatic sync process starts ('downloading missing files') but this causes an error instantly (Error: something went wrong. sync might be paused!)
When i do create a Note within the newly created subfolder, the sync does work.
Please see included log files
I was experimenting with the QuickAdd plugin because you can set it to create a new page from a template very easily (see here). However, as soon as the new page is created by QuickAdd while this plugin is active, the page gets immediately deleted as soon as a sync happens.
If I disable the sync plugin and then create the files using the macro, then re-enable the plugin, the files are deleted immediately.
Hi, I am very interested in your project. That is what I was looking for. I have a question about security? Isn't it vulnerability to use someones url for authorising app, I see it goes to the red-formula-303406.ue.r.appspot.com. Any plans to give user decide what app to use for auth?
Hello, and first of all thank you very much for maintaining this plugin.
I recently started using Obsidian and went on using your plugin for GDrive synchronization. I configured the "Daily Notes" core plugin, however the pages created by it (also on-demand by "Open today's daily note") are immediately being deleted before I can write anything.
This might be related to #30, I will try the workaround of disabling automatic sync for this folder. However I thought it might be good to know that this feature also seems to be affected.
I don't see settings button in plugin after first uploading a vault
Plugin version - 0.9.9.
On version 0.9.5 all working fine
Steps:
I have tried to add some logs and see an error "unable to complete action: getFilesList BAD URL"
Could somebody help, how to fix it?
i believe it doesnt sync the text that come particularly at the moment it uploads the file and while syncing again at the refresh rate it deletes that particular text
For easier installation, it will be great if you can make the plugin compatible with BRAT.
thanks for building up this app !
I'm trying to sync my android phone and desktop on the same Google Drive .. But whenever I install your plug in and initialize it , a NEW Google Drive folder is created so I end up with two separate folders : one from the computer and a different one from the phone .. how can i make one ?
and , where do i config the refresh rythm ?
thanks!
Fabio
I have set up the whole google sync plugin on my laptop, but how could i access the vault and sync on my ipad?
I have already created a new vault having the same name as the vault on my drive.
I tried to copy the files from the google drive of the vault to my local ipad storage, I saw 4 files show up on the Obsidian iOS app, but when I clicked 'Files', there is no files show up.
I got the plugin working on my Mac, but after loading a bit more than 1 000 files it crashed, I just got repeated error messages. I closed Obsidian and opened it again, the plugin seems to be running but no new uploads are happening. Is there any way to restart the uploads, other than selecting "upload all", which would mean deleting the alreadu uploaded 1 000 files.
I have more than 6 000 files to upload, so this seems a bit shaky.
Also, after this the whole app started misbehaving. Impossible to display notes. When closing down the app I got following:
Uncaught Exception:
TypeError: Cannot read properties of undefined (reading 'origin')
at Function. (/Users/kalle.kniivila/Applications/Obsidian.app/Contents/Resources/obsidian.asar/main.js:27:9882)
After starting the app the problem persists, I can read one note, but when I try to switch to another one, I just get the title of the other note, with the content of the first one. Then nothing will work at all.
Turning the plugin off didn't seem to help. After removing the plugin files Obsidian seems to work normally again. But no sync :-(
The file that caused the crash might be a sound file, as that is the last file uploaded and it is zero bytes.
I`m extremely interested on the plugin and would love to try it and provide feedback on discord.
But there's one thing bugging me out, will Obisidan ever allow this? I mean, it's a direct competitor to it's obsidian Sync
I was out and listened to a presentation and took notes on my Android phone and synced. When I got back to my Mac I synced, and got a version of the note, but not the latest one, some information was missing. When I took up my phone and synced again, the fresh information disappeared from my phone and the note was replaced with an old version, the same I got in my computer.
Combined with all other problems I have experienced this makes me give up on this plugin for the time being. I'll just have to pay for Obsidian's own sync.
It would be nice if I was able to blacklist folders from uploads so I could use a tool like Obsidian Shell.
Obsidian Shell allows me to open arbitrary markdown files outside of a vault. It works by making a folder, copying the contents of the folder and then deleting it after but I don't want it to upload to Google Drive because it causes problems with it and even has caused it to delete straight up folders outside of Obsidian.
Downloaded the beta 0.9.9 and pasted the unzipped file to my plugins, but when trying to turn the plugin on in Obsidian settings, it fails to load the plugin. What might be the problem?
Hi Stravos,
I'm brand new to Obsidian. I installed the plugin on my desktop first but would like to write/edit as I go.
Do I have to install the plug-in on the mobile version of Obsidian? (I'm thinking, yes.)
How do I point the mobile plugin to the same folder I'm using for my desktop?
Thank you for any input!
What is the synchronization interval time and where can I change it?
Hello! Thank you so much for this plugin, it really is quite amazing that you're building this!
I have just tried to sync everything between my desktop:
mydrivefolder/obsidian/vault-name
that got created automatically)vault-name
I then did some troubleshooting on my phone:
I then noticed that the files, upon initialisation, did not get the lastSync property (and the attachment names did not change).
I opened on desktop one of the files that did not sync on android. I edited it. It then added the lastSync property and uploaded it. When I then opened obsidian on android and disabled & enabled the plugin, it downloaded the 181st file (the one that I edited on desktop) and then crashed as before.
So this issue may be related to the fact that those properties are not added at initialisation time? Although it works for 180 of the files and then crashes, while none of the files have those properties added.
I am attaching the error log files here:
verbose-log-gdrive-plugin.md
error-log-gdrive-plugin.md
In other news, I wanted to ask you how this will work with the "attachment name formatting" plugin? It may be an issue given that both plugins rename attachments?
Hi,
the login process was smooth, but I found 2 problems:
Thus, I am sorry, it is not usable for me.
I seen the issue with not being able to sync templates to late and already created one test Template which got synced.
I then added the Template folder to the exclusion list. BTW the text field shows empty when I return to the configuration dialog, despite it being saved to the json file.
Then I deleted the template file.
It was identified as "Missing" and got downloaded again.
No matter where I delete it, once sync kicks in the file comes back.
Hey! I'm wanting to use this to sync my notes, but I'm wanting to avoid manually installing it as I'd like to receive updates from Obsidian itself automatically.
I don't know a ton about Obsidian yet, but it's of my knowledge that adding this to the Plugins List would fix such. Is there any reason that hasn't been able to happen yet?
If yes , let's add it to readme, of no, then would it be possible?
https://help.readwise.io/article/125-how-does-the-readwise-to-obsidian-export-integration-work
readwise basically exports all files to a folder named "readwise" at obsidian base vault , right next to all md notes and folders
so it should work with gdrive sync technically, but somehow it doesnt ?
Not sure I can ask this here but I imagine it's completely incompatible with iOS isn't it
Unfortunately, it seems that iOS is broken. I set up the plugin on desktop on a completely blank project, then copied over the folder to iOS and opened it on Obsidian. The syncing works on Desktop just fine. I am using v0.9.9-beta-7-2.
The following errors occurred:
LOG: received accessToken
LOG: getting vault id
LOG: Exited writeToErrorLogFile
LOG: Entering completeAllPendingSyncs
LOG: Entering getLatestContent
LOG: Exited getLatestContent
LOG: Exiting refreshFilesListInDriveAndStoreInSettings
LOG: Exited writeToErrorLogFile
LOG: Exited writeToErrorLogFile
LOG: Exited checkForConnectivity
LOG: Exited checkForConnectivity
LOG: Entering writeToErrorLogFile
LOG: Exited checkForConnectivity
LOG: Exited writeToErrorLogFile
LOG: Exiting refreshFilesListInDriveAndStoreInSettings
LOG: Exiting refreshFilesListInDriveAndStoreInSettings
LOG: Exited writeToErrorLogFile
LOG: Entering writeToErrorLogFile
LOG: Too many errors within a minute. Halting all operations.
Wed Apr 24 2024 02:27:54 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@
Wed Apr 24 2024 02:27:54 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@
Wed Apr 24 2024 02:27:54 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@
Wed Apr 24 2024 02:27:54 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@
Wed Apr 24 2024 02:27:55 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@
Wed Apr 24 2024 02:27:55 GMT-0500 (Central Time)-Error-ERROR: Unable to complete action: - getFilesList => Error - Request failed, status 400 - t@capacitor://localhost/app.js:1:1977943
GG@capacitor://localhost/app.js:1:1978137
@capacitor://localhost/app.js:1:1978701
@capacitor://localhost/app.js:1:237060
a@capacitor://localhost/app.js:1:235883-newError@
@
Wed Apr 24 2024 02:27:56 GMT-0500 (Central Time)-Error-FATAL ERROR: Too many errors within a minute.-@
@
Mon May 13 2024 09:36:35 GMT-0300 (Horário Padrão de Brasília)-TypeError-Cannot read properties of undefined (reading 'modifiedTime')-TypeError: Cannot read properties of undefined (reading 'modifiedTime')
at driveSyncPlugin.getLatestContent (plugin:obsidian-gdrive-sync:2990:67)
god bless you man, sorry to open an issue for it but you're truly awesome :))
few questions; does it sync everything including the plugins? and how do we update it , are we notified of new updates , or do we have to manually check in github ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.