Coder Social home page Coder Social logo

sfdo-tooling / metecho Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 35.0 32.75 MB

Web-based tool for collaborating on Salesforce projects

License: BSD 3-Clause "New" or "Revised" License

JavaScript 25.14% Dockerfile 0.06% Shell 0.15% Python 36.36% HTML 0.79% TypeScript 36.00% SCSS 1.00% Procfile 0.01% MDX 0.50%

metecho's People

Contributors

bethbrains avatar boakley avatar davidjray avatar davidmreed avatar davisagli avatar dependabot-preview[bot] avatar dependabot[bot] avatar duggiemitchell avatar dvdherron avatar greenkeeper[bot] avatar jain-naman-sf avatar jerivas avatar jgerigmeyer avatar jkasturi-sf avatar jlantz avatar jofsky avatar jstvz avatar lakshmi2506 avatar oluoluoxenfree avatar prescod avatar pyup-bot avatar sanajaved7 avatar snyk-bot avatar sondrae avatar ssahay87 avatar stacyk avatar thebitshepherd avatar timbarton1966 avatar vsbharath avatar wlonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metecho's Issues

Bug - please upgrade to CumulusCI version 3.48.1 or later

On my personal install of Metecho, on Heroku, I received the following error message while trying to create a scratch org :
Uh oh. There was an error creating your new Scratch Org for Epic “My Epic.” click.exceptions.UsageError: This project requires CumulusCI version 3.48.1 or later. To upgrade, please run this command: pip install --upgrade cumulusci

Please upgrade Metecho to the latest version of Cumulus CI.

Error Creating Dev Orgs

I'm having some trouble creating a dev org in metecho. We don't use metecho too often, but I believe it started occurring after we upgraded to stack 'heroku-22'.

metechoErrorScreenShot

Traceback (most recent call last):
File "/app/.heroku/python/lib/python3.10/site-packages/rq/worker.py", line 1061, in perform_job
rv = job.perform()
File "/app/.heroku/python/lib/python3.10/site-packages/rq/job.py", line 821, in perform
self._result = self._execute()
File "/app/.heroku/python/lib/python3.10/site-packages/rq/job.py", line 844, in _execute
result = self.func(*self.args, **self.kwargs)
File "/app/metecho/api/jobs.py", line 479, in create_branches_on_github_then_create_scratch_org
_create_org_and_run_flow(
File "/app/metecho/api/jobs.py", line 414, in _create_org_and_run_flow
run_flow(
File "/app/metecho/api/sf_run_flow.py", line 425, in run_flow
raise SubcommandException(
metecho.exceptions.SubcommandException: /app/.heroku/python/bin/python: error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or director

Something else I found in the logs.

{
"app_name": "heroku",
"dt": "2022-12-16T22:15:10.858390Z",
"host": "host",
"message": "Starting process with command sh .heroku/start_worker.sh",
"platform": "Heroku",
"proc_id": "worker.1",
"source_type": "heroku_logs"
}
{
"app_name": "app",
"dt": "2022-12-16T22:15:11.923774Z",
"host": "host",
"message": "mkdir: cannot create directory ‘/opt’: Read-only file system",
"platform": "Heroku",
"proc_id": "worker.1",
"source_type": "heroku_logs"
}
image

getting error while login

i m trying to setup metecho but unfortunately while i try to login i am getting an error like

Social Network Login Failure

An error occurred while attempting to login via your social network account.

can you please provide more details about the github app we create , i believe it is causing the issue while login.

appreciate any help, thanks in advance.

NB:i m not an expert in python

Create org not working

The create scratch org process has been stuck like this
image

According to the logs, there appear to be an issue with the worker starting:
image

This is my heroku configuration:
image

Retrieved changes from dev org cannot be comitted

After developer is assigned to a task and made the changes on a scratch org;
'Retrieve changes from dev org' is able to retrieve the changes but cannot commit to the branch, with below error:
There seems no commits to the branch on github.

image

<class 'requests.exceptions.ReadTimeout'>: A connection-level exception occurred: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)

CumulusCI version: 3.43.0
Python version: 3.9.0

2021-09-23T11:44:51.639498+00:00 app[web.1]: 10.1.26.17:26863 - - [23/Sep/2021:11:44:51] "POST /api/scratch-orgs/R2o6Zo1/commit/" 202 1441
2021-09-23T11:44:51.630958+00:00 app[worker.1]: id=no-job-id at=INFO time="2021-09-23 11:44:51.630778" tag=external module=worker msg="default: metecho.api.jobs.commit_changes_from_org(commit_message='sda', desired_changes={'CustomField': ['Testcustomobject__c.Newtestfield__c']}, originating_user_id='NadbxgP', scratch_org=<ScratchOrg: ScratchOrg object (R2o6Zo1)>, target_directory='unpackaged/post', user=<SimpleLazyObject: <User: emregunel>>) (3f88b97b-acca-45f6-9e1e-9b27994bc1bb)"
2021-09-23T11:45:02.450714+00:00 app[worker.1]: === Retrieved Source
2021-09-23T11:45:02.453349+00:00 app[worker.1]: FULL NAME                          TYPE         PROJECT PATH
2021-09-23T11:45:02.453492+00:00 app[worker.1]: ─────────────────────────────────  ───────────  ────────────────────────────────────────────────────────────────────────────────────────────
2021-09-23T11:45:02.453913+00:00 app[worker.1]: Testcustomobject__c.Newtestfield__c  CustomField  unpackaged/post/main/default/objects/Testcustomobject__c/fields/Newtestfield__c.field-meta.xml
2021-09-23T11:42:17.000000+00:00 app[heroku-redis]: source=REDIS addon=redis-angular-17477 sample#active-connections=7 sample#load-avg-1m=0.185 sample#load-avg-5m=0.395 sample#load-avg-15m=0.41 sample#read-iops=0 sample#write-iops=0.071038 sample#memory-total=15624048kB sample#memory-free=10038132kB sample#memory-cached=2871164kB sample#memory-redis=596704bytes sample#hit-rate=0.082814 sample#evicted-keys=0
2021-09-23T11:45:14.797509+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-23T11:45:14.797531+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 445, in _make_request
2021-09-23T11:45:14.797531+00:00 app[worker.1]:     six.raise_from(e, None)
2021-09-23T11:45:14.797531+00:00 app[worker.1]:   File "<string>", line 3, in raise_from
2021-09-23T11:45:14.797532+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 440, in _make_request
2021-09-23T11:45:14.797532+00:00 app[worker.1]:     httplib_response = conn.getresponse()
2021-09-23T11:45:14.797532+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/http/client.py", line 1347, in getresponse
2021-09-23T11:45:14.797532+00:00 app[worker.1]:     response.begin()
2021-09-23T11:45:14.797533+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/http/client.py", line 307, in begin
2021-09-23T11:45:14.797533+00:00 app[worker.1]:     version, status, reason = self._read_status()
2021-09-23T11:45:14.797534+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/http/client.py", line 268, in _read_status
2021-09-23T11:45:14.797534+00:00 app[worker.1]:     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
2021-09-23T11:45:14.797534+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/socket.py", line 704, in readinto
2021-09-23T11:45:14.797534+00:00 app[worker.1]:     return self._sock.recv_into(b)
2021-09-23T11:45:14.797535+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/ssl.py", line 1241, in recv_into
2021-09-23T11:45:14.797535+00:00 app[worker.1]:     return self.read(nbytes, buffer)
2021-09-23T11:45:14.797535+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/ssl.py", line 1099, in read
2021-09-23T11:45:14.797535+00:00 app[worker.1]:     return self._sslobj.read(len, buffer)
2021-09-23T11:45:14.797535+00:00 app[worker.1]: socket.timeout: The read operation timed out
2021-09-23T11:45:14.797535+00:00 app[worker.1]: 
2021-09-23T11:45:14.797536+00:00 app[worker.1]: During handling of the above exception, another exception occurred:
2021-09-23T11:45:14.797536+00:00 app[worker.1]: 
2021-09-23T11:45:14.797536+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-23T11:45:14.797536+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
2021-09-23T11:45:14.797536+00:00 app[worker.1]:     resp = conn.urlopen(
2021-09-23T11:45:14.797536+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
2021-09-23T11:45:14.797537+00:00 app[worker.1]:     retries = retries.increment(
2021-09-23T11:45:14.797537+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/urllib3/util/retry.py", line 532, in increment
2021-09-23T11:45:14.797537+00:00 app[worker.1]:     raise six.reraise(type(error), error, _stacktrace)
2021-09-23T11:45:14.797537+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/urllib3/packages/six.py", line 770, in reraise
2021-09-23T11:45:14.797537+00:00 app[worker.1]:     raise value
2021-09-23T11:45:14.797538+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
2021-09-23T11:45:14.797538+00:00 app[worker.1]:     httplib_response = self._make_request(
2021-09-23T11:45:14.797538+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 447, in _make_request
2021-09-23T11:45:14.797538+00:00 app[worker.1]:     self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
2021-09-23T11:45:14.797538+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py", line 336, in _raise_timeout
2021-09-23T11:45:14.797538+00:00 app[worker.1]:     raise ReadTimeoutError(
2021-09-23T11:45:14.797539+00:00 app[worker.1]: urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)
2021-09-23T11:45:14.797539+00:00 app[worker.1]: 
2021-09-23T11:45:14.797539+00:00 app[worker.1]: During handling of the above exception, another exception occurred:
2021-09-23T11:45:14.797539+00:00 app[worker.1]: 
2021-09-23T11:45:14.797539+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-23T11:45:14.797540+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/github3/models.py", line 195, in _request
2021-09-23T11:45:14.797540+00:00 app[worker.1]:     return request_method(*args, **kwargs)
2021-09-23T11:45:14.797540+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/requests/sessions.py", line 590, in post
2021-09-23T11:45:14.797540+00:00 app[worker.1]:     return self.request('POST', url, data=data, json=json, **kwargs)
2021-09-23T11:45:14.797540+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/github3/session.py", line 174, in request
2021-09-23T11:45:14.797540+00:00 app[worker.1]:     response = super(GitHubSession, self).request(*args, **kwargs)
2021-09-23T11:45:14.797541+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
2021-09-23T11:45:14.797541+00:00 app[worker.1]:     resp = self.send(prep, **send_kwargs)
2021-09-23T11:45:14.797541+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
2021-09-23T11:45:14.797541+00:00 app[worker.1]:     r = adapter.send(request, **kwargs)
2021-09-23T11:45:14.797541+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/requests/adapters.py", line 529, in send
2021-09-23T11:45:14.797541+00:00 app[worker.1]:     raise ReadTimeout(e, request=request)
2021-09-23T11:45:14.797541+00:00 app[worker.1]: requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)
2021-09-23T11:45:14.797542+00:00 app[worker.1]: 
2021-09-23T11:45:14.797542+00:00 app[worker.1]: During handling of the above exception, another exception occurred:
2021-09-23T11:45:14.797542+00:00 app[worker.1]: 
2021-09-23T11:45:14.797542+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-23T11:45:14.797542+00:00 app[worker.1]:   File "/app/metecho/api/jobs.py", line 439, in commit_changes_from_org
2021-09-23T11:45:14.797542+00:00 app[worker.1]:     commit_changes_to_github(
2021-09-23T11:45:14.797543+00:00 app[worker.1]:   File "/app/metecho/api/sf_org_changes.py", line 172, in commit_changes_to_github
2021-09-23T11:45:14.797543+00:00 app[worker.1]:     CommitDir(repo, author=author)(
2021-09-23T11:45:14.797543+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/cumulusci/tasks/github/util.py", line 65, in __call__
2021-09-23T11:45:14.797543+00:00 app[worker.1]:     new_tree = self._create_tree(self.new_tree_list)
2021-09-23T11:45:14.797543+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/cumulusci/tasks/github/util.py", line 167, in _create_tree
2021-09-23T11:45:14.797548+00:00 app[worker.1]:     new_tree = self.repo.create_tree(new_tree_list, None)
2021-09-23T11:45:14.797549+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/github3/decorators.py", line 26, in auth_wrapper
2021-09-23T11:45:14.797549+00:00 app[worker.1]:     return func(self, *args, **kwargs)
2021-09-23T11:45:14.797549+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/github3/repos/repo.py", line 1375, in create_tree
2021-09-23T11:45:14.797549+00:00 app[worker.1]:     json = self._json(self._post(url, data=data), 201)
2021-09-23T11:45:14.797550+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/github3/models.py", line 220, in _post
2021-09-23T11:45:14.797550+00:00 app[worker.1]:     return self._request("post", url, data, **kwargs)
2021-09-23T11:45:14.797550+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/github3/models.py", line 200, in _request
2021-09-23T11:45:14.797550+00:00 app[worker.1]:     raise exceptions.ConnectionError(exc)
2021-09-23T11:45:14.797551+00:00 app[worker.1]: github3.exceptions.ConnectionError: <class 'requests.exceptions.ReadTimeout'>: A connection-level exception occurred: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)
2021-09-23T11:45:14.797551+00:00 app[worker.1]: 
2021-09-23T11:45:14.802145+00:00 app[worker.1]: id=no-job-id at=ERROR time="2021-09-23 11:45:14.801929" tag=external module=worker msg="Traceback (most recent call last):
2021-09-23T11:45:14.802145+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 445, in _make_request
2021-09-23T11:45:14.802145+00:00 app[worker.1]:     six.raise_from(e, None)
2021-09-23T11:45:14.802145+00:00 app[worker.1]:   File \"<string>\", line 3, in raise_from
2021-09-23T11:45:14.802146+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 440, in _make_request
2021-09-23T11:45:14.802146+00:00 app[worker.1]:     httplib_response = conn.getresponse()
2021-09-23T11:45:14.802146+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/http/client.py\", line 1347, in getresponse
2021-09-23T11:45:14.802146+00:00 app[worker.1]:     response.begin()
2021-09-23T11:45:14.802147+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/http/client.py\", line 307, in begin
2021-09-23T11:45:14.802147+00:00 app[worker.1]:     version, status, reason = self._read_status()
2021-09-23T11:45:14.802147+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/http/client.py\", line 268, in _read_status
2021-09-23T11:45:14.802147+00:00 app[worker.1]:     line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")
2021-09-23T11:45:14.802148+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/socket.py\", line 704, in readinto
2021-09-23T11:45:14.802148+00:00 app[worker.1]:     return self._sock.recv_into(b)
2021-09-23T11:45:14.802149+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/ssl.py\", line 1241, in recv_into
2021-09-23T11:45:14.802149+00:00 app[worker.1]:     return self.read(nbytes, buffer)
2021-09-23T11:45:14.802149+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/ssl.py\", line 1099, in read
2021-09-23T11:45:14.802149+00:00 app[worker.1]:     return self._sslobj.read(len, buffer)
2021-09-23T11:45:14.802150+00:00 app[worker.1]: socket.timeout: The read operation timed out
2021-09-23T11:45:14.802150+00:00 app[worker.1]: 
2021-09-23T11:45:14.802150+00:00 app[worker.1]: During handling of the above exception, another exception occurred:
2021-09-23T11:45:14.802150+00:00 app[worker.1]: 
2021-09-23T11:45:14.802151+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-23T11:45:14.802151+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/requests/adapters.py\", line 439, in send
2021-09-23T11:45:14.802151+00:00 app[worker.1]:     resp = conn.urlopen(
2021-09-23T11:45:14.802151+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 755, in urlopen
2021-09-23T11:45:14.802151+00:00 app[worker.1]:     retries = retries.increment(
2021-09-23T11:45:14.802151+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/urllib3/util/retry.py\", line 532, in increment
2021-09-23T11:45:14.802152+00:00 app[worker.1]:     raise six.reraise(type(error), error, _stacktrace)
2021-09-23T11:45:14.802152+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/urllib3/packages/six.py\", line 770, in reraise
2021-09-23T11:45:14.802152+00:00 app[worker.1]:     raise value
2021-09-23T11:45:14.802152+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 699, in urlopen
2021-09-23T11:45:14.802152+00:00 app[worker.1]:     httplib_response = self._make_request(
2021-09-23T11:45:14.802153+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 447, in _make_request
2021-09-23T11:45:14.802153+00:00 app[worker.1]:     self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
2021-09-23T11:45:14.802153+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/urllib3/connectionpool.py\", line 336, in _raise_timeout
2021-09-23T11:45:14.802153+00:00 app[worker.1]:     raise ReadTimeoutError(
2021-09-23T11:45:14.802160+00:00 app[worker.1]: urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)
2021-09-23T11:45:14.802160+00:00 app[worker.1]: 
2021-09-23T11:45:14.802160+00:00 app[worker.1]: During handling of the above exception, another exception occurred:
2021-09-23T11:45:14.802160+00:00 app[worker.1]: 
2021-09-23T11:45:14.802161+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-23T11:45:14.802161+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/github3/models.py\", line 195, in _request
2021-09-23T11:45:14.802161+00:00 app[worker.1]:     return request_method(*args, **kwargs)
2021-09-23T11:45:14.802161+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/requests/sessions.py\", line 590, in post
2021-09-23T11:45:14.802161+00:00 app[worker.1]:     return self.request('POST', url, data=data, json=json, **kwargs)
2021-09-23T11:45:14.802162+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/github3/session.py\", line 174, in request
2021-09-23T11:45:14.802162+00:00 app[worker.1]:     response = super(GitHubSession, self).request(*args, **kwargs)
2021-09-23T11:45:14.802162+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/requests/sessions.py\", line 542, in request
2021-09-23T11:45:14.802162+00:00 app[worker.1]:     resp = self.send(prep, **send_kwargs)
2021-09-23T11:45:14.802162+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/requests/sessions.py\", line 655, in send
2021-09-23T11:45:14.802162+00:00 app[worker.1]:     r = adapter.send(request, **kwargs)
2021-09-23T11:45:14.802162+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/requests/adapters.py\", line 529, in send
2021-09-23T11:45:14.802163+00:00 app[worker.1]:     raise ReadTimeout(e, request=request)
2021-09-23T11:45:14.802163+00:00 app[worker.1]: requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)
2021-09-23T11:45:14.802163+00:00 app[worker.1]: 
2021-09-23T11:45:14.802165+00:00 app[worker.1]: During handling of the above exception, another exception occurred:
2021-09-23T11:45:14.802165+00:00 app[worker.1]: 
2021-09-23T11:45:14.802165+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-23T11:45:14.802165+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/rq/worker.py\", line 1031, in perform_job
2021-09-23T11:45:14.802165+00:00 app[worker.1]:     rv = job.perform()
2021-09-23T11:45:14.802166+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/rq/job.py\", line 749, in perform
2021-09-23T11:45:14.802166+00:00 app[worker.1]:     self._result = self._execute()
2021-09-23T11:45:14.802166+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/rq/job.py\", line 772, in _execute
2021-09-23T11:45:14.802168+00:00 app[worker.1]:     result = self.func(*self.args, **self.kwargs)
2021-09-23T11:45:14.802169+00:00 app[worker.1]:   File \"/app/metecho/api/jobs.py\", line 439, in commit_changes_from_org
2021-09-23T11:45:14.802169+00:00 app[worker.1]:     commit_changes_to_github(
2021-09-23T11:45:14.802169+00:00 app[worker.1]:   File \"/app/metecho/api/sf_org_changes.py\", line 172, in commit_changes_to_github
2021-09-23T11:45:14.802169+00:00 app[worker.1]:     CommitDir(repo, author=author)(
2021-09-23T11:45:14.802169+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/cumulusci/tasks/github/util.py\", line 65, in __call__
2021-09-23T11:45:14.802170+00:00 app[worker.1]:     new_tree = self._create_tree(self.new_tree_list)
2021-09-23T11:45:14.802170+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/cumulusci/tasks/github/util.py\", line 167, in _create_tree
2021-09-23T11:45:14.802170+00:00 app[worker.1]:     new_tree = self.repo.create_tree(new_tree_list, None)
2021-09-23T11:45:14.802170+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/github3/decorators.py\", line 26, in auth_wrapper
2021-09-23T11:45:14.802170+00:00 app[worker.1]:     return func(self, *args, **kwargs)
2021-09-23T11:45:14.802170+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/github3/repos/repo.py\", line 1375, in create_tree
2021-09-23T11:45:14.802171+00:00 app[worker.1]:     json = self._json(self._post(url, data=data), 201)
2021-09-23T11:45:14.802171+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/github3/models.py\", line 220, in _post
2021-09-23T11:45:14.802171+00:00 app[worker.1]:     return self._request(\"post\", url, data, **kwargs)
2021-09-23T11:45:14.802171+00:00 app[worker.1]:   File \"/app/.heroku/python/lib/python3.9/site-packages/github3/models.py\", line 200, in _request
2021-09-23T11:45:14.802171+00:00 app[worker.1]:     raise exceptions.ConnectionError(exc)
2021-09-23T11:45:14.802172+00:00 app[worker.1]: github3.exceptions.ConnectionError: <class 'requests.exceptions.ReadTimeout'>: A connection-level exception occurred: HTTPSConnectionPool(host='api.github.com', port=443): Read timed out. (read timeout=10)
2021-09-23T11:45:14.802172+00:00 app[worker.1]: "

HELP : button SVG files are not loading on Heroku

Is there a Django setting or something to make button SVG icons not get rejected by a CORS constraint ?

Here is the error message on loading any Metecho page which displays a button/menu :
Unsafe attempt to load URL data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' display='none'%3e%3csymbol viewBox='0 0 52 52' id='activity' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M37.618 11.67c-1.54.5-2.783.98-3.723 1.438-.747.364-1.687.901-2.814 1.61.086 1.882.084 3.463-.009 4.754-.094 1.304-.342 3.173-.746 5.63l-.001.003c2.815 2.028 4.848 3.56 6.11 4.604.163.135.633.584.856.783l4.344-1.82.028-.074c.627-1.347 1.145-3.186 1.54-5.507.322-1.899.376-3.99.159-6.276l-5.744-5.14...-14-14S14.3 8 22 8s14 6.3 14 14-6.3 14-14 14z'/%3e%3c/symbol%3e%3csymbol viewBox='0 0 52 52' id='zoomout' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M19 25h12c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1H19M19 19h-6c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6'/%3e%3cpath d='M49.6 45.3L38.1 33.8C40.5 30.5 42 26.4 42 22c0-11-9-20-20-20S2 11 2 22s9 20 20 20c4.4 0 8.5-1.5 11.8-3.9l11.5 11.5c.6.6 1.5.6 2.1 0l2.1-2.1c.6-.6.6-1.6.1-2.2zM22 36c-7.7 0-14-6.3-14-14S14.3 8 22 8s14 6.3 14 14-6.3 14-14 14z'/%3e%3c/symbol%3e%3c/svg%3e#down from origin https://mymetecho.herokuapp.com. Domains, protocols and ports must match

Error when creating scratch orgs

I am receiving an error when creating a scratch org.

The last line of the log is “/app/.heroku/python/bin/python: error while loading shared libraries: libpython3.10.so.1.0: cannot open shared object file: No such file or directory”

To replicate:

  • Create an empty project via Metecho

  • Try to spawn a scratch org.

Enhance GitHub app error messaging and support Base64 encoded keys

A user encountered difficulties while using Metecho on Docker, specifically in creating projects and authenticating. Despite correctly configuring permissions and populating the .env file, they received error messages:

  1. "We couldn’t find any Projects you have access to on GitHub. Confirm that you are logged into the correct account or contact an admin on GitHub."
  2. "You are not a member of any GitHub Organization with permissions to create new Projects on Metecho. Confirm that you are logged into the correct account or contact an admin on GitHub."
  3. "GitHub App has not been installed on this organization"

The problem was identified as an additional newline character \n in the DOCKER_GITHUB_APP_KEY, leading to authentication issues.

Occasionally, developers incorrectly format other private keys, resulting in similar problems. This indicates a wider issue related to key handling.

Suggested Improvement:

  1. Improve error messaging related to the GitHub app to provide more descriptive and helpful guidance for identifying potential problems with key formatting or content. The messages should include checks for common mistakes like extra characters, spaces, or newline characters.

  2. Add support for Base64 encoded keys to help avoid the problem of incorrect formatting. This improvement would make the integration more resilient and tolerant of minor formatting errors in private keys, ultimately reducing user frustration and the need for support assistance.

No projects show

Describe the bug
Unable to see any projects.

To Reproduce
Steps to reproduce the behavior:

  1. Go to metecho.herokuapp.com
  2. Log in to GitHub
  3. No Projects show.

Expected behavior
After logging in to Metecho no projects show up and an error appears at the top of the page. Another error appears after a minute or so.

Screenshots
image

image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version 110.0.5481.100

setuptools version conflict between dependencies from cumulusci and metecho

I'm updating my Heroku installation of Metecho for the first time since several months.
Using Heroku build from my Metecho fork, I get this strange error :
-----> Installing pip 21.3.1, setuptools 57.5.0 and wheel 0.37.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. cumulusci 3.36.0 requires setuptools==57.0.0, but you have setuptools 57.5.0 which is incompatible.

Here is the whole build log :
build.log

populate_data not working

The local development steps worked all the way up to python manage.py populate_data to which I get this error
image

Feature Request: Allow users to add orgs to Metecho without creating them.

As a user of Metecho with a moderately complex org I need a faster way to create scratch orgs for work. It currently takes ~60-80 minutes for one of our scratch orgs to be spun up and ready for development. This is almost entirely time spent installing managed packages. This becomes an impediment when the work being done only takes 45 minutes (say, adding a flow). Our solution, here at Chief, is to utilize scratch org pooling. Our CI system maintains a pool of 15 pre-created scratch orgs with all our managed packages pre-installed. Our developers and Admins can 'adopt' a scratch org from the pool and are given the user/pass when they adopt it. If Metecho allowed us to add an org without having to create the scratch org, this would allow us to use our pool'd orgs. It would also allow users to authorize source-tracking enabled sandboxes for use in Metecho.

Section to create a new "My Project Scratch Org" does not allow Scratch Org creation in some circumstances

Issue:

When on the main Metecho page for a project, attempting to create a new scratch org within the "My Project Scratch Org" section is not initially possible if someone else is already creating a scratch org using that option. Button is removed and replaced with the "Creating Org..." notification.

Screen Shot 2021-07-15 at 9 40 56 AM

Steps to repro:

  1. Log into Metecho ensuring you have write access to at least one project, and navigate to that project page. For example https://metecho.herokuapp.com/projects/summit-events-app.

  2. Ask another use to also log in and navigate to that same project page.

  3. Ask the other person to click the Create Scratch Org button within the My Project Scratch Org section to kick off creating a scratch org for the project.
    Screen Shot 2021-07-15 at 10 38 49 AM

  4. Note that on your screen the creation option is replaced with a message that the scratch org is being created, preventing you from creating your own scratch org.
    Screen Shot 2021-07-15 at 9 40 56 AM

  5. Refresh your browser, and you should see the create button again. This will remain on your screen for a short time before being replaced with the creation message again (even if you don't click the button to create a new scratch org).

Workaround:

Refresh your browser, then quickly click the Create Scratch Org button.

Feature Request: Abstract the acquisition of a scratch org behind configuration.

As a Metecho user with a moderately complex org, it can take ~90 minutes for a scratch org to be spun up. Our internal solution to this at Chief is to use scratch org pooling. I would love to be able to configure how Metecho acquires a scratch org, so that I can direct Metecho to 'adopt' a scratch org, rather than create a net new one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.