Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Enterprise. Switch to the latest stable version.
In cases where a ScyllaDB node fails to start because there is improper ownership, the following steps will help.
ScyllaDB node fails to start.
In cases where the ScyllaDB node fails to start, check ScyllaDB logs. If you see the following error message:
Could not access <PATH>: Permission denied std::system_error (error system:13, Permission denied)
.
For example:
Jul 01 07:31:48 ip-172-16-12-198 scylla[12189]: [shard 0] init - Could not access /var/lib/scylla/commitlog: std::system_error (error system:13, Permission denied)
Jul 01 07:31:48 ip-172-16-12-198 scylla[12189]: [shard 0] init - Could not access /var/lib/scylla/data: std::system_error (error system:13, Permission denied)
Jul 01 07:31:48 ip-172-16-12-198 scylla[12189]: [shard 0] seastar - Exiting on unhandled exception: std::system_error (error system:13, Permission denied)
The data directories /var/lib/scylla/data
and /var/lib/scylla/commitlog
exist but are not owned by the ScyllaDB user.
For example:
[centos@ip-172-16-12-132 scylla]$ ls /var/lib/scylla/data
total 4
drwxr-xr-x 2 root root 4096 Jun 18 09:37 commitlog
drwxr-xr-x 7 root root 97 Jun 18 09:37 data
In this example, the user root is the owner of the directories.
Change the data directory ownership.
sudo chown scylla:scylla /var/lib/scylla/data
sudo chown scylla:scylla /var/lib/scylla/commitlog
Verify that the change completed successfully
[centos@ip-172-16-12-132 scylla]$ ls /var/lib/scylla/data
total 4
drwxr-xr-x 2 scylla scylla 4096 Jun 18 09:37 commitlog
drwxr-xr-x 7 scylla scylla 97 Jun 18 09:37 data
Start ScyllaDB node.
sudo systemctl start scylla-server
docker exec -it some-scylla supervisorctl start scylla
(with some-scylla container already running)
Verify ScyllaDB node is working
Supported OS
sudo systemctl status scylla-server
Was this page helpful?