skyvern icon indicating copy to clipboard operation
skyvern copied to clipboard

Issue with database

Open devinat1 opened this issue 1 year ago • 4 comments

Upon a fresh run through, am getting:

Traceback (most recent call last):
  File "/home/vagrant/agent-collector/agents/open-source/skyvern/skyvern.py", line 184, in <module>
    PayloadGenerator(site, task, real_site)
  File "/home/vagrant/agent-collector/agents/open-source/skyvern/skyvern.py", line 58, in __init__
    res = self.send_request(payload)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/agent-collector/agents/open-source/skyvern/skyvern.py", line 140, in send_request
    response = requests.post(
               ^^^^^^^^^^^^^^
  File "/home/vagrant/miniconda3/envs/dark/lib/python3.11/site-packages/requests/api.py", line 115, in post
    return request("post", url, data=data, json=json, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/miniconda3/envs/dark/lib/python3.11/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/miniconda3/envs/dark/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/miniconda3/envs/dark/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vagrant/miniconda3/envs/dark/lib/python3.11/site-packages/requests/adapters.py", line 622, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8000): Max retries exceeded with url: /api/v1/tasks (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7160b8d490>: Failed to establish a new connection: [Errno 111] Connection refused'))

devinat1 avatar Aug 07 '24 00:08 devinat1

@devinat1 are you using the Docker setup or the contributor setup?

suchintan avatar Aug 07 '24 14:08 suchintan

@suchintan Contributor setup (./setup.sh) which includes docker. The same issue occurred on both mac and ubuntu

devinat1 avatar Aug 07 '24 17:08 devinat1

oh interesting. you're currently not using the docker setup -- and doing the contributor setup instead

Let's assume you're running on a mac -- can you check two things:

  1. Do you have postgres running via Docker?
  2. Do you have postgres running via brew?

I suspect you might have both running (which always causes issues)

suchintan avatar Aug 07 '24 17:08 suchintan

@suchintan postgres running via Docker If by brew you mean homebrew, no, since I am running on Ubuntu which doesn't have it.

devinat1 avatar Aug 13 '24 05:08 devinat1

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Sep 13 '24 01:09 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Sep 27 '24 02:09 github-actions[bot]