Help Needed! Test a new way to install GAM on Linux/MacOS

2,285 views
Skip to first unread message

Jay Lee

unread,
Nov 1, 2016, 10:51:16 AM11/1/16
to GAM for G Suite
We're working to make GAM easier to install and configure. I recently added a new script that will automate the download, installation and configuration of GAM on Linux and MacOS systems. To test the new connector, just open a terminal / shell on your machine and run:


this will download and launch a script which is responsible for choosing the right version of GAM, downloading it to your system, extracting it (default install path is $HOME/bin/gam) and configuring your shell to add GAM to your PATH so you can run GAM commands from any location.

If you have the time to test this script please do so and let me know your feedback! Did GAM install properly? Was the process simple and reliable? Any areas you can see for improvement?

FYI, the script should just do the right thing by default when run as above but there are a few command line options to control it's behavior. Just add them to the end of the command above:

bash <(curl -s -S -L https://raw.githubusercontent.com/jay0lee/GAM/master/src/gam-install.sh?) -h
(See all options for the script)

bash <(curl -s -S -L https://raw.githubusercontent.com/jay0lee/GAM/master/src/gam-install.sh?) -v prerelease
(Install the prerelease version of GAM if there is one (today this will install 3.8 instead of 3.72)

bash <(curl -s -S -L https://raw.githubusercontent.com/jay0lee/GAM/master/src/gam-install.sh?) -a i386 -o linux
(Force script to install the i386 Linux GAM binary instead of whichever CPU arch / OS the script auto-detects)

Thanks for your testing and feedback!

Jay

Justin Granger

unread,
Nov 1, 2016, 11:26:56 AM11/1/16
to google-ap...@googlegroups.com
Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...
Getting file and download URL...
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   597    0   597    0     0   1109      0 --:--:-- --:--:-- --:--:--  1107
100 6380k  100 6380k    0     0  2760k      0  0:00:02  0:00:02 --:--:-- 5758k
tar: Error opening archive: Failed to open '/gam-3.72-macos.tar.xz'


Can you run a full browser on this machine? (usually Y for MacOS, N for Linux if you SSH  into this machine) y


GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) y
/dev/fd/63: line 149: /Users/username/bin/gam/gam: No such file or directory
Here's information about your new GAM installation:


/dev/fd/63: line 156: /Users/username/bin/gam/gam: No such file or directory



Inline image 1 Justin Granger
Associate, Information Technology
Medullan Inc. | medullan.com
t: +1 617 547 0273
e: jgra...@medullan.com

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/6837e6b8-d5ee-45cd-9063-3cf2cfea3a3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jay Lee

unread,
Nov 1, 2016, 11:28:29 AM11/1/16
to google-ap...@googlegroups.com
Thanks Justin,

What version of MacOS are you running?

Jay

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Jay

Justin Granger

unread,
Nov 1, 2016, 12:21:15 PM11/1/16
to google-ap...@googlegroups.com
10.9.5
Do I need to sudo it?




Inline image 1 Justin Granger
Associate, Information Technology
Medullan Inc. | medullan.com
t: +1 617 547 0273
e: jgra...@medullan.com

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
--

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

Jay Lee

unread,
Nov 1, 2016, 12:30:00 PM11/1/16
to google-ap...@googlegroups.com
No, you need to update MacOS :-/ Apple ended support for 10.9 back in Sept. I don't plan to offer GAM support for operating systems that the vendor no longer supports. The thinking being if the OS vendor is no longer releasing security updates for the OS, running GAM which has access to very critical permissions is probably not a good idea. Also, my resources are limited :-)

You'll need to upgrade to at least 10.10 though my test Mac is 10.11 right now so I'm not 100% that 10.10 will work either (though it should since 10.10 is still getting updates and support from Apple, if 10.10 fails you I'll see what I can do).

Thanks for the report, I did make some improvements to the script so it'll detect old MacOS versions and better inform the admin of the issue. If you re-run it should state something like:

ERROR: GAM currently requires MacOS 10.10 or newer. You are running MacOS 10.X. Please upgrade.

Appreciate the feedback (in spite of the support issue).

Jay

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
--

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Jay

Justin Granger

unread,
Nov 1, 2016, 12:52:41 PM11/1/16
to google-ap...@googlegroups.com
Thanks, Jay!



Inline image 1 Justin Granger
Associate, Information Technology
Medullan Inc. | medullan.com
t: +1 617 547 0273
e: jgra...@medullan.com

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
--

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
--

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

Petrus Gerhard Slaghekke

unread,
Nov 1, 2016, 4:21:24 PM11/1/16
to google-ap...@googlegroups.com
​Xubuntu 14.04 LTS​


Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...

Getting file and download URL...

Downloading file gam-3.72-linux-x86_64.tar.xz from https://github.com/jay0lee/GAM/releases/download/v3.72/gam-3.72-linux-x86_64.tar.xz to /tmp/tmp.O2XopK0pH3

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   604    0   604    0     0   3001      0 --:--:-- --:--:-- --:--:--  3004
100 7754k  100 7754k    0     0   835k      0  0:00:09  0:00:09 --:--:--  915k
Finished extracting GAM archive.



Can you run a full browser on this machine? (usually Y for MacOS, N for Linux if you SSH into this machine) y


GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) y
ERROR: project is not a valid argument for "gam create"
Here's information about your new GAM installation:


Python 2.7.12 64-bit final
google-api-python-client 1.5.1
Linux-3.13.0-100-generic-x86_64-with-debian-jessie-sid x86_64
Path: /home/petrus/bin/gam


Jay Lee

unread,
Nov 1, 2016, 5:09:15 PM11/1/16
to google-ap...@googlegroups.com

Thanks Petrus,

  I should clarify that the "gam create project" code won't work until the next version after 3.8. Otherwise it looks like everything worked as expected.

  Appreciate the feedback.

Jay


--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Jay

Daniel Kohtes

unread,
Nov 2, 2016, 7:07:07 AM11/2/16
to GAM for G Suite

Good, you're running MacOS 10.11...


Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...


Getting file and download URL...


Downloading file gam-3.8-macos.tar.xz from https://github.com/jay0lee/GAM/releases/download/v3.8/gam-3.8-macos.tar.xz to /var/folders/6b/7ywlkn3x65372vc5_zcp20xm0000gp/T/tmp.hPs3RkKj


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   596    0   596    0     0    262      0 --:--:--  0:00:02 --:--:--   262

100 6135k  100 6135k    0     0   732k      0  0:00:08  0:00:08 --:--:-- 1361k

Finished extracting GAM archive.




Can you run a full browser on this machine? (usually Y for MacOS, N for Linux if you SSH into this machine) Y



GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) no


You can create an API project later by running:


gam create project


Here's information about your new GAM installation:



Jay Lee <jay...@gmail.com>

Python 2.7.12 64-bit final

google-api-python-client 1.5.2

Darwin-15.6.0-x86_64-i386-64bit x86_64

Path: /Users/[my user name]/bin/gam

Jay Lee

unread,
Nov 2, 2016, 7:08:52 AM11/2/16
to GAM for G Suite

Thanks Daniel,

  Looked like it worked properly on your Mac.

Jay


--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.
--

Jay

Michael A Crowley

unread,
Nov 2, 2016, 9:15:49 AM11/2/16
to GAM for G Suite

Minor comment offline:
I'd add an option for skipping update_profile
(I commented it out since I didn't want to change my PATH.)

Script worked fine (Debain).

-mike
---------------------------------------------------------------------------
Michael A. Crowley Network and Systems
mcro...@mtholyoke.edu 350 Library, Mount Holyoke College
413-538-2140 South Hadley, MA 01075
http://www.mtholyoke.edu/~mcrowley http://www.mtholyoke.edu/lits/network
---------------------------------------------------------------------------

Jay Lee

unread,
Nov 2, 2016, 9:38:22 AM11/2/16
to GAM for G Suite
Great idea Michael!

  I've added a -p argument. Running:


should prevent the script from touching your profile and adding the GAM alias.

Jay
--

Jay

Nick Young

unread,
Nov 2, 2016, 10:05:11 AM11/2/16
to google-ap...@googlegroups.com
Just tried installing, but got an error during the create project step. Going to keep poking at it.. but here's the output.

Extracting archive to /Users/n_young_uncg/bin
Finished extracting GAM archive.
Adding gam alias to profile file /Users/n_young_uncg/.bash_profile.
Can you run a full browser on this machine? (usually Y for MacOS, N for Linux if you SSH into this machine) y
GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) yes
ERROR: project is not a valid argument for "gam create"
Here's information about your new GAM installation:
Python 2.7.12 64-bit final
google-api-python-client 1.5.2
Darwin-15.5.0-x86_64-i386-64bit x86_64
Path: /Users/n_young_uncg/bin/gam

​Also .bash_profile was not reloaded, so i had to manually do "source ~/.bash_profile" to pick up the new alias. Not sure if that's intended or not.

--Nick


...........................................................
Nick Young
IT Manager, Application Administration
Information Technology Services, UNCG
Forney Building, 214C



--

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

Nick Wells

unread,
Nov 2, 2016, 11:20:16 AM11/2/16
to GAM for G Suite
Hi Jay -

Thanks for the upgrades.  I think I'm having a hard time installing.  I'm receiving:

Last login: Wed Nov  2 11:08:11 on ttys000
Good, you're running MacOS 10.11...

Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...

Getting file and download URL...

Downloading file gam-3.8-macos.tar.xz from https://github.com/jay0lee/GAM/releases/download/v3.8/gam-3.8-macos.tar.xz to /var/folders/79/pj37xlmn57xd79r458c4v7d80000gn/T/tmp.fgLXCCO7.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   596    0   596    0     0   5247      0 --:--:-- --:--:-- --:--:--  5274
100 6135k  100 6135k    0     0  3923k      0  0:00:01  0:00:01 --:--:-- 8568k
Extracting archive to /Users/nwells/bin

Finished extracting GAM archive.

gam alias already exists in profile file /Users/nwells/.profile. Skipping add.

Can you run a full browser on this machine? (usually Y for MacOS, N for Linux if you SSH into this machine) y


GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) yes
ERROR: project is not a valid argument for "gam create"
Here's information about your new GAM installation:

Python 2.7.12 64-bit final
google-api-python-client 1.5.2
Darwin-15.6.0-x86_64-i386-64bit x86_64
Path: /Users/nwells/bin/gam
➜  ~gam version
/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/nwells/gam/gam.py': [Errno 2] No such file or directory
➜  ~

Nick Wells

unread,
Nov 2, 2016, 11:25:10 AM11/2/16
to GAM for G Suite
I feel like my gam alias is still pointing to the HOME$/gam folder and not the new location in HOME$/bin/gam.  Even after trying to move the contents of HOME$/bin/gam to HOME$/gam folder I receive the same error.

Michael A Crowley

unread,
Nov 3, 2016, 4:41:37 PM11/3/16
to google-ap...@googlegroups.com

I hope I'm on the correct document page:
https://github.com/jay0lee/GAM/wiki/ExamplesEmailSettings#retrieving-vacation-settings

The show vacation routine on 3.8 doesn't seem to be working.
It claims user does not exist, but 3.66 reports correctly.
Similar problem with the "show forward" version. (See comparison
details below between 3.66 and 3.8.)

Have I missed something obvious? Is it unique for my setup
or is is replicable elsewhere?

Thanks,
-mike
---------------------------------------------------------------------------
Michael A. Crowley Network and Systems
mcro...@mtholyoke.edu 350 Library, Mount Holyoke College
413-538-2140 South Hadley, MA 01075
http://www.mtholyoke.edu/~mcrowley http://www.mtholyoke.edu/lits/network
---------------------------------------------------------------------------

======= results =================
Comparing 3.66 and 3.8

$ gam-3.8 user mcrowley show vacation
User: mcro...@mtholyoke.edu, Does not exist

$ gam-3.66 user mcrowley show vacation
User mcro...@mtholyoke.edu
Enabled: false
Contacts Only: false
Domain Only: false
Subject: None
Message: None
Start Date: 1970-01-01
End Date: 1969-12-31

And yet gam-3.8 info user mcrowley does work:

User: mcro...@mtholyoke.edu
First Name: Michael
Last Name: Crowley
Is a Super Admin: False
Is Delegated Admin: False
Has Agreed to Terms: True
IP Whitelisted: False
Account Suspended: False
...snip...

Ross Scroggs

unread,
Nov 3, 2016, 4:51:17 PM11/3/16
to google-ap...@googlegroups.com
Michael,

Did you perform these steps after installing 3.8?

You must update the list of authorized scopes for your Gam OAuth2 Client and Service Account after installing for the first time or upgrading from a version earlier than 3.7.

- Go here: https://github.com/jay0lee/GAM/wiki/CreatingClientSecretsFile

- Go to the section labelled Authorizing the API scopes for use with GAM in the Admin Console

- Log on to the admin console as in step 2.ii.

- In the list of Authorized API clients, locate your Gam OAuth2 Client, copy the Client ID and then remove the entry.

- Paste the Client ID into the Client name box as in step 2.iii.a, then do steps 2.iii.b thru 2.iii.d.

You'll notice that the API Scopes - OAuth2 list has additional entries, these are what is required in Gam 3.9x.

- Skip down to step 3.i.

- In the list of Authorized API clients, locate your Gam Service Account, copy the Client ID and then remove the entry.

- Paste the Client ID into the Client name box as in step 3.i.b, then do steps 3.i.c thru 3.i.e.

You'll notice that the API Scopes - Service Account list has additional entries, these are what is required in Gam 3.9x.


Ross
--

Chris Tenbarge

unread,
Nov 7, 2016, 8:15:49 PM11/7/16
to GAM for G Suite
Mine is ending with a message (in red) stating that the "Project Creation Failed"

$ bash <(curl -s -S -L https://raw.githubusercontent.com/jay0lee/GAM/master/src/gam-install.sh) -v prerelease

Good, you're running MacOS 10.12...


Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for prerelease GAM release...


Getting file and download URL...


Downloading file gam-4.02-macos.tar.xz from https://github.com/jay0lee/GAM/releases/download/v4.02/gam-4.02-macos.tar.xz to /var/folders/l6/swtxj8md02z9b12w2rf9j3mr0000gq/T/tmp.pMCE5Yvn.


  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   597    0   597    0     0   2241      0 --:--:-- --:--:-- --:--:--  2235

100 6174k  100 6174k    0     0  2914k      0  0:00:02  0:00:02 --:--:-- 5338k

Extracting archive to /Users/chris/bin


Finished extracting GAM archive.


Can you run a full browser on this machine? (usually Y for MacOS, N for Linux if you SSH into this machine) Y


GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) yes

Please enter your G Suite admin email address: m...@org.org


Your browser has been opened to visit:


    https://goo.gl/ohvzcd


If your browser is on a different machine then press CTRL+C and

create a file called nobrowser.txt in the same folder as GAM.


Authentication successful.

Creating project "GAM Project"...

Checking project status...

Projection creation failed. Trying again. Say N to skip projection creation.


GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) yes

Jay Lee

unread,
Nov 7, 2016, 8:29:58 PM11/7/16
to GAM for G Suite
Thanks Chris,

  GAM isn't properly reporting the error here but in my experience, this happens when you've reached the limit on # of API projects and Google won't let you create any more. You can confirm that by visiting console.developers.google.com and manually trying to create another project.

  I've added better error output when this happens. You can either delete some existing projects and wait for them to purge (may take a few days) or use some other Google account to test with.

Jay

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail and should destroy all copies of this e-mail.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Jay

Chris Tenbarge

unread,
Nov 7, 2016, 11:13:33 PM11/7/16
to google-ap...@googlegroups.com
Yup... out of space for new projects. Thanks for the tip!

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
--

Jay

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for G Suite" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/DA2pwUPU360/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Chris Tenbarge
Instructional Technologist
Lebanon Special School District
@chris_tenbarge


+KimNilsson

unread,
Nov 8, 2016, 5:54:23 AM11/8/16
to GAM for G Suite
What are the limitations for projects, when not paying for the cloud service?
Any difference when using an Edu-account or a Gmail account?

Damian Bamforth

unread,
Nov 8, 2016, 8:45:35 AM11/8/16
to GAM for G Suite
Hi Jay,

Thanks for all your work on this. I have never actually installed GAM before, but I have previously read through the setup instructions.  The setup script is wonderful - it makes setting up GAM a lot easier than following all the previous setup instructions. So, I thought you might appreciate the experience from a 'newbie' who has never installed GAM before. Here's my feedback on using it:

Sign out of all google accounts:
Make sure you are signed out of your regular google apps account, or google will automatically try to use the regular account even after you have signed in and authenticated the google admin account.

This can lead to problems getting to the correct page (
https://console.developers.google.com/apis/credentials?project=gam-project-xxx-xxx-xxx) as even after selecting the correct account, google did not seem to  autodirect correctly (everything after the ? was forgotten). After selecting the admin account, I was not sure how to get to the page to '1. Click the blue "Create credentials" button. Choose "OAuth client ID".'. I signed out of all google accounts, then c&p the url again, and this stage then worked fine.

Instruction guidline:
1. Click the blue "Create credentials" button. Choose "OAuth client ID".
2. Click the blue "Configure consent screen" button. Enter "GAM" for "Product name to show to users".

Perhaps these are in the wrong order? After clicking 'create credentials' I was told that a product name needed to be created first. I don't think I could see a 'create credentials' button (following [1.]). I had to go back and click on the second tab at the top of the previous page, then go back and Choose "OAuth client ID" after the "Product name to show to users" step had been completed.

Browser:
I experienced a failure of this script on another machine yesterday and I think that the browser failing to open a page in order to authenticate correctly may be the reason. I will check this tomorrow. However, it seems to me that if a browser page does not auto-open, the process fails with no indication to the user that the browser failing to open (and subsequent sign-in and authorisation) is the reason for this. As this occurred yesterday I cannot remember the output exactly. It failed after the 'gam create project'. Perhaps the script could direct the user to c&p appropriate strings into a browser, as it does at other times, if the auto-authentication fails? As I say, I'm not 100% sure of the output, so I will check this tomorrow (when I have access to that machine again).

Thanks,
Damian

Damian Bamforth

unread,
Nov 9, 2016, 5:24:21 AM11/9/16
to GAM for G Suite
Hi Jay,

To follow up on yesterday's post, here is the output from the machine which failed to fully install GAM via the script:

Good, you're running MacOS 10.12...
...
Can you run a full browser on this machine? (usually Y for MacOS, N for Linux if you SSH into this machine) Y

GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) yes
Please enter your G Suite admin email address: googl...@mysite.ac.uk
ERROR: project is not a valid argument for "gam create"
Projection creation failed. Trying again. Say N to skip projection creation.

This error was repeated each time I tried to continue.

The reason I have a feeling that this is browser related, as stated yesterday,  is because I didn't see a browser window auto-popup as I did on the machine which installed successfully.

Regards,
Damian

Karl Hehr

unread,
Nov 13, 2016, 3:45:51 PM11/13/16
to google-ap...@googlegroups.com
Here is the error I am seeing when create project is kicked off

Checking project status...{u'error': {u'message': u'code: QUOTA_EXCEEDED internal_error { exception_type: "com.google.developers.common.exception.checked.CheckedCodeException$GenericCodeException" exception_message: "FURS quota exceeded" exception_to_string: "com.google.developers.common.exception.checked.CheckedCodeException.GenericCodeException: com.google.developers.common.exception.checked.CheckedCodeException$GenericCodeException: FURS quota exceeded Code: RESOURCE_EXHAUSTED" public_error_code: "-2912148504042242819" }', u'code': 8}, u'done': True, u'name': u'operations/pc.5675743264662450318', u'metadata': {u'@type': u'type.googleapis.com/google.cloudresourcemanager.v1.ProjectCreationStatus', u'createTime': u'2016-11-13T20:34:41.387Z'}}

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.



--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr

Karl Hehr

unread,
Nov 13, 2016, 3:47:57 PM11/13/16
to google-ap...@googlegroups.com
Here is a little better snip-it:

{u'error': {u'message': u'code: QUOTA_EXCEEDED internal_error { exception_type: "com.google.developers.common.exception.checked.CheckedCodeException$GenericCodeException" exception_message: "FURS quota exceeded"
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr

Jay Lee

unread,
Nov 13, 2016, 3:52:53 PM11/13/16
to google-ap...@googlegroups.com

The error indicates you've created the maximum number of API projects with your Google account.

Jay


To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr




--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Jay

Karl Hehr

unread,
Nov 13, 2016, 3:57:46 PM11/13/16
to google-ap...@googlegroups.com
I thought so, so I went and deleted a couple projects that I didn't need. It would appear I need to wait until the project is officially off line (1 week).

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr




--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
--

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Karl Hehr

unread,
Nov 13, 2016, 4:06:45 PM11/13/16
to google-ap...@googlegroups.com
Inquiring minds want to know.... What does FURS stand for?

To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr




--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
--

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsubscribe...@googlegroups.com.

To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.



--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

Jay Lee

unread,
Nov 13, 2016, 4:12:33 PM11/13/16
to google-ap...@googlegroups.com

\_(ツ)_/


To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr




--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
--

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.



--
Karl H. Hehr
Technology Director
Ames Community Schools
---------------------------
twitter: karlhehr

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Jay

+KimNilsson

unread,
Nov 14, 2016, 6:14:57 AM11/14/16
to GAM for G Suite
Installing on OSX Sierra and noticed these small failed to execute error. It happened on both occasions when it tries to call gam.
Running gam manually works fine. I skipped creating a project, since I already have JSONs.

On install.

Here's information about your new GAM installation:


Jay Lee <jay...@gmail.com>

Python 2.7.12 64-bit final

google-api-python-client 1.5.5

Darwin-16.0.0-x86_64-i386-64bit x86_64

Path: /Users/MyUser/bin/gam

Failed to execute script gam

GAM installation and setup complete!


Please restart your terminal shell or to get started right away run:


alias gam="/Users/MyUser/bin/gam/gam"


And then later on gam oauth create.

Enter verification code: REDACTED

Authentication successful.

Failed to execute script gam

T Roche

unread,
Nov 14, 2016, 7:59:44 AM11/14/16
to GAM for G Suite
Confirming install with no problems on Ubuntu 16.10:

Python 2.7.12 64-bit final
google-api-python-client 1.5.5
Linux-4.8.0-27-generic-x86_64-with-debian-stretch-sid x86_64


Jennifer Austin

unread,
Nov 16, 2016, 11:27:14 AM11/16/16
to GAM for G Suite
Running MacOS Sierra 10.12.1
screen shot from 11-15-2016 shows "Failed to execute script gam"

Any attempt to run GAM results in the error "No such file or directory" even though I'm able to see the directory.
I had Karl Hehr helping me at a Google Summit and he noticed a python file missing in the GAM directory. Screen shot from 11-16-2016 shows the contents of the directory.

Not sure what to do to fix this. This is my very first attempt at installing/using GAM.

Jennifer
Screen Shot 2016-11-15 at 10.24.29 AM.png
Screen Shot 2016-11-16 at 10.20.21 AM.png

Jay Lee

unread,
Nov 16, 2016, 1:55:04 PM11/16/16
to GAM for G Suite
Jennifer,

  Try running:
again. After it finishes, you need to close the current terminal app and open a new one. Then you should be able to run GAM commands.

Jay

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.

For more options, visit https://groups.google.com/d/optout.
--

Jay

Jennifer Austin

unread,
Nov 16, 2016, 5:35:58 PM11/16/16
to GAM for G Suite
Thank you Jay, it's working!
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
--

Jay

Kevin@MailSwitcher

unread,
Nov 20, 2016, 7:08:51 AM11/20/16
to GAM for G Suite
This process worked for me.  I didn't notice many differences from the normal 4.03 installer

Few things:
- I run this for multiple instances...  so having a profile created does not help for me, but it did work..  and allows me to manage my scripts and data files better, I suppose
- It had an extra step where I had to go to the Manage API screen, and enter the Client ID, and Scopes...  this is not needed for the 4.03 install process...   Following the instructions did work though.
- It also did eliminate me having to download it, as it took care of that for me, and put it in a place I would not normally use..  so it did not break anything.

Daniel Steiner

unread,
Dec 28, 2016, 4:22:49 AM12/28/16
to GAM for G Suite
Using GAM on mac OS and is a bit curious about the decision to use ~/bin/gam instead of /usr/local/gam with a link from /usr/local/bin/gam as Homebrew etc? I know it brings som extra to the setup with sudo as with Homebrew though this shouldn't be an issue regarding the audience for GAM. It also keeps GAM out of the regular home directory which is a bonus in my eyes.

Best regards

Daniel

Kim Nilsson

unread,
Dec 28, 2016, 4:33:09 AM12/28/16
to google-ap...@googlegroups.com
Well, since the app doesn't require any local auth rights at all to run, I see no reason why it should need it during the install.
If there were ever any malicious code introduced, which god forbid, then it would be able to wreck havoc in the local system.

Kevin Melillo

unread,
Dec 28, 2016, 7:36:02 AM12/28/16
to google-ap...@googlegroups.com
I like a neat system as well.  But after the install, I can modify the .bashrc and location of GAM to put it where I need, and it still runs fine.  I control and host multiple domains, and instances, so I have even removed the PATH completely...  and I run each instance from its own directory.  After all of the oauth, project, and scope stuff is complete, it is all localized in one place...  neat and easy.

On Wed, Dec 28, 2016 at 4:33 AM, Kim Nilsson <there.is.no...@gmail.com> wrote:
Well, since the app doesn't require any local auth rights at all to run, I see no reason why it should need it during the install.
If there were ever any malicious code introduced, which god forbid, then it would be able to wreck havoc in the local system.

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Kevin Melillo
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854


Kim Nilsson

unread,
Dec 28, 2016, 7:41:31 AM12/28/16
to google-ap...@googlegroups.com
Yeah, yet another reason to not force the use of su/sudo for installing such a simple tool like GAM.
If you push the binary to /usr/local you would still require a local/HOME place for the JSONs.
Easier to keep them side-by-side, like Kevin says.

Jay Lee

unread,
Dec 28, 2016, 8:39:31 AM12/28/16
to google-ap...@googlegroups.com

The Bash script accepts arguments:

   -h show help.
   -d Directory where gam folder will be installed. Default is $HOME/bin/
   -a Architecture to install (i386, x86_64, arm). Default is to detect your arch with "uname -m".
   -o OS we are running (linux, macos). Default is to detect your OS with "uname -s".
   -p Profile update (true, false). Should script add gam command to environment. Default is true.
   -u Admin user email address to use with GAM. Default is to prompt.
   -r Regular user email address. Used to test service account access to user data. Default is to prompt.
   -v Version to install (latest, prerelease, draft, 3.8, etc). Default is latest.


--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Jay

Reply all
Reply to author
Forward
0 new messages