google-sites-liberation icon indicating copy to clipboard operation
google-sites-liberation copied to clipboard

Invalid User Credentials error no matter which arguments I enter

Open GoogleCodeExporter opened this issue 9 years ago • 39 comments

What steps will reproduce the problem?
I tried at least 20 different combinations of host, domain, webspace, 
username and password but every time I get "Invalid User Credentials".
1.  I run the Jar file and enter in the host domain and webspace.
2.  My site is http://sites.google.com/a/lilybclayton.org/www so I put 
host=sites.google.com domain=lilybclayton.org, webspace=www
For username I tried including just my user id and also adding the domain 
to the end but either way it does not work.  

I am using Google Apps so it looks like domain is required.  

What is the expected output? What do you see instead?
I am trying to export a copy of my web site.

What version of the product are you using? On what operating system?
The latest version 1.0.1 on Windows XP.  I just downloaded Java 1.6 today 
since I got other errors with Java 1.5.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 26 Jan 2010 at 9:12

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

I have EXACTLY the same problem as discussed above in Issue 42. 
My site is http://sites.google.com/a/poyry.com/padur-oil-storage-caverns. 

Original comment by [email protected] on 27 Jan 2010 at 10:52

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

here is my site - http://sites.google.com/site/valushop

and I tried several combinations but I keep geeting invalid credentials error.

Original comment by [email protected] on 4 Mar 2010 at 9:29

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Same problem here. I'm using 1.0.1 on Linux with Sun Java 6 runtime. 

Original comment by [email protected] on 5 Mar 2010 at 5:31

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Finally I was able to make it work -
Host: sites.google.com
Domain: site
Webspace: <<name which you registered with google sites>>. In my case, its 
valushop
Username: google account name, try adding @gmail.com
Password

2 Important things to note -
Export- downloads the files from google.
Secondly, This program does not work through firewall. So if you have a proxy 
setting to access internet, it won't work. It did not work from my office m/c.

Original comment by [email protected] on 6 Mar 2010 at 5:21

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

HELLO

Original comment by [email protected] on 8 Mar 2010 at 2:28

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

hey tom

Original comment by [email protected] on 9 Jun 2010 at 5:20

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Hi I have the exact same problem. I tried all combinations for domain, 
username, webspace and all I get is Invalid credentials. I tried on XP-Java1.6 
and Mac with Java 1.6 with and without proxy, I still have the same problem. I 
have a domain name. 
Please advice..

Original comment by [email protected] on 22 Jul 2010 at 9:13

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Same problem here
Java (build 1.6.0_21-b07), Liberation tool 1.0.3 jar   Windows Vista SP2 

Original comment by [email protected] on 9 Nov 2010 at 6:02

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Same problem... Java (build 1.6.0_22-b04) Windows XP SP 3 error "Invalid user 
credential"

Original comment by [email protected] on 3 Jan 2011 at 10:27

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Hey great, finally got it to work - I would suggest making the import and 
export buttons clearer - took me ages to work it out.

(how about 'download from net' and 'upload to net' ?)

matt mars london

https://sites.google.com/site/abriefhistoryofTimelessness/

Original comment by [email protected] on 28 Mar 2011 at 3:47

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Not able to work with google site that has external domain name just like 
[email protected],
where the google domain name is http://sites.google.com/a/blabla.org/

not able to export.

has any body been able to crack this ? 

Thanks in advance

Original comment by [email protected] on 13 Apr 2011 at 11:19

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Hi!
I notice the same problem reported in comment #4:
http://code.google.com/p/google-sites-liberation/issues/detail?id=42#c4
Seems like there is no way to make it work under a proxy: I always get "Invalid 
User Credentials".
My version is 1.0.4.
Also, it would be nice to have a way to report any error in more detail (a 
stack trace, for example).

Thanks!

Original comment by starnutoditopo on 2 Aug 2011 at 2:25

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

I was able to the tool to work through our corporate proxy for our corporate 
apps domain (https).  To enable proxy support, launch the jar file from the 
command line, with the additional proxy parameters.

Example:

java -Dhttps.proxyHost=your.proxy.com -Dhttps.proxyPort=1080 
google-sites-liberation-1.0.4.jar

Original comment by [email protected] on 26 Sep 2012 at 10:21

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Comment No. 4 was very helpful! Thanks, now it works.

Original comment by [email protected] on 7 Jan 2013 at 11:28

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Steps from 
https://code.google.com/p/google-sites-liberation/issues/detail?id=42#c4 worked 
great!

Original comment by [email protected] on 1 Apr 2013 at 5:42

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

If you have 2-step verification turn on for your account it will interrupt the 
export process.

So turn off 2-step verification just to export (then turn it back on) or create 
a new gmail account, add it as an owner of the site, and complete the export 
with that account's details.

Original comment by [email protected] on 5 Apr 2013 at 3:30

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

I had problems until I realised that 2-step verification was turned on for my 
account.  As in comment #17 the UI complains of Invalid Credentials and there 
is no clue that access is being blocked by Google's 2-step verification 
process.  Here's another way to deal with this without turning 2-step 
verification off or creating a new account.  First of all sign into the google 
account in question, navigate to security, 2-step verification, manage your 
application-specific passwords.  Then generate a new application-specific 
password specifically for google-sites-liberation.  You'll need to keep this 
page open so you can copy this into the password box of the 
google-sites-liberation UI (cut&paste didn't work for me so I had to copy it by 
eye&hand).  

Then to dump data from the site https://sites.google.com/site/mywebspace/ I use:

Host: sites.google.com
Domain: site
Webspace: mywebspace
Import/Export Revisions: unchecked
Username: <myusername>@gmail.com
Password: <myapplicationspecificpassword>

That's it : thanks for a Really Useful piece of code!  

Original comment by [email protected] on 27 Jul 2013 at 11:41

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Shutdown your firewall, it worked for my

Original comment by [email protected] on 2 Oct 2013 at 9:35

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

ya , for me too it worked.

Original comment by cpandya2909 on 13 Nov 2013 at 3:55

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Thanks very much to Mattda for the 2 step verification advice which worked 
nicely

Original comment by [email protected] on 7 Jan 2014 at 6:38

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

If you still have problem, check this link, and enable the less security access 
of your account, you can disable it after you export your sites.

https://www.google.com/settings/security/lesssecureapps

Original comment by [email protected] on 24 Oct 2014 at 2:17

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

thanks to #23; after enabling less secure access the import worked for me

Original comment by [email protected] on 5 Dec 2014 at 9:26

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

thanks to #23; after enabling less secure access the import worked for me

Original comment by [email protected] on 10 Jan 2015 at 5:21

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

For people with 2-step authentication :

Steps described by patrick worked great : 
https://code.google.com/p/google-sites-liberation/issues/detail?id=42#c18

(Setting another account as owner and using this account didn't work for me.)


Original comment by [email protected] on 30 Mar 2015 at 8:52

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

At last !..... thanks to #23; after enabling less secure access the import 
worked for me

Original comment by [email protected] on 8 Apr 2015 at 5:22

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

This still appears to be an issue with 1.0.4 on Linux.

I have a Google Apps-hosted site and therefore I don't have the "less secure 
access" option. I've followed all the above instructions and I'm certain that 
my settings are correct. 

Is this tool still supported for Google Apps customers?

Original comment by [email protected] on 1 Jun 2015 at 12:40

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

I've had a daily job running with 1.0.4 on Ubuntu Linux for months now which 
exports my site using the command line.

I have a Google Apps site.

A few days ago I started seeing this error happening every time I attempt an 
export:

Jun 02, 2015 3:00:04 AM com.google.sites.liberation.export.Main doMain
SEVERE: Invalid User Credentials!
Exception in thread "main" java.lang.RuntimeException: 
com.google.gdata.util.AuthenticationException: Error authenticating (check 
service name)
        at com.google.sites.liberation.export.Main.doMain(Main.java:89)
        at com.google.sites.liberation.export.Main.main(Main.java:97)
Caused by: com.google.gdata.util.AuthenticationException: Error authenticating 
(check service name)
        at com.google.gdata.client.GoogleAuthTokenFactory.getAuthException(GoogleAuthTokenFactory.java:614)
        at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthTokenFactory.java:490)
        at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAuthTokenFactory.java:336)
        at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:362)
        at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:317)
        at com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java:301)
        at com.google.sites.liberation.export.Main.doMain(Main.java:79)
        ... 1 more

I had changed nothing - neither my login credentials nor the script.

Clearly Google has changed something on their end that has caused this to break.

Is anyone looking further into this issue?

Original comment by [email protected] on 1 Jun 2015 at 10:12

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

I am a Google Apps user with 2-step authentication enabled, and I can't get 
this to work anymore. I tried an Application Specific Password, but no luck. 
Also as noted above the "Less Secure Apps" option is not available to Google 
Apps customers. 

Original comment by [email protected] on 2 Jun 2015 at 1:05

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Same here, used to work but now it's broken...

(see https://code.google.com/p/google-sites-liberation/issues/detail?id=42#c26) 

Original comment by [email protected] on 2 Jun 2015 at 6:12

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Same here. I had enabled less-secure-apps when that option first started 
blocking access to google sites liberation. That solved the problem for a 
while, but now the invalid-credentials error occurs even with less-secure-apps 
enabled, so google sites liberation no longer works.

Original comment by [email protected] on 2 Jun 2015 at 10:17

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Same problem here, 2-step-validation enabled, tried all of the proceses posted 
before but no luck

Original comment by oaceballos on 3 Jun 2015 at 3:48

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

I've been fighting this for like a month now and Google hasn't helped at all.
I have a Google Apps site that cannot be exported anymore.   
Reaching out asking if anybody has found a solution to the 'Invalid 
Credentials' message of death?

Original comment by [email protected] on 30 Jun 2015 at 2:42

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

I have a Google Apps site. I have a daily cron job to do the export.

I started seeing the error at the start of June. It started working again June 
13 - 23 but then it broke again June 24 and hasn't worked since.

Can anyone help?

Original comment by [email protected] on 30 Jun 2015 at 10:02

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Same here. Changing setting 
https://www.google.com/settings/security/lesssecureapps didn't help.

Original comment by [email protected] on 14 Jul 2015 at 9:14

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

It's broken for me too, and I've tried everything suggested in this thread 
several times over. No luck.  And I just got an automated e-mail saying someone 
who knew my password was trying to log onto my account.  Yep, Google, that 
would be ME. 

Very frustrating.  I have a large website on Google Sites that I need to back 
up.

Original comment by [email protected] on 23 Jul 2015 at 2:46

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

As a new user I though how open minded Google was with this facility, but it is 
difficult to get it to work and I have not managed yet. Using Mac Os X 10.9.5 
and Liberation 1.0.4.
My site is [email protected], but links to our old domain name of 
cibra.co.za
It is NOT an Apps site.
I think i have tried all the work arounds I can find on the blogs.
Maybe I should just keep switching on and off like the standard IT help desk 
response?

Original comment by [email protected] on 25 Jul 2015 at 3:14

GoogleCodeExporter avatar Jul 25 '15 23:07 GoogleCodeExporter

Two and a half years later, and I still observe the same problem. A real web site would cost a bit more but at least I could back up and reload the contents.

StarryGordon avatar Jan 08 '18 03:01 StarryGordon