user29356 / scriptno

Automatically exported from code.google.com/p/scriptno
0 stars 0 forks source link

Unable to access database #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. upgrade to new release 1.0.6.13
2. sync is enabled
3. happens when sync is disabled too???? think so, will check to verify and 
update this....

What is the expected output? What do you see instead?

It just suddenly pops up, randomly, when i'm viewing a webpage  (ie Deviantart 
or Google support forums, HP support forums...) It's a Google error message 
saying "Unable to access database" and the menu bar shows ScriptSafe's 
extension ID oiigbmnaadbkfbmpbfijlflahbdbdgdf.

What version of the product are you using? On what operating system?

1.0.6.13
Windows 7
Chrome 23.0.1271.97 m

Please provide any additional information below.

I also am having problems with certain elements showing on webpages I've not 
had problems with before. I also noticed that sites I've "allowed" to place 
cookies are being blocked by Google regardless if I keep clicking "allow." Not 
sure if this is related or not.

I have enabled sync. I tried disabling it and I think I still had the problem 
so I turned it back on. However, that could have been when I was 
troubleshooting why a cookie wasn't being allowed. 

Original issue reported on code.google.com by thetolli...@gmail.com on 7 Jan 2013 at 8:19

GoogleCodeExporter commented 9 years ago
The actual error message is:  Failure Accessing Database
I've attached images of the error box and the errors from the background.html 
console.

correction to additional info: I am having problems with certain elements NOT 
showing on pages where they have shown with no problems before.

Another addition:  I'm technical, but not knowledgeable in html or web page 
coding, etc.  Basically, just an active user of internet and I maintain and 
upgrade all my own PCs in our home. I do not program (not since the late 80s - 
early 90s)   :)

Original comment by thetolli...@gmail.com on 8 Jan 2013 at 12:27

Attachments:

GoogleCodeExporter commented 9 years ago
I have the same issue/error which began in early April. This error is very 
annoying, occurring every minute intermittently on same page(s). I use 
Scriptsafe extensively, but will have to remove it if there's no fix for this.

Original comment by Phillip....@gmail.com on 13 May 2013 at 11:44

GoogleCodeExporter commented 9 years ago
Failed to Open Database - This is constantly popping up and I wonder if it is 
behind some odd loading problems I have with all websites.

I originally reported this "Unable to Access Database" error and the problem 
has evolved into a different error message on almost every page of any website. 
I get this new message every time and I will insert the image of it below. I 
was just updating my options within ScriptNo and received the error there too.

I've never heard anything and would like to hear back from the developer what 
this is and what sorts of problems it could be causing me.

Thanks

Original comment by thetolli...@gmail.com on 2 Jul 2013 at 3:46

Attachments:

GoogleCodeExporter commented 9 years ago
I meant to add - my version was just updated right before I got the message 
again in my ScriptNo options screen, so it is not fixed with the newest release.
ScriptSafe v1.0.6.15

Original comment by thetolli...@gmail.com on 2 Jul 2013 at 3:48

GoogleCodeExporter commented 9 years ago
Thanks for the report folks, how frequent is this message popping up? (e.g. 
every 5 seconds?)

I have a feeling this is related to the size of the whitelist/blacklist, but 
there's no clear cause from my searching:

"This is a generic failure at the leveldb layer (the leveldb library returning 
error codes)" 
(https://groups.google.com/a/chromium.org/forum/#!topic/chromium-extensions/1z2J
PY3oqGo)

"This error message is associated with the storage area failing to initialize 
(see settings_backend.cc:66). The failure originates at 
leveldb_value_store.cc:95 i.e. an error caught by leveldb itself. Presumably 
it's not that the user was out of hard drive space, that seems like the kind of 
thing that they'd report." 
(https://code.google.com/p/chromium/issues/detail?id=158971)

Found something interesting: 
https://code.google.com/p/chromium/issues/detail?id=58985

Perhaps I'll need to rewrite how user settings are stored...

It seems Adblock Plus has run into this:

https://hg.adblockplus.org/adblockpluschrome/rev/670453632025
https://adblockplus.org/forum/viewtopic.php?t=7422
https://adblockplus.org/forum/viewtopic.php?t=8021
https://adblockplus.org/development-builds/improved-data-format-in-chrome

Original comment by andr...@gmail.com on 2 Jul 2013 at 4:17

GoogleCodeExporter commented 9 years ago
THANKS for the response! And so quickly! :)

The new message "Failed to Open Database: Corruption 1 missing files; 
e.g.:.../000187.sst" occurs on most new webpages I open. I can't find a 
pattern. Sometimes it occurs with each new link to open another page within 
that site, sometimes it occurs upon first open only, sometimes it occurs when 
linking to another site. Sometimes it doesn't occur at all, (like just now when 
I opened my issue 181 to read your reply. I clicked on the link within my gmail 
email telling me you replied. I get the feeling it's timing is related to 
whenever it needs to search the database in question (which I don't know which 
one...) and that is random depending on how you coded when it is necessary.

I am not experienced with open-source programming. I was a programmer in the 
80s and early 90s when object oriented programming was making it's debut. So I 
apologize for not knowing what information will be helpful for you. I did, 
however, read the link about the storage area failing to initialize 
(https://code.google.com/p/chromium/issues/detail?id=158971)
and wonder if my databases for your extension are corrupted.

Could you please tell me, as if I were an end-user with absolutely no technical 
sense whatsoever, how to go about cleaning/resetting the databases used by an 
extension? Maybe if it works, it can be a great workaround for this error in 
the meantime since it appears to be related to several different things in or 
outside of an extension. Also include what I should "backup" or copy in case I 
lose things such as my settings or whitelist, etc., and how to restore those to 
the clean database? Or does that defeat the purpose of cleaning/resetting? 
Copying back in the corrupted data??? Or maybe it doesn't and the corrupted 
data is extension related and not user data related?

Original comment by thetolli...@gmail.com on 2 Jul 2013 at 4:49

GoogleCodeExporter commented 9 years ago
You are very welcome! I apologize for not getting back to you when you 
initially posted this issue.

It may be odd to say, but I do wish this issue is related to something in the 
ScriptSafe code so that it's more "tangible" and manageable. However, there is 
the possibility that your database has become corrupted.

Luckily for you, it's easy to start "anew". First, back up your ScriptSafe 
settings by going to the Options page, and in the bottom-right corner, click on 
"Select All" under "Export", copy it all to your clipboard, and paste it in a 
text file and save it.

Next, go through your other Chrome extensions and back up your settings (or 
take screenshots if they lack an export/import feature). Also back up your 
Bookmarks: Chrome menu > Bookmarks > Bookmark manager > Organize > Export 
bookmarks to HTML file.

After that's done, open Windows Explorer and go to C:\Users\**your Windows 
username here**\AppData\Local\Google\Chrome\

There you should see a "User Data" folder. First, make sure Chrome is 
completely closed. Once it's closed, rename this folder to "User Data Old" (for 
example).

Open Chrome again, then install ScriptSafe again, import your settings from the 
textfile you saved in the first step, and browse around for a bit.

If there are no more error messages, feel free to settle into Chrome and 
re-install/configure your extensions and bookmarks.

If there are still error messages, close Chrome, delete the new "User Data" 
folder that exists in C:\Users\**your Windows username 
here**\AppData\Local\Google\Chrome\, and then rename "User Data Old" to "User 
Data", then restart Chrome again.

I hope this helps! You'd really be helping me out by checking to see if this 
issue is related to ScriptSafe, or if it's Chrome itself! *crossing my fingers*

Original comment by andr...@gmail.com on 2 Jul 2013 at 5:04

GoogleCodeExporter commented 9 years ago
I have the same or similar issue:

Failed to open database: Corruption: 1 missing files; e.g.: .../000092.sst

I'm syncing between two machines. One is fine. One errors. I'd delete the User 
Data folder but I have quite a few tabs open at the moment and I don't want to 
lose them.

Happy to try other steps though.

Original comment by robinmi...@googlemail.com on 9 Aug 2013 at 11:05

GoogleCodeExporter commented 9 years ago
Hi. I'm sorry it took so long to get my results back to you. I tried your 
attempt of starting "anew" following your instructions. I have not had any of 
those messages pop up since and I access my chrome from multiple computers. It 
was a bit of a headache to have to re-install and configure all the extensions, 
because I have many and it took me a while to get them all to play nicely 
together, but the absence of this annoying message popping up is worth it all.

Thank you so much for your assistance. I don't know if we can say it's a 
ScriptSafe issue or a Chrome issue, but it sounds to me that your fix makes it 
a Chrome issue. Just what caused Chrome to create the "issue" with ScriptSafe 
is the question.

to Robinmi...@googlemail.com - If you install the extension FreshStart, you can 
save all your open tabs you don't want to lose and name the "group" 
accordingly, then open them all again at a later date whenever you want. That 
way you can troubleshoot and then get back to where you were at.

Good Luck!

Original comment by thetolli...@gmail.com on 10 Aug 2013 at 4:19

GoogleCodeExporter commented 9 years ago
@ #7 andr...@gmail.com

The renaming method worked for me, thank you very much. I started getting these 
error messages (both .ldb and .sst) after performing a System Restore on 
Windows 7 last November. Completely messed up the ability my sync my settings. 
I thought I was having syncing issues because I might have synced a damaged 
database to my Google account. Luckily, this fix confirms it is definitely a 
local issue.

Dev, is it possible to implement a fix for these errors from within inside 
ScriptSafe? I'll admit, it was fairly easy to restore thanks to Chrome sync, 
but the fix was definitely not ideal. If I had to guess, I would safely assume 
LOTS of people have this same issue, but have no idea how to fix it, or have 
any idea this "forum" exists. It was a bit hard to find.

Below is an example of the message I had. Thank you for the fix.

Original comment by bruton....@gmail.com on 28 Jan 2014 at 3:29

Attachments: