Error trying to unlock a package

14 views
Skip to first unread message

Christopher Hearn

unread,
Aug 17, 2015, 6:31:37 PM8/17/15
to Simian Discuss
I get this when trying to unlock a package in the package admin:

500 Internal Server Error

The server has either erred or is incapable of performing the requested operation.


Logs:

2015-08-17 07:40:52.738 /admin/package/Test%20Package-2.0.0-592.pkg?unlock=1 500 57ms 0kb Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36 module=default version=141846d3993d
4.4.4.4 - admin [17/Aug/2015:07:40:52 -0700] "POST /admin/package/Test%20Package-2.0.0-592.pkg?unlock=1 HTTP/1.1" 500 225 - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.155 Safari/537.36" "app.appspot.com" ms=57 cpu_ms=25 cpm_usd=0.000025 app_engine_release=1.9.25 instance=00c61b117cb7b46600edc222c45081de51ec2f4f
E 2015-08-17 07:40:52.736
email_admin_list
Traceback (most recent call last):
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__
    rv = self.handle_exception(request, response, e)
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__
    rv = self.router.dispatch(request, response)
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in __call__
    return handler.dispatch()
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/base/data/home/apps/s~app/141846d3993d.386224994563146900/simian/mac/admin/__init__.py", line 153, in handle_exception
    super(AdminHandler, self).handle_exception(exception, debug_mode)
  File "/base/data/home/runtimes/python27/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)
  File "/base/data/home/apps/s~app/141846d3993d.386224994563146900/simian/mac/admin/package.py", line 153, in post
    self._UnlockPackage(p, filename)
  File "/base/data/home/apps/s~app/141846d3993d.386224994563146900/simian/mac/admin/package.py", line 229, in _UnlockPackage
    self.NotifyAdminsOfPackageUnlock(p)
  File "/base/data/home/apps/s~app/141846d3993d.386224994563146900/simian/mac/admin/package.py", line 301, in NotifyAdminsOfPackageUnlock
    mail.SendMail(settings.EMAIL_ADMIN_LIST, subject_line, main_body)
  File "/base/data/home/apps/s~app/141846d3993d.386224994563146900/simian/settings.py", line 414, in __getattr__
    return self._Get(str(k).lower())
  File "/base/data/home/apps/s~app/141846d3993d.386224994563146900/simian/settings.py", line 868, in _Get
    raise AttributeError(k)
AttributeError: email_admin_list


I do have email_admin_list commented out in settings.py

Justin McWilliams

unread,
Aug 18, 2015, 1:53:28 PM8/18/15
to Simian Discuss
I have a change to fix this (by making email cofigurations optional, disabled by default) out for review.

In the interim, you should be able to fix this by setting the Email Admin List in Simian web UI -> Admin -> Configuration.

--
You received this message because you are subscribed to the Google Groups "Simian Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simian-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Justin McWilliams

unread,
Aug 18, 2015, 1:54:59 PM8/18/15
to Simian Discuss
On Tue, Aug 18, 2015 at 1:52 PM, Justin McWilliams <og...@google.com> wrote:
I have a change to fix this (by making email cofigurations optional, disabled by default) out for review.

In the interim, you should be able to fix this by setting the Email Admin List in Simian web UI -> Admin -> Configuration.

Or unchecking the "Notify Admins of all changes" checkbox on the same page.

Justin McWilliams

unread,
Aug 18, 2015, 4:09:02 PM8/18/15
to Simian Discuss
https://github.com/google/simian/commit/25749932c0aeb82ec0edef11682d3a91dd001378

Or sync to that change and release.  Let me know if it doesn't work as intended....
Reply all
Reply to author
Forward
0 new messages