Skip to content
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

Some problems with the new version #300

Closed
claell opened this issue Dec 4, 2015 · 80 comments
Closed

Some problems with the new version #300

claell opened this issue Dec 4, 2015 · 80 comments
Labels

Comments

@claell
Copy link

claell commented Dec 4, 2015

Thanks for rewriting so much. Unfortunately I am facing some problems using it. In Firefox loading does never finish (https://laverna.cc/app/) and on Chrome it loads, but I don't know, whether Importing settings works. I don't get a message that they ware imported (probably they were).

Also the Dropbox authorisation page shows an Error message. Please say if you need more details.

@wwwredfish
Copy link
Member

What version of Firefox are you using?
Right now the app doesn't notify you when the importing is done (it is something that we are going to address soon).
We will fix Dropbox in a second.

@wwwredfish
Copy link
Member

You should be able to connect to Dropbox now.

@claell
Copy link
Author

claell commented Dec 4, 2015

Thanks for the fast response.

I am using Firefox 42.0. Mabye this is a problem caused by the older version stored locally?

Dropbox authentication works now, thank you :)

Unfortunately my notes stored in Dropbox from the old version do not seem to get synced to the new Laverna version. There is always a loading circle when selecting "All notes".

@wwwredfish
Copy link
Member

We will check it out, though I doubt it's because of the older version.
We changed the structure of files in Dropbox, so you need to first synchronize with it in a browser where you have the data.

@claell
Copy link
Author

claell commented Dec 4, 2015

Alright. I am using Ubuntu 15.10 by the way.

So is there a link to the old version, so I can sync the notes with Chrome (since Firefox does not work and it is the only browser where I have the notes locally)?

@wwwredfish
Copy link
Member

In Firefox, can you press F12, switch to 'console' tab, update the page, and take a screenshot after several seconds?
To transfer your notes, you can also move your old notes to a 'notes-db/notes' folder on Dropbox. (for notebooks - 'notes-db/notebooks', for tags - 'notes-db/tags')

@claell
Copy link
Author

claell commented Dec 4, 2015

bildschirmfoto vom 2015-12-04 22-51-02
Is this the right section in the console tab?

Will try the transferring.
Edit: Transfer worked fine, thanks.

@wwebfor
Copy link
Member

wwebfor commented Dec 4, 2015

Konsole is the right tab.

@claell
Copy link
Author

claell commented Dec 4, 2015

I did not read the text careful enough, thanks for clarifying.

bildschirmfoto vom 2015-12-04 22-55-07

@wwwredfish
Copy link
Member

It seems like indexedDB is not available for some reason, are you in a Private browsing mode? Or perhaps some kind of extension is blocking it.

BTW. We have uploaded old version of the Laverna. You can access it here: https://laverna.cc/old.html

@claell
Copy link
Author

claell commented Dec 4, 2015

I don't use private browsing, but could try deactivating some extensions.

@claell
Copy link
Author

claell commented Dec 4, 2015

Still the same problem with all extensions deactivated.

@wwwredfish
Copy link
Member

Try to set "Firefox will: Remember history" in the preferences panel of Firefox.

@wwebfor
Copy link
Member

wwebfor commented Dec 4, 2015

about:preferences#privacy

@claell
Copy link
Author

claell commented Dec 4, 2015

bildschirmfoto vom 2015-12-04 23-35-53

Still not working, unfortunately.

@claell
Copy link
Author

claell commented Dec 4, 2015

It is definitely something caused by my settings. Just tried it with a clean Firefox by renaming the settings folder and it worked.

@wwebfor
Copy link
Member

wwebfor commented Dec 4, 2015

If that's the case, probably either indexeddb was disabled specifically or the database was damaged.

To test if IndexedDb was disabled, open about:config. Then, search for dom.indexedDB.enabled. It should be set to true.

@wwebfor
Copy link
Member

wwebfor commented Dec 4, 2015

Also to test if settings are to blame, you can ran Firefox in a safe mode.

firefox --safe-mode

Or if all your notes are synchronized with Dropbox, you can just create a new folder named notes-db in Dropbox https://www.dropbox.com/home/Apps/Laverna. Then, copy all folders in there inside notes-db. It should sync everything.

@claell
Copy link
Author

claell commented Dec 5, 2015

The IndexedDb is enabled in about:config for me.

Interesting thing is that the problem occurs in safe mode of Firefox as well.

@wwebfor wwebfor added the bug label Dec 5, 2015
@uzantnomo
Copy link

New app doesn't work for me too. I am using the latest Firefox.

Also after trying to open a new app, old one broke completely (the one from 'index.html' (stored in cache I assume) was working fine just minutes before). There is only empty left side pane on the screen. The error in my console for the old app is:

AppNote is started 96b2d9d9.main.js:28:9023
opening database notes-db in version #6 96b2d9d9.main.js:9:4338
VersionError #this one is error, others are just logs

New app gives me the following error:

opening database notes-db in version #8 main.js:184:11456
execute : read on configs for useDefaultConfigs main.js:184:11456
NotFoundError: The operation failed because the requested database object could not be found. For example, an object store did not exist but was being opened. main.js:184:0

IndexedDB is allowed in settings.

I also have noted the database files with my notes in dropbox are quite old, maybe because there were some errors in sync config, after I have turned off encryption. With this situation and new errors in mind, can you tell me please, how can I safely export my current db in plaintext format?
Thanks.

@wwebfor
Copy link
Member

wwebfor commented Dec 5, 2015

Alright, can you try to open https://laverna.cc/dist? Maybe there it will work.

Edit: right now we don't have time to code and therefore we can't help with exporting data into plain text format. On Monday we'll tackle with the issue.

@uzantnomo
Copy link

Yeah, it works, thanks.

@wwebfor
Copy link
Member

wwebfor commented Dec 5, 2015

You're welcome. I'm glad it helped.

@romu70
Copy link

romu70 commented Dec 7, 2015

Hi,
I've got some issues too. Indexed-db is enabled within Firefox. And your trick about creating the notes-db folder works.

Indeed there are several issues:

  • the application name within DropBox has changed from RTLaverna to Laverna.
  • If I try to enter my API key (which is optional though), I get an ERROR 400 page.

I use Laverna on 3 devices: 2 PCs and a phone. And now I've connected the 2 devices (one PC and the phone), I think my DropBox storage is a mess, here is what I have:

  • Laverna
    • notes-db
      • notebooks
      • notes
  • RTLaverna
    • notebooks
    • notes
    • notes-db
      • notes

Need some advices here about what I've to do to fix this. I run Firefox 42 too.
Thanks.

@wwwredfish
Copy link
Member

If you are using your custom dropbox key, you need to add a new redirect URL in Dropbox App settings. For laverna.cc domain: https://laverna.cc/app/dropbox.html

@romu70
Copy link

romu70 commented Dec 7, 2015

Ok thanks, this trick works. I've been able to clean up the notes folders within DropBox. Seems great to me, I've just a remaining issue, I've created an issue about this.

@claell
Copy link
Author

claell commented Dec 7, 2015

I just tried to load the new version of Laverna on a different machine, Firefox sync enabled and get the same issue.

@wwwredfish
Copy link
Member

By the same issue do you mean Error 400 on Dropbox?

@claell
Copy link
Author

claell commented Dec 7, 2015

No, the infinite loading problem.

@claell
Copy link
Author

claell commented Dec 18, 2015

@wwebfor just tried, but unfortunately still the same problem.

@claell
Copy link
Author

claell commented Dec 18, 2015

bildschirmfoto vom 2015-12-18 15-44-22

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

Did you close the third tab before trying?

@claell
Copy link
Author

claell commented Dec 18, 2015

No, but now I tried and still the same problem. Also in a different browser I cannot see the new features in the Nightly version unfortunately. Have you uploaded the new version already?

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

Yes we did. Also we updated appcache file.

@claell
Copy link
Author

claell commented Dec 18, 2015

Weird. For example exporting notes is missing for me. But on Chrome migrate.html solved problem with missing UI elements on nightly.

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

It should be on this page #/settings/importExport

@claell
Copy link
Author

claell commented Dec 18, 2015

bildschirmfoto vom 2015-12-18 15-53-03

@claell
Copy link
Author

claell commented Dec 18, 2015

Also showing still 0.7.1-rc

d20ed0c2-a59f-11e5-9345-8f8b7d26c8de

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

Can you try to run key combination ``Ctrl+Shift+r` in your browser. It should force your browser to load new versions of files.

@claell
Copy link
Author

claell commented Dec 18, 2015

I already tried it.

@claell
Copy link
Author

claell commented Dec 18, 2015

Deleting browser cache and cookies helped.

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

Can you try to run this command in you Firefox developer console on page laverna.cc:

var req = indexedDB.open('notes-db'); req.onsuccess = function() {console.log('success');}; req.onerror = function(e) {console.error('Error', e);}

@claell
Copy link
Author

claell commented Dec 18, 2015

On the nightly version?

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

It doesn't matter as long as you are on laverna.cc

@claell
Copy link
Author

claell commented Dec 18, 2015

bildschirmfoto vom 2015-12-18 16-06-09

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

It is a bug in Firefox https://bugzil.la/1143003

If you have synchronized everything with a cloud storage, you can try to remove the database and reload the page. With this command you can remove the database:

indexedDB.deleteDatabase('notes-db');

@claell
Copy link
Author

claell commented Dec 18, 2015

Worked, thanks. Interesting thing is that the settings seem to have been transferred. Cloud sync worked immediately after reloading the site.

@claell
Copy link
Author

claell commented Dec 18, 2015

Same issue with nightly though, got Beta v0.7.1-rc still.

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

Do you mean on Firefox it shows v0.7.1-rc?

@claell
Copy link
Author

claell commented Dec 18, 2015

Yes. But after deleting offline webdata in Firefox settings it is on the current version now.

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

Seems like something is wrong with our appcache file. We'll fix it later. Regarding settings, probably it got your settings from localStorage (in previous version we used to store settings in localStorage)

@claell
Copy link
Author

claell commented Dec 18, 2015

Alright. Thanks for helping with this issue. Seems it can be closed?

@wwebfor
Copy link
Member

wwebfor commented Dec 18, 2015

Thank you for your patience. Closing the issue since you agreed it was fixed.

@wwebfor wwebfor closed this as completed Dec 18, 2015
@claell
Copy link
Author

claell commented Dec 18, 2015

No problem, wasn't even your fault, apparently.

@uzantnomo
Copy link

@wwebfor Thanks. I have successfully exported data in the nightly version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants