Skip to content

Unable to run skyvern locally following README guide #1255

@jfelten

Description

@jfelten

Hi,

New user here and I hope this is user error.

I tried setting up skyvern locally, but am unable to do so, because no org or skyvern API key gets created. I tried both docker-compose and running the setup.sh/runSkyvern.sh on my mac.

The issue seems to be in the script that generates the org:

poetry run python scripts/create_organization.py test-org

│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │           attempt = {                                                    │ │
│ │                     │   'host': 'localhost',                             │ │
│ │                     │   'dbname': 'skyvern',                             │ │
│ │                     │   'user': 'skyvern',                               │ │
│ │                     │   'options': '-c statement_timeout=60000',         │ │
│ │                     │   'hostaddr': '127.0.0.1'                          │ │
│ │                     }                                                    │ │
│ │          attempts = [                                                    │ │
│ │                     │   {                                                │ │
│ │                     │   │   'host': 'localhost',                         │ │
│ │                     │   │   'dbname': 'skyvern',                         │ │
│ │                     │   │   'user': 'skyvern',                           │ │
│ │                     │   │   'options': '-c statement_timeout=60000',     │ │
│ │                     │   │   'hostaddr': '::1'                            │ │
│ │                     │   },                                               │ │
│ │                     │   {                                                │ │
│ │                     │   │   'host': 'localhost',                         │ │
│ │                     │   │   'dbname': 'skyvern',                         │ │
│ │                     │   │   'user': 'skyvern',                           │ │
│ │                     │   │   'options': '-c statement_timeout=60000',     │ │
│ │                     │   │   'hostaddr': '127.0.0.1'                      │ │
│ │                     │   }                                                │ │
│ │                     ]                                                    │ │
│ │        autocommit = False                                                │ │
│ │          conninfo = "host=localhost dbname=skyvern user=skyvern          │ │
│ │                     options='-c statement_timeout=60000' "+18            │ │
│ │           context = <psycopg.adapt.AdaptersMap object at 0x108ffcc10>    │ │
│ │    cursor_factory = None                                                 │ │
│ │            kwargs = {                                                    │ │
│ │                     │   'host': 'localhost',                             │ │
│ │                     │   'dbname': 'skyvern',                             │ │
│ │                     │   'user': 'skyvern',                               │ │
│ │                     │   'options': '-c statement_timeout=60000'          │ │
│ │                     }                                                    │ │
│ │           last_ex = OperationalError('connection failed: fe_sendauth: no │ │
│ │                     password supplied')                                  │ │
│ │            params = {                                                    │ │
│ │                     │   'host': 'localhost',                             │ │
│ │                     │   'dbname': 'skyvern',                             │ │
│ │                     │   'user': 'skyvern',                               │ │
│ │                     │   'options': '-c statement_timeout=60000'          │ │
│ │                     }                                                    │ │
│ │ prepare_threshold = 5                                                    │ │
│ │       row_factory = None                                                 │ │
│ │                rv = None                                                 │ │
│ │           timeout = 130                                                  │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
OperationalError: (psycopg.OperationalError) connection failed: fe_sendauth: no 
password supplied

The database is running in a docker container and I can connect locally on port 5432 using pgadmin with the credentials skyvern/skyvern.

I do see that the credentials are defined here:

DATABASE_STRING: str = "postgresql+psycopg://skyvern@localhost/skyvern"
but adding a password to the connection string did not fix the issue.

Any pointers are appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions