Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run skyvern locally following README guide #1255

Open
jfelten opened this issue Nov 25, 2024 · 0 comments
Open

Unable to run skyvern locally following README guide #1255

jfelten opened this issue Nov 25, 2024 · 0 comments

Comments

@jfelten
Copy link

jfelten commented Nov 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant