Install problems: ERROR: Failed running GAM for the first time with 127.

1,037 views
Skip to first unread message

Alex Moon

unread,
May 25, 2021, 3:52:19 PM5/25/21
to GAM for Google Workspace
When I attempt to install GAM (re-install, first time got messed up) I'm receiving the following error:

ERROR: Failed running GAM for the first time with 127. Please report this error to GAM mailing list. Exiting.

I have tried removing profile references from both .profile and .zshrc. And removed files at the ~/bin/gam/ directory.

Any ideas? Appreciate the help!

-Alex

Jay Lee

unread,
May 25, 2021, 4:00:49 PM5/25/21
to google-ap...@googlegroups.com
Please show the entire output, not just the one line.

Jay Lee


--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/463cd478-0775-418e-a45f-a76d53eee388n%40googlegroups.com.

Alex Moon

unread,
May 25, 2021, 4:08:58 PM5/25/21
to GAM for Google Workspace
Certainly:

➜  ~ bash <(curl -s -S -L https://git.io/install-gam)

You are running MacOS 11.4
Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release (unauthenticated)...

Getting file and download URL...

Downloading file gam-6.03-macos-x86_64.tar.xz from https://github.com/jay0lee/GAM/releases/download/v6.03/gam-6.03-macos-x86_64.tar.xz to /var/folders/19/nl9z8b_96dbc6p1r116dnp6r0000gn/T/tmp.TvTRTzVw (unauthenticated)...

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   634  100   634    0     0   1609      0 --:--:-- --:--:-- --:--:--  1605
100 9938k  100 9938k    0     0  9236k      0  0:00:01  0:00:01 --:--:-- 9236k
Extracting archive to /Users/user/bin

Finished extracting GAM archive.

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

gam alias already exists in profile file /Users/user/.zshrc. 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
Please enter your Google Workspace admin email address: 
/dev/fd/11: line 296: /Users/user/bin/gam/gam: Not a directory
Project creation failed. Trying again. Say N to skip project creation.

Alex Moon

unread,
May 26, 2021, 10:35:47 AM5/26/21
to google-ap...@googlegroups.com
Realize I may have left a bit out so here's another:

➜  ~ bash <(curl -s -S -L https://git.io/install-gam)

You are running MacOS 11.4
Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release (unauthenticated)...
Getting file and download URL...
Downloading file gam-6.03-macos-x86_64.tar.xz from https://github.com/jay0lee/GAM/releases/download/v6.03/gam-6.03-macos-x86_64.tar.xz to /var/folders/19/nl9z8b_96dbc6p1r116dnp6r0000gn/T/tmp.uf7o2wRp (unauthenticated)...

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   634  100   634    0     0   1613      0 --:--:-- --:--:-- --:--:--  1613
100 9938k  100 9938k    0     0  1376k      0  0:00:07  0:00:07 --:--:-- 1501k
Extracting archive to /Users/alexmoon/bin
Finished extracting GAM archive.
gam alias already exists in profile file /Users/alexmoon/.profile. Skipping add.
gam alias already exists in profile file /Users/alexmoon/.zshrc. 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
Please enter your Google Workspace admin email address: 
/dev/fd/11: line 296: /Users/alexmoon/bin/gam/gam: Not a directory

Project creation failed. Trying again. Say N to skip project creation.
GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) yes
/dev/fd/11: line 296: /Users/alexmoon/bin/gam/gam: Not a directory

Project creation failed. Trying again. Say N to skip project creation.
GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) y
/dev/fd/11: line 296: /Users/alexmoon/bin/gam/gam: Not a directory

Project creation failed. Trying again. Say N to skip project creation.
GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) y
/dev/fd/11: line 296: /Users/alexmoon/bin/gam/gam: Not a directory

Project creation failed. Trying again. Say N to skip project creation.
GAM is now installed. Are you ready to set up a Google API project for GAM? (yes or no) n
You can create an API project later by running:
gam create project
Here's information about your new GAM installation:
/dev/fd/11: line 371: /Users/alexmoon/bin/gam/gam: Not a directory
ERROR: Failed running GAM for the first time with 126. Please report this error to GAM mailing list. Exiting.


You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/nTomqYdrkn8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/5c1e90b5-7c83-4ec8-8218-fea4eb9b574dn%40googlegroups.com.

Jay Lee

unread,
May 26, 2021, 10:44:54 AM5/26/21
to google-ap...@googlegroups.com
Try again now. There's a problem with the 6.03 archive files so I've reverted back to using 6.02 for now.

Jay Lee


Alex Moon

unread,
May 26, 2021, 11:26:26 AM5/26/21
to google-ap...@googlegroups.com
That did the trick. Thank you Jay! 

It seems like the installation was a success though I'm seeing the following message anytime I attempt to run the "gam" command: "fatal: not a git repository (or any of the parent directories): .git"

I'm wondering if this because "gam" is already configured as a git alias for "git am" but I could be wrong.  Any ideas?

Jay Lee

unread,
May 26, 2021, 11:39:25 AM5/26/21
to google-ap...@googlegroups.com
Yes, I believe that's an issue on recent MacOS versions. You need to either specify the full path to GAM or fix your alias or path values.

Jay Lee


Dustin Suchter

unread,
Mar 28, 2023, 11:32:49 AM3/28/23
to GAM for Google Workspace
I'm here because I think I'm having the same issue while trying to install GAMADV-XTD3 on macOS Monterey 12.6.3. I've tried the default install script and the -d option to explicitly specify my path, both result in the exact same error (notably $HOME/bin is already set properly so the fact that -d did not solve my error makes sense... but hey, at least I tried it!)

The authentication flow has completed.
Creating project "GAM Project"...
Checking project creation status...
Project: gam-project-xxx-xxx-xxx, Enable 34 APIs
  API: accesscontextmanager.googleapis.com, Enabled (1/34)
  API: admin.googleapis.com, Enabled (2/34)
  API: alertcenter.googleapis.com, Enabled (3/34)
  API: audit.googleapis.com, Enabled (4/34)
  API: calendar-json.googleapis.com, Enabled (5/34)
  API: chat.googleapis.com, Enabled (6/34)
  API: chromemanagement.googleapis.com, Enabled (7/34)
  API: chromepolicy.googleapis.com, Enabled (8/34)
  API: classroom.googleapis.com, Enabled (9/34)
  API: cloudchannel.googleapis.com, Enabled (10/34)
  API: cloudidentity.googleapis.com, Enabled (11/34)
  API: cloudresourcemanager.googleapis.com, Enabled (12/34)
  API: contacts.googleapis.com, Enabled (13/34)
  API: datastudio.googleapis.com, Enabled (14/34)
  API: docs.googleapis.com, Enabled (15/34)
  API: drive.googleapis.com, Enabled (16/34)
  API: driveactivity.googleapis.com, Enabled (17/34)
  API: drivelabels.googleapis.com, Enabled (18/34)
  API: forms.googleapis.com, Enabled (19/34)
  API: gmail.googleapis.com, Enabled (20/34)
  API: groupsmigration.googleapis.com, Enabled (21/34)
  API: groupssettings.googleapis.com, Enabled (22/34)
  API: iam.googleapis.com, Enabled (23/34)
  API: iap.googleapis.com, Enabled (24/34)
  API: keep.googleapis.com, Enabled (25/34)
  API: licensing.googleapis.com, Enabled (26/34)
  API: people.googleapis.com, Enabled (27/34)
  API: pubsub.googleapis.com, Enabled (28/34)
  API: reseller.googleapis.com, Enabled (29/34)
  API: sheets.googleapis.com, Enabled (30/34)
  API: siteverification.googleapis.com, Enabled (31/34)
  API: storage-api.googleapis.com, Enabled (32/34)
  API: tasks.googleapis.com, Enabled (33/34)
  API: vault.googleapis.com, Enabled (34/34)
Setting GAM project consent screen...
Project: gam-project-xxx-xxx-xxx, Service Account: gam-project...@gam-project-xxx-xxx-xxx.iam.gserviceaccount.com, Enabled
Project: gam-project-xxx-xxx-xxx, Service Account: gam-project...@gam-project-xxx-xxx-xxx.iam.gserviceaccount.com, Generating new private key
Traceback (most recent call last):
  File "__init__.py", line 68229, in ProcessGAMCommand
  File "__init__.py", line 11053, in doCreateProject
  File "__init__.py", line 10662, in _createClientSecretsOauth2service
  File "__init__.py", line 10609, in _createOauth2serviceJSON
  File "__init__.py", line 11793, in doProcessSvcAcctKeys
  File "__init__.py", line 11665, in _generatePrivateKeyAndPublicCert
  File "cryptography/hazmat/backends/__init__.py", line 8, in default_backend
  File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
  File "cryptography/hazmat/backends/openssl/__init__.py", line 6, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
  File "cryptography/hazmat/backends/openssl/backend.py", line 61, in <module>
  File "PyInstaller/loader/pyimod02_importers.py", line 352, in exec_module
  File "cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
ImportError: dlopen(/var/folders/jk/qnlb7g8x5m3579c770bwqt600000gn/T/_MEIjytFKu/cryptography/hazmat/bindings/_openssl.abi3.so, 0x0002): symbol not found in flat namespace (_NETSCAPE_SPKI_b64_decode)

Project creation failed. Trying again. Say N to skip project creation.

Ross Scroggs

unread,
Mar 28, 2023, 12:27:06 PM3/28/23
to google-ap...@googlegroups.com
Dustin,

The cryptography library that Gam uses was updated and broke the installer. I'm trying to figure out what wrong and fix it.

Send me a Meet/Zoom invitation.

Ross



--

Martin Hunt

unread,
Mar 28, 2023, 4:02:40 PM3/28/23
to GAM for Google Workspace
I also have this error, watching this thread.

Martin Hunt

unread,
Apr 4, 2023, 10:41:59 AM4/4/23
to GAM for Google Workspace
Thanks to Ross!
The latest version update fixed this issue that Apple created!

Reply all
Reply to author
Forward
0 new messages