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

Windows CI is failing to install postgres #3960

Closed
jayvdb opened this issue Mar 10, 2024 · 2 comments
Closed

Windows CI is failing to install postgres #3960

jayvdb opened this issue Mar 10, 2024 · 2 comments
Labels

Comments

@jayvdb
Copy link

jayvdb commented Mar 10, 2024

See https://github.com/diesel-rs/diesel/actions/runs/8217715890/job/22473728471?pr=3959

It looks like the error is that choco install now needs creds to access the API.

Invalid credentials specified.
Please provide credentials for: https://community.chocolatey.org/api/v2/

Full log

Run choco install postgresql12 --force --params '/Password:root'
  choco install postgresql1[2](https://github.com/diesel-rs/diesel/actions/runs/8217715890/job/22473728471?pr=3959#step:14:2) --force --params '/Password:root'
  echo "C:\Program Files\PostgreSQL\12\bin" >> $GITHUB_PATH
  echo "C:\Program Files\PostgreSQL\12\lib" >> $GITHUB_PATH
  echo "PQ_LIB_DIR=C:\Program Files\PostgreSQL\12\lib" >> $GITHUB_ENV
  echo "PG_DATABASE_URL=***localhost/" >> $GITHUB_ENV
  echo "PG_EXAMPLE_DATABASE_URL=***localhost/diesel_example" >> $GITHUB_ENV
  shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}
Chocolatey v2.2.2
Installing the following packages:
postgresql12
By installing, you accept licenses for the packages.
Invalid credentials specified.
Please provide credentials for: https://community.chocolatey.org/api/v2/
User name: Password: Chocolatey had an error on fv-az978-[6](https://github.com/diesel-rs/diesel/actions/runs/8217715890/job/22473728471?pr=3959#step:14:6)9[7](https://github.com/diesel-rs/diesel/actions/runs/8217715890/job/22473728471?pr=3959#step:14:7) (with user runneradmin):
System.InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try Console.Read.
   at System.Console.ReadKey(Boolean intercept)
   at chocolatey.infrastructure.commandline.ReadKeyTimeout.ConsoleReadKey()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Unhandled Exception: System.InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try Console.Read.
   at System.Console.ReadKey(Boolean intercept)
   at chocolatey.infrastructure.commandline.ReadKeyTimeout.ConsoleReadKey()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Error: Process completed with exit code [12](https://github.com/diesel-rs/diesel/actions/runs/8217715890/job/22473728471?pr=3959#step:14:13)7.
@jayvdb
Copy link
Author

jayvdb commented Mar 10, 2024

See also actions/runner-images#9477

@jayvdb
Copy link
Author

jayvdb commented Mar 10, 2024

Problem fixed.

@jayvdb jayvdb closed this as completed Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant