Great guide!
I followed it to the end but at the launch of the deployment I keep getting this error :
Data:
{
"team": "Team(bhupe4qfol)",
"user": "Administrator"
}
Exception:
Traceback with variables (most recent call last):
File "apps/press/press/press/doctype/deploy_candidate_build/deploy_candidate_build.py", line 1471, in run_scheduled_builds
doc.run_scheduled_build_and_deploy()
max_builds = 5
dcs = ['3pgleg90qo']
dc = '3pgleg90qo'
doc = <DeployCandidateBuild: 3pgleg90qo>
File "apps/press/press/press/doctype/deploy_candidate_build/deploy_candidate_build.py", line 1227, in run_scheduled_build_and_deploy
self.pre_build()
self = <DeployCandidateBuild: 3pgleg90qo>
File "apps/press/press/press/doctype/deploy_candidate_build/deploy_candidate_build.py", line 1194, in pre_build
frappe.enqueue_doc(
self = <DeployCandidateBuild: 3pgleg90qo>
kwargs = {}
user = 'Administrator'
session_data = {}
team = <Team: bhupe4qfol>
queue = 'build'
File "apps/frappe/frappe/__init__.py", line 2273, in enqueue_doc
return frappe.utils.background_jobs.enqueue_doc(*args, **kwargs)
args = ('Deploy Candidate Build', '3pgleg90qo', '_build')
kwargs = {'queue': 'build', 'timeout': 2400, 'enqueue_after_commit': True}
frappe = <module 'frappe' from 'apps/frappe/frappe/__init__.py'>
File "apps/frappe/frappe/utils/background_jobs.py", line 177, in enqueue_doc
return enqueue(
doctype = 'Deploy Candidate Build'
name = '3pgleg90qo'
method = '_build'
queue = 'build'
timeout = 2400
now = False
kwargs = {'enqueue_after_commit': True}
File "apps/frappe/frappe/utils/background_jobs.py", line 123, in enqueue
q = get_queue(queue, is_async=is_async)
method = 'frappe.utils.background_jobs.run_doc_method'
queue = 'build'
event = None
is_async = True
job_name = None
now = False
enqueue_after_commit = True
deduplicate = False
kwargs = {'doctype': 'Deploy Candidate Build', 'name': '3pgleg90qo', 'doc_method': '_build'}
call_directly = False
at_front = False
job_id = 'sitename.com::08e3d84e-eebc-4c7c-ac20-2ff2e949afc0'
on_failure = None
on_success = None
timeout = 2400
File "apps/frappe/frappe/utils/background_jobs.py", line 458, in get_queue
validate_queue(qtype)
qtype = 'build'
is_async = True
File "apps/frappe/frappe/utils/background_jobs.py", line 467, in validate_queue
frappe.throw(_("Queue should be one of {0}").format(", ".join(default_queue_list)))
queue = 'build'
default_queue_list = ['short', 'default', 'long']
File "apps/frappe/frappe/__init__.py", line 609, in throw
msgprint(
msg = 'Queue should be one of short, default, long'
exc = <class 'frappe.exceptions.ValidationError'>
title = None
is_minimizable = False
wide = False
as_list = False
primary_action = None
File "apps/frappe/frappe/__init__.py", line 574, in msgprint
_raise_exception()
title = None
as_table = False
as_list = False
indicator = 'red'
alert = False
primary_action = None
is_minimizable = False
wide = False
realtime = False
sys = <module 'sys' (built-in)>
_raise_exception = <function msgprint.<locals>._raise_exception at 0x7462180cd090>
inspect = <module 'inspect' from '/usr/lib/python3.10/inspect.py'>
msg = 'Queue should be one of short, default, long'
out = {'message': 'Queue should be one of short, default, long', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '148a9fb2cc0afd383baa79ee7fe0453728c6805e7cfe8f8f39fc54b9'}
raise_exception = <class 'frappe.exceptions.ValidationError'>
File "apps/frappe/frappe/__init__.py", line 525, in _raise_exception
raise exc
exc = ValidationError('Queue should be one of short, default, long')
inspect = <module 'inspect' from '/usr/lib/python3.10/inspect.py'>
msg = 'Queue should be one of short, default, long'
out = {'message': 'Queue should be one of short, default, long', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': '148a9fb2cc0afd383baa79ee7fe0453728c6805e7cfe8f8f39fc54b9'}
raise_exception = <class 'frappe.exceptions.ValidationError'>
frappe.exceptions.ValidationError: Queue should be one of short, default, long
when I check the apps tab on the release group, I see these errors :
And on each one of the apps, it shows this error on the App source:
{"message":"API rate limit exceeded for 11.22.33.44 (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
I tried getting ssh to automatically authenticate to github with a new ssh key, but it didin’t help, even though I am able to ssh from the shell on the press server….
I’ve been scratching my head over this for too long now 
Thank you again