# unhealty allocation fail deploy with postgres error

**URL:** <https://community.fly.io/t/unhealty-allocation-fail-deploy-with-postgres-error/10261>\
**Category:** Build debugging\
**Created:** [January 22, 2023, 8:53pm UTC](https://community.fly.io/t/unhealty-allocation-fail-deploy-with-postgres-error/10261 "2023-01-22T20:53:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guilleMartos](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/guillemartos/32/8895_2.png) [@guilleMartos](https://community.fly.io/u/guilleMartos)\
**Post date:** [January 22, 2023, 8:53pm UTC](https://community.fly.io/t/unhealty-allocation-fail-deploy-with-postgres-error/10261/1 "2023-01-22T20:53:05Z")

</div>

Hi! Im having a problem deploying my app. The error status is ‘Failed due to unhealthy allocations - not rolling back to stable job version 16…’

but from the logs I see an auth\_failed from auth.c of postgres… reading some in other places, I found it may be a postgres error that can be solved by permissions… first: is my diagnostic ok and is that the scenario I’m facing? and in that case, how can I make changes in postgres in my fly app? via some docker image? does anybody had this same issue? thanks! I leave the logs of the error

```auto
2023-01-22T20:43:36Z [info] at TLSSocket.emit (node:events:520:28)
2023-01-22T20:43:36Z [info] at addChunk (node:internal/streams/readable:315:12)
2023-01-22T20:43:36Z [info] at readableAddChunk (node:internal/streams/readable:289:9)
2023-01-22T20:43:36Z [info] at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
2023-01-22T20:43:36Z [info] at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) {
2023-01-22T20:43:36Z [info] length: 110,
2023-01-22T20:43:36Z [info] severity: 'FATAL',
2023-01-22T20:43:36Z [info] code: '28P01',
2023-01-22T20:43:36Z [info] detail: undefined,
2023-01-22T20:43:36Z [info] hint: undefined,
2023-01-22T20:43:36Z [info] position: undefined,
2023-01-22T20:43:36Z [info] internalPosition: undefined,
2023-01-22T20:43:36Z [info] internalQuery: undefined,
2023-01-22T20:43:36Z [info] where: undefined,
2023-01-22T20:43:36Z [info] schema: undefined,
2023-01-22T20:43:36Z [info] table: undefined,
2023-01-22T20:43:36Z [info] column: undefined,
2023-01-22T20:43:36Z [info] dataType: undefined,
2023-01-22T20:43:36Z [info] constraint: undefined,
2023-01-22T20:43:36Z [info] file: 'auth.c',
2023-01-22T20:43:36Z [info] line: '335',
2023-01-22T20:43:36Z [info] routine: 'auth_failed'
2023-01-22T20:43:36Z [info] }
2023-01-22T20:43:36Z [info]}
2023-01-22T20:43:36Z [info]npm notice
2023-01-22T20:43:36Z [info]npm notice New major version of npm available! 8.3.1 -> 9.3.1
2023-01-22T20:43:36Z [info]npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.3.1>
2023-01-22T20:43:36Z [info]npm notice Run `npm install -g npm@9.3.1` to update!
2023-01-22T20:43:36Z [info]npm notice
2023-01-22T20:43:37Z [info]Starting clean up.

```
