IOError: [Errno 13] Permission denied

871 views
Skip to first unread message

Andrew Moore

unread,
Aug 21, 2014, 1:23:32 PM8/21/14
to google-ap...@googlegroups.com
Getting this error when i set up a new user on linux and try to run gam under the new user.

i changed the Permissions and Group ownership from Root to the new users and still no go:

IOError: [Errno 13] Permission denied: u'/opt/gam/gam-test/gamcache/www.googleapis.com,discovery,v1,apis,admin,directory_v1,rest,prettyPrint=false,204b160b95cee4cb5da6ae1de8d3c4e9'

it still works fine under Root, but i would prefer not to use Root. Ideas?

Here is the whole message:

Traceback (most recent call last):
  File "/opt/gam/gam-test/gam.py", line 7172, in <module>
    doPrintUsers()
  File "/opt/gam/gam-test/gam.py", line 5355, in doPrintUsers
    cd = buildGAPIObject(u'directory')
  File "/opt/gam/gam-test/gam.py", line 535, in buildGAPIObject
    service = apiclient.discovery.build(api, version, http=http)
  File "/opt/gam/gam-test/oauth2client/util.py", line 132, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/opt/gam/gam-test/apiclient/discovery.py", line 196, in build
    resp, content = http.request(requested_url)
  File "/opt/gam/gam-test/oauth2client/util.py", line 132, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/opt/gam/gam-test/oauth2client/client.py", line 490, in new_request
    redirections, connection_type)
  File "/opt/gam/gam-test/httplib2/__init__.py", line 1553, in request
    _updateCache(headers, merged_response, content, self.cache, cachekey)
  File "/opt/gam/gam-test/httplib2/__init__.py", line 448, in _updateCache
    cache.set(cachekey, text)
  File "/opt/gam/gam-test/httplib2/__init__.py", line 715, in set
    f = file(cacheFullPath, "wb")
IOError: [Errno 13] Permission denied: u'/opt/gam/gam-test/gamcache/www.googleapis.com,discovery,v1,apis,admin,directory_v1,rest,prettyPrint=false,204b160b95cee4cb5da6ae1de8d3c4e9'

Andrew Moore

unread,
Aug 21, 2014, 3:55:27 PM8/21/14
to google-ap...@googlegroups.com
NVM figured it out. the gamcache folder files were still owned by root. updated the folder to the new user and all is well

Johann Carl Callelero

unread,
Jan 27, 2015, 9:36:50 PM1/27/15
to google-ap...@googlegroups.com
Hi,

Can anyone help for windows? can't seem to run GAM. Got the same error.


Traceback (most recent call last):
  File "gam.py", line 5894, in <module>
  File "gam.py", line 4345, in doPrintUsers
  File "gam.py", line 479, in buildGAPIObject
  File "oauth2client\util.pyo", line 132, in positional_wrapper
  File "apiclient\discovery.pyo", line 196, in build
  File "oauth2client\util.pyo", line 132, in positional_wrapper
  File "oauth2client\client.pyo", line 490, in new_request
  File "httplib2\__init__.pyo", line 1540, in request
  File "httplib2\__init__.pyo", line 1375, in _request
  File "httplib2\__init__.pyo", line 448, in _updateCache
  File "httplib2\__init__.pyo", line 715, in set
IOError: [Errno 13] Permission denied: 'C:\\Google Tools\\GAM 3.0.1\\gamcache\\w
ww.googleapis.com,discovery,v1,apis,admin,directory_v1,rest,prettyPrint=false,20
4b160b95cee4cb5da6ae1de8d3c4e9'

This e-mail message (including attachments, if any) is intended for the use of the individual or the entity to whom it is addressed and may contain information that is privileged, proprietary, confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and delete this E-mail message immediately.

Jay Lee

unread,
Jan 28, 2015, 10:10:28 AM1/28/15
to google-ap...@googlegroups.com
If you're not running the latest GAM 3.42, upgrade and try again.


Jay Lee


--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" 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 http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/b04ee3b4-e900-4b09-8dd3-46bd187b79ef%40googlegroups.com.

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

Reply all
Reply to author
Forward
0 new messages