Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

pg_restore: [directory archiver] could not open input file " x ": No such file or directory

Nithyanantham Lakshmanan December 14, 2020

Hi,

I'm facing issue while trying to restore the bitbucket dump using with bitbucket standard set of scripts.. How to resolve the same...?

And using External PostgreSQL 9.6 server for this restore.

tmp/webresources/92.cachedfile
tmp/webresources/93.cachedfile
tmp/webresources/94.cachedfile
tmp/webresources/95.cachedfile
tmp/webresources/96.cachedfile
tmp/webresources/97.cachedfile
tmp/webresources/98.cachedfile
tmp/webresources/99.cachedfile

sent 28,216,533,709 bytes received 8,370,769 bytes 19,911,749.19 bytes/sec
total size is 28,180,534,930 speedup is 1.00
[database-postgresql.sh:54 -> restore_db][son-ubuntu-1] DEBUG: Running pg_restore -U bitbucketuser -h 10.222.2.201 --port=5432 -j 5 -d postgres -C -Fd /tmp/bitbucket.diy-restore.qaCI2V/bitbucket-db
pg_restore: [directory archiver] could not open input file "/tmp/bitbucket.diy-restore.qaCI2V/bitbucket-db/toc.dat": No such file or directory

[1]+ Exit 1 ../backupScript/atlassian-bitbucket-diy-backup/bitbucket.diy-restore.sh bitbucket.app.dir.dump.2020-11-04-00-12-01
root@XXX-ubuntu-1:/opt/bitbucketDump#

1 comment

nithyananthaml@hcl.com
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 15, 2021

Any update on this issue..?

y-restore.NB4KAa/bitbucket-db
pg_restore: [directory archiver] could not open input file "/tmp/bitbucket.diy-restore.NB4KAa/bitbucket-db/toc.dat": No such file or directory
root@hclson-bitbucket:/opt# vi database-postgresql.sh
root@hclson-bitbucket:/opt# vi scripts-atlassian-bitbucket-diy-backup/database-postgresql.sh
root@hclson-bitbucket:/opt# vi scripts-atlassian-bitbucket-diy-backup/
root@hclson-bitbucket:/opt# ls -ltr

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events