Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug: windows: coder server fails to start due to missing vcredist libraries #13010

Closed
@johnstcn

Description

@johnstcn

Reproduced on Windows 21H2 (OS build 20348.2159)

coder server fails to start with the error:

Error: Failed to start built-in PostgreSQL. Optionally, specify an external deployment with --postgres-url: unable to init database using 'C:\Users\info\AppData\Roaming\coderv2\postgres\bin\bin\initdb.exe -A password -U coder -D C:\Users\info\AppData\Roaming\coderv2\postgres\data --pwfile=C:\Users\info\AppData\Roaming\coderv2\postgres\runtime\pwfile': exit status 0xc0000135

image

Steps to reproduce on a fresh machine:

  1. Download the Coder MSI from https://github.com/releases
  2. Open PowerShell
  3. Run coder server with no further arguments

After performing the following steps, coder server started successfully:

Possible solutions:

  1. Bundle the required libraries to run embedded postgres in our MSI,
  2. Update install documentation to include the above two steps.

Update: installing vcredist libraries also solves the issue.
Simple one-liner: https://vcredist.com/quick/

Metadata

Metadata

Assignees

Labels

cliArea: CLIs2Broken use cases or features (with a workaround). Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions