benlilaj / gears

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

NSCocoaErrorDomain:404 - loading "www.gmail.com" after disabeling Gears Offline. #873

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Install gears, enable offline for GMail, sync .
2.Click on Gmail Gears offline -> "Disable Offline Gmail" 
3.Select Remove  
4.Quit the browser
5.Open browser and Try opening "www.gmail.com"

What is the expected output?

Gmail Login page.

What do you see instead?

Safari can’t open the page.
Safari can’t open the page “http://www.gmail.com/”. The error was:
“Operation could not be completed. (Cocoa error 404.)”
(NSCocoaErrorDomain:404) Please choose Report Bugs to Apple from the Safari
menu, note the error number, and describe what you did before you saw this
message.

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

Platform:
  Hostname: testing-102.local
  Mac OS X Version 10.5.6 (Build 9G55)  , also on 10.4.11
  Processor: 2 Intel 2.40 GHz
  RAM: 2048 MB

Gears:
  Gears version: 0.5.19.0  <<<Release>>>

Installed Browsers:
  Safari: 3.2.1 (5525.27.1)

Please provide any additional information below.
use "www.gmail.com".

Original issue reported on code.google.com by gears.te...@gmail.com on 6 May 2009 at 2:34

GoogleCodeExporter commented 9 years ago
I can reproduce the error by just installing Google Gears. Enabling Offline 
Access. Closing Safari and returning to 
http://www.gmail.com. Upon return I get the following error: 
NSCocoaErrorDomain:404. Interesting enough, if I 
browse to http://www.gmail.com/inbox, Gmail loads perfectly. 

Original comment by mcdonoug...@gmail.com on 7 May 2009 at 11:06

GoogleCodeExporter commented 9 years ago
I can't repro this and it actually sounds like a DNS issue.

Could you please clean the machine configuration and see if you can still repro 
by 
taking the following steps:

1. Open Safari->Preferences->Advanced->Proxies: Change Settings and make sure 
you are not using a proxy.

2. Reset safari by selecting "Reset Safari..." from the application Menu.  

3, Delete the "~/Library/Application Support/Google/Google Gears For Safari" 
directory.

4. Run the following command in the terminal to clear the DNS cache:
$ dscacheutil -flushcache

5. Restart the machine.

6. Open Safari and make sure you can navigate to www.google.com and 
www.gmail.com

After these steps are you still able to repro?

Original comment by gears.te...@gmail.com on 8 May 2009 at 3:15

GoogleCodeExporter commented 9 years ago
Yes after all of those steps it does work again, but I don't think it is DNS.  
I did each step individually to see 
what really fixes the problem.  I did them pretty much in reverse order:

Reboot : NSCocoaErrorDomain:404
Reboot + -flushcache : NSCocoaErrorDomain:404
Reboot + -flushcache + reset safari : NSCocoaErrorDomain:404
Reboot + -flushcache + reset safari + remove gears database : success

I don't have any proxies configured on my machine.  I also ran another test:

remove gears database only : success

It seems strange that this is the only step that really matters.

Original comment by gears.te...@gmail.com on 8 May 2009 at 11:58

GoogleCodeExporter commented 9 years ago
the only file that needed to be deleted for me was "permissions.db". deleting 
that fixed the problem. i'd attach 
the corrupt one but it contains personal information, i can e-mail it to 
someone if it would help.

Original comment by rajni...@gmail.com on 9 May 2009 at 12:20

GoogleCodeExporter commented 9 years ago
rajnigam - thanks for the info.  We should be able to generate the file here.  
If we have trouble, I'll contact you 
about getting your copy.

Original comment by gears.te...@gmail.com on 11 May 2009 at 5:40

GoogleCodeExporter commented 9 years ago
fyi - this happens to me as well.

won't deleting the database delete all the local cache, offline content gmail 
has downloaded?

Original comment by jon.chui@gmail.com on 13 May 2009 at 3:34

GoogleCodeExporter commented 9 years ago
I can confirm this. I performed the same 5 steps that  gears.team.srikanthk 
mentioned.

Removing Gooogle Gears from the ~/Library directory was the only way I could 
fix this.

Safari:Version 4 Public Beta (5528.16)
OS X: 10.5.6

Original comment by Drew.Wo...@gmail.com on 13 May 2009 at 9:44

GoogleCodeExporter commented 9 years ago
I was using Gears 0.5.16.0. Thanks

Original comment by Drew.Wo...@gmail.com on 13 May 2009 at 9:47

GoogleCodeExporter commented 9 years ago
This is definitely not a DNS issue. I've seen this exact problem occur on two 
distinct 
networks. Both machines have offline access enabled.

On my machines, they are running Safari 4. 

Original comment by michaelmiller on 17 May 2009 at 2:46

GoogleCodeExporter commented 9 years ago
I have the same problem, started when i downloaded google gears. Had not 
thought to check it out until now. 
Had tried to wipe the cache with no results, reset Safari with no results. Have 
not yet tried wiping that file recommended yet, but will that essentially 
disable the gears features?

Original comment by joshua...@gmail.com on 21 May 2009 at 6:40

GoogleCodeExporter commented 9 years ago
Deleting "permissions.db" won't disable the Gears features. Gears will recreate 
the file when you launch Safari 
again. When you go to gmail and click the "offline" link, it will ask you for 
permission again and I think it will 
have to download all your messages again. I let it go overnight so I'm not sure 
what it did.

Original comment by rajni...@gmail.com on 21 May 2009 at 7:56

GoogleCodeExporter commented 9 years ago
Just experienced this problem: attempting to open gmail.com resulted in 
NSCocoaErrorDomain:404 

It may be helpful to note that going directly to mail.google.com worked 
successfully.

Original comment by elbig...@gmail.com on 29 May 2009 at 7:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Tried with official release of Safari 4 (5530.17) and Google Gears 0.5.22.0
Defect is still in place.

OS X: 10.5.7
Intel Core 2 Quad Q9450 

Original comment by wouterbo...@gmail.com on 8 Jun 2009 at 8:07

GoogleCodeExporter commented 9 years ago
I have the same problem here.

OSX: 10.5.7
Safari 4

using mail.google.com instead of gmail.com works fine.

Original comment by israel.faria on 11 Jun 2009 at 1:26

GoogleCodeExporter commented 9 years ago
Same problem, I've been using http://mail.google.com to get my mail.
I deleted permissions.db from ~/Library/Application Support/Google/Google Gears 
For Safari
This deletion also fixed an issue where using the google notifier to open mail 
from the drop down began a 
redirect but gmail never finished loading the actual email.
Safari: 4.0.1
OS X: 10.5.7
Gears is installed, Current version:0.5.22.0;official;opt;osx;safari

Also:
The "Google Gears For Safari" folder contains three folders related to gmail. I 
don't understand why it needs 
more than one. The "mail.google" folder contains a folder 
(https_443/GoogleMail_managed[15]#localserver/) 
that holds the old GMail beta logo, a peice of media data that seems no longer 
relevant, along with many 
documents (some seem to be redundant). The folders "gmail.com" and 
"www.gmail.com" contain a few folders 
but don't seem to hold any files.

Original comment by Airpower...@gmail.com on 20 Jun 2009 at 6:06

GoogleCodeExporter commented 9 years ago
Same problem, I've been using http://mail.google.com to get my mail.
I deleted permissions.db from ~/Library/Application Support/Google/Google Gears 
For Safari
This deletion also fixed an issue where using the google notifier to open mail 
from the drop down began a 
redirect but gmail never finished loading the actual email.
Safari: 4.0.1
OS X: 10.5.7
Gears is installed, Current version:0.5.22.0;official;opt;osx;safari

Also:
The "Google Gears For Safari" folder contains three folders related to gmail. I 
don't understand why it needs 
more than one. The "mail.google" folder contains a folder 
(https_443/GoogleMail_managed[15]#localserver/) 
that holds the old GMail beta logo, a peice of media data that seems no longer 
relevant, along with many 
documents (some seem to be redundant). The folders "gmail.com" and 
"www.gmail.com" contain a few folders 
but don't seem to hold any files.

Original comment by Airpower...@gmail.com on 20 Jun 2009 at 6:06

GoogleCodeExporter commented 9 years ago
Re-enabling Gears for Gmail reintroduces both problems: "gmail.com" returns a 
NSCocoaErrorDomain:404 and 
opening an email via google notifier fails to load email and sometimes takes me 
to the inbox instead. Please fix.

I confirm that "gmail.com/inbox" works

Original comment by Airpower...@gmail.com on 20 Jun 2009 at 7:25

GoogleCodeExporter commented 9 years ago
mail.google.com works too

Original comment by amjib...@gmail.com on 29 Jul 2009 at 10:04

GoogleCodeExporter commented 9 years ago
I have had this for a while now - was unsure of what was causing it (thought it 
was DNS) but it definitely is a 
Gears issue. I have to use mail.google.com as well for it to work.

Original comment by prashant.is.here@gmail.com on 16 Aug 2009 at 7:20

GoogleCodeExporter commented 9 years ago
same problem with me as well

Original comment by soni.dha...@gmail.com on 23 Feb 2010 at 4:43

GoogleCodeExporter commented 9 years ago
Don't hold your breath: http://gearsblog.blogspot.com/2010/02/hello-html5.html

Original comment by rajni...@gmail.com on 23 Feb 2010 at 4:50