GAM broken

275 views
Skip to first unread message

PS

unread,
Mar 19, 2018, 12:10:42 AM3/19/18
to GAM for G Suite

Hello All,
Have been using GAM for couple of years now with no prob all of sudden it became very slow (like 15-20 mins to execute a command). So i thought i will first upgrade and go forward troubleshooting. After upgrading i am getting this error

Traceback (most recent call last):
  File "gam.py", line 12881, in <module>
  File "gam.py", line 12074, in ProcessGAMCommand
  File "gam.py", line 423, in SetGlobalVariables
  File "gam.py", line 464, in doGAMCheckForUpdates
  File "httplib2/__init__.py", line 1659, in request
  File "httplib2/__init__.py", line 1399, in _request
  File "httplib2/__init__.py", line 1355, in _conn_request
  File "httplib.py", line 1108, in getresponse
httplib.ResponseNotReady

The commands are still running very slow. Will also reboot my server and try. Meanwhile anyone faced any issue liked this and if you could please.

PS

unread,
Mar 19, 2018, 1:32:19 AM3/19/18
to GAM for G Suite


On Monday, March 19, 2018 at 9:40:42 AM UTC+5:30, PS wrote:
OK i uninstalled and tried reinstalling. I changed the default path as we cannot use home/bin. This is our inhouse automation tool server . I am getting error.

ERROR: extracting the GAM archive with tar failed with error 2. Exiting.

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

Getting file and download URL...

Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Downloading file  from  to /tmp/tmp.b0rbw8AnRn.

curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
Extracting archive to (/removing/the/path/of/our/linux/server)

tar: /tmp/tmp.b0rbw8AnRn/: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
ERROR: extracting the GAM archive with tar failed with error 2. Exiting.

PS

unread,
Mar 19, 2018, 5:18:40 AM3/19/18
to GAM for G Suite
Ok so for better troubleshooting. I tried this 


+ target_dir=/path/hidden/for/my/linux/server
++ uname -m
+ gamarch=x86_64
++ uname -s
+ gamos=Linux
+ update_profile=true
+ upgrade_only=false
+ gamversion=latest
+ adminuser=
+ regularuser=
+ getopts hd:a:o:lp:u:r:v: OPTION
+ case $gamos in
+ gamos=linux
+ case $gamarch in
+ gamfile=linux-x86_64.tar.xz
+ '[' latest == latest -o latest == prerelease -o latest == draft ']'
+ echo_yellow 'Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...'
+ echo -e '\x1B[1;33mChecking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...'
Checking GitHub URL https://api.github.com/repos/jay0lee/GAM/releases for latest GAM release...
+ echo -e '\x1B[0m'

+ release_json=
+ echo_yellow 'Getting file and download URL...'
+ echo -e '\x1B[1;33mGetting file and download URL...'
Getting file and download URL...
+ echo -e '\x1B[0m'

+ pycode='import json
import sys

attrib = sys.argv[1]
gamversion = sys.argv[2]

release = json.load(sys.stdin)
if type(release) is list:
  for a_release in release:
    if a_release['\''prerelease'\''] and gamversion != '\''prerelease'\'':
      continue
    elif a_release['\''draft'\''] and gamversion != '\''draft'\'':
      continue
    release = a_release
    break
for asset in release['\''assets'\'']:
  if asset[sys.argv[1]].endswith('\''linux-x86_64.tar.xz'\''):
    print(asset[sys.argv[1]])
    break'
+ pycmd=python
+ python -V
+ rc=0
+ ((  0 != 0  ))
+ python -V
+ rc=0
+ ((  0 != 0  ))
++ echo ''
++ python -c 'import json
import sys

attrib = sys.argv[1]
gamversion = sys.argv[2]

release = json.load(sys.stdin)
if type(release) is list:
  for a_release in release:
    if a_release['\''prerelease'\''] and gamversion != '\''prerelease'\'':
      continue
    elif a_release['\''draft'\''] and gamversion != '\''draft'\'':
      continue
    release = a_release
    break
for asset in release['\''assets'\'']:
  if asset[sys.argv[1]].endswith('\''linux-x86_64.tar.xz'\''):
    print(asset[sys.argv[1]])
    break' browser_download_url latest
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
+ browser_download_url=
++ echo ''
++ python -c 'import json
import sys

attrib = sys.argv[1]
gamversion = sys.argv[2]

release = json.load(sys.stdin)
if type(release) is list:
  for a_release in release:
    if a_release['\''prerelease'\''] and gamversion != '\''prerelease'\'':
      continue
    elif a_release['\''draft'\''] and gamversion != '\''draft'\'':
      continue
    release = a_release
    break
for asset in release['\''assets'\'']:
  if asset[sys.argv[1]].endswith('\''linux-x86_64.tar.xz'\''):
    print(asset[sys.argv[1]])
    break' name latest
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
+ name=
++ mktemp -d
+ temp_archive_dir=/tmp/tmp.lXz0uZif95
+ echo_yellow 'Downloading file  from  to /tmp/tmp.lXz0uZif95.'
+ echo -e '\x1B[1;33mDownloading file  from  to /tmp/tmp.lXz0uZif95.'
Downloading file  from  to /tmp/tmp.lXz0uZif95.
+ echo -e '\x1B[0m'

+ cd /tmp/tmp.lXz0uZif95
+ curl -O -L
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for more information
+ mkdir -p /path/hidden/for/my/linux/server
+ echo_yellow 'Extracting archive to /path/hidden/for/my/linux/server'
+ echo -e '\x1B[1;33mExtracting archive to /path/hidden/for/my/linux/server'
Extracting archive to /path/hidden/for/my/linux/server
+ echo -e '\x1B[0m'

+ tar xf /tmp/tmp.lXz0uZif95/ -C /path/hidden/for/my/linux/server
tar: /tmp/tmp.lXz0uZif95/: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
+ rc=2
+ ((  2 != 0  ))
+ echo_red 'ERROR: extracting the GAM archive with tar failed with error 2. Exiting.'
+ echo -e '\x1B[1;31mERROR: extracting the GAM archive with tar failed with error 2. Exiting.'
ERROR: extracting the GAM archive with tar failed with error 2. Exiting.
+ echo -e '\x1B[0m'

+ exit


On Monday, March 19, 2018 at 9:40:42 AM UTC+5:30, PS wrote:

PS

unread,
Mar 19, 2018, 5:45:48 AM3/19/18
to GAM for G Suite
Ok finally able to install after upgrading my curl and nss-utils.


On Monday, March 19, 2018 at 9:40:42 AM UTC+5:30, PS wrote:
Reply all
Reply to author
Forward
0 new messages