Skip to content

Restore data fails with Permission Denied error #862

Closed Answered by nachiroy
nachiroy asked this question in Q&A
Discussion options

You must be logged in to vote

I found the root cause of the issue. I was running 'clickhouse-backup' tool under the root user in our standalone Linux machines. As a result ClickHouse did not have the correct permissions to the parts file to re-attach them during restore process.

In order to successfully run under the clickhouse user (used by clickhouse-server process) I had to make the following modifications:

  1. sudo su (I had root access to our Linux server)
  2. vim /etc/passwd - This is the Linux file containing all the user accounts and their defaults.
  3. Change the clickhouse user details. Modify \bin\false to \bin\bash. This allowed me to execute the sudo su - clickhouse command in bash (allows logging in as clickhouse u…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Slach
Comment options

@nachiroy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Slach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants