![](/img/trans.png)
[英]could not open file "./.postgresql.conf.swp": Permission denied
[英]ERROR: [050]: unable to acquire lock on file '/tmp/pgbackrest/demo-archive.lock': Permission denied
我一直在嘗試從源代碼( https://access.crunchydata.com/documentation/pgbackrest/2.00/pdf/backrest.pdf )在 linux(ubuntu) 上的 postgres 中增量加載數據,而我正在嘗試創建一個節我收到以下錯誤。
由於我是 Linux 平台的新手,所以花了 2 天以上的時間,我無法解決它!
sudo -u postgres pgbackrest --stanza=demo --log-level-console=info stanza-create
2019-10-03 16:16:22.730 P00 INFO: stanza-create command begin 2.16: --log-level-console=info --pg1-path=/var/lib/postgresql/11/demo --repo1-path=/var/lib/pgbackrest --stanza=demo
ERROR: [050]: unable to acquire lock on file '/tmp/pgbackrest/demo-archive.lock': Permission denied
HINT: does the user running pgBackRest have permissions on the '/tmp/pgbackrest/demo-archive.lock' file?
2019-10-03 16:16:22.730 P00 INFO: stanza-create command end: aborted with exception [050]
ERROR: [050]: unable to acquire lock on file '/tmp/pgbackrest/demo-archive.lock': Permission denied
HINT: does the user running pgBackRest have permissions on the '/tmp/pgbackrest/demo-archive.lock' file?
2019-10-03 16:16:22.730 P00 INFO: stanza-create command end: aborted with exception [050]
出現這種情況的原因是什么以及如何解決?
我遇到了同樣的問題,只需刪除臨時文件夾及其文件即可解決
sudo rm -r pgbackrest/
它對我有用。 另一種可能的解決方案是刪除臨時文件夾和節並重新創建節。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.