# Error while using bulk migration script

**URL:** https://meta.discourse.org/t/error-while-using-bulk-migration-script/284003
**Category:** Migration
**Tags:** vanilla
**Created:** [October 31, 2023, 12:15pm UTC](https://meta.discourse.org/t/error-while-using-bulk-migration-script/284003 "2023-10-31T12:15:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Dr\_Shihaan\_Larif](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dr_shihaan_larif/32/335620_2.png) [@Dr\_Shihaan\_Larif](https://meta.discourse.org/u/Dr_Shihaan_Larif)
#### Post date: [October 31, 2023, 12:15pm UTC](https://meta.discourse.org/t/error-while-using-bulk-migration-script/284003/1 "2023-10-31T12:15:09Z")

</div>

`async\_connect\_or\_reset’: connection to server on socket “/var/run/postgresql/.s.PGSQL.5432” failed: FATAL: Peer authentication failed for user “discourse” (PG::ConnectionBad)

Hello there I am getting the above error in the vanilla.rb bulk import script when I run it.
