Unable to change data directory in Scylladb. Scylla server failing on change of data directory

343 views
Skip to first unread message

praveenhello124@gmail.com

<praveenhello124@gmail.com>
unread,
Jun 9, 2017, 6:32:53 PM6/9/17
to ScyllaDB users


I am trying to change data directory in scylla.yaml but after changing the scylla-server is not starting

[root@m1 vagrant]# sudo systemctl status scylla-server
● scylla-server.service - Scylla Server
   Loaded: loaded (/usr/lib/systemd/system/scylla-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2017-06-09 22:29:30 UTC; 1s ago
  Process: 13212 ExecStopPost=/usr/lib/scylla/scylla_stop (code=exited, status=0/SUCCESS)
  Process: 13205 ExecStart=/usr/bin/scylla $SCYLLA_ARGS $SEASTAR_IO $DEV_MODE $CPUSET (code=exited, status=1/FAILURE)
  Process: 13198 ExecStartPre=/usr/lib/scylla/scylla_prepare (code=exited, status=0/SUCCESS)
 Main PID: 13205 (code=exited, status=1/FAILURE)
   Status: "creating data directories"

Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 0] compaction_manager - Asked to stop
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 0] compaction_manager - Stopped
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 1] compaction_manager - Asked to stop
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 1] compaction_manager - Stopped
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 0] storage_service - Stop transport: auth shutdown
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 0] storage_service - Stop transport: done
Jun 09 22:29:30 m1.dcos systemd[1]: scylla-server.service: main process exited, code=exited, status=1/FAILURE
Jun 09 22:29:30 m1.dcos systemd[1]: Failed to start Scylla Server.
Jun 09 22:29:30 m1.dcos systemd[1]: Unit scylla-server.service entered failed state.
Jun 09 22:29:30 m1.dcos systemd[1]: scylla-server.service failed.

The directory to which I am trying to change data directory is a shared folder for host machine and vagrant container.

Kindly help me in resolving this issue

Amos Kong

<amos@scylladb.com>
unread,
Jun 11, 2017, 10:10:26 PM6/11/17
to scylladb-users@googlegroups.com
Hello, can you provide full log from `sudo journalctl -u scylla-server`?
What's your scylla version?

If it's convenient, you can report scylla issues on github next time :-)

--
                        Amos.

Asias He

<asias@scylladb.com>
unread,
Jun 11, 2017, 11:30:02 PM6/11/17
to ScyllaDB users
On Sat, Jun 10, 2017 at 6:32 AM, <praveen...@gmail.com> wrote:
Scylla runs on XFS (recommended) and EXT4. The shared folder is probably with a filesystem which fails some of the tests in the scylla. Can you post the complete scylla-server log so we can see what is failing. 
 

Kindly help me in resolving this issue

--
You received this message because you are subscribed to the Google Groups "ScyllaDB users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-users+unsubscribe@googlegroups.com.
To post to this group, send email to scylladb-users@googlegroups.com.
Visit this group at https://groups.google.com/group/scylladb-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/scylladb-users/12e0e644-359e-4419-b6d3-d9e1a30a9adc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Asias

Tomer Sandler

<tomer@scylladb.com>
unread,
Jun 12, 2017, 1:52:21 AM6/12/17
to scylladb-users@googlegroups.com
Another easy to use option which allows to collect many inputs on your server would be to use the node_health_check script.
Among another things it also collects system / server info, as well as Scylla info.
Here are instructions on how to use it and where to find it: https://github.com/scylladb/scylla/wiki/How-to-report-a-Scylla-problem 

To post to this group, send email to scyllad...@googlegroups.com.



--
Asias

--
You received this message because you are subscribed to the Google Groups "ScyllaDB users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scylladb-users+unsubscribe@googlegroups.com.
To post to this group, send email to scylladb-users@googlegroups.com.
Visit this group at https://groups.google.com/group/scylladb-users.

For more options, visit https://groups.google.com/d/optout.



--
Tomer Sandler
ScyllaDB

Avi Kivity

<avi@scylladb.com>
unread,
Jun 12, 2017, 6:40:05 AM6/12/17
to scylladb-users@googlegroups.com, Asias He



On 06/12/2017 06:29 AM, Asias He wrote:


On Sat, Jun 10, 2017 at 6:32 AM, <praveen...@gmail.com> wrote:


I am trying to change data directory in scylla.yaml but after changing the scylla-server is not starting

[root@m1 vagrant]# sudo systemctl status scylla-server
● scylla-server.service - Scylla Server
   Loaded: loaded (/usr/lib/systemd/system/scylla-server.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2017-06-09 22:29:30 UTC; 1s ago
  Process: 13212 ExecStopPost=/usr/lib/scylla/scylla_stop (code=exited, status=0/SUCCESS)
  Process: 13205 ExecStart=/usr/bin/scylla $SCYLLA_ARGS $SEASTAR_IO $DEV_MODE $CPUSET (code=exited, status=1/FAILURE)
  Process: 13198 ExecStartPre=/usr/lib/scylla/scylla_prepare (code=exited, status=0/SUCCESS)
 Main PID: 13205 (code=exited, status=1/FAILURE)
   Status: "creating data directories"

Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 0] compaction_manager - Asked to stop
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 0] compaction_manager - Stopped
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 1] compaction_manager - Asked to stop
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 1] compaction_manager - Stopped
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 0] storage_service - Stop transport: auth shutdown
Jun 09 22:29:30 m1.dcos scylla[13205]:  [shard 0] storage_service - Stop transport: done
Jun 09 22:29:30 m1.dcos systemd[1]: scylla-server.service: main process exited, code=exited, status=1/FAILURE
Jun 09 22:29:30 m1.dcos systemd[1]: Failed to start Scylla Server.
Jun 09 22:29:30 m1.dcos systemd[1]: Unit scylla-server.service entered failed state.
Jun 09 22:29:30 m1.dcos systemd[1]: scylla-server.service failed.

The directory to which I am trying to change data directory is a shared folder for host machine and vagrant container.

Scylla runs on XFS (recommended) and EXT4. The shared folder is probably with a filesystem which fails some of the tests in the scylla. Can you post the complete scylla-server log so we can see what is failing. 
 


Probably, the scylla user doesn't have permissions to create subdirectories in the new data directory.

praveenhello124@gmail.com

<praveenhello124@gmail.com>
unread,
Jun 14, 2017, 5:39:30 PM6/14/17
to ScyllaDB users, asias@scylladb.com



Hi Avi Kivity/Tomer Sandler/Asias He/Amos Kong,


Thanks for the suggestion and sorry for the delayed reply.

As Avi told the data directory I am trying to change is not having permissions to create subdirectories. 

The issue is figured out finally
 
 

Regards,
Pravin K

Asias He

<asias@scylladb.com>
unread,
Jun 14, 2017, 5:41:48 PM6/14/17
to praveenhello124@gmail.com, ScyllaDB users


On Jun 15, 2017 05:39, <praveen...@gmail.com> wrote:



Hi Avi Kivity/Tomer Sandler/Asias He/Amos Kong,


Thanks for the suggestion and sorry for the delayed reply.

As Avi told the data directory I am trying to change is not having permissions to create subdirectories. 

The issue is figured out finally
 


Good to know! If you encounter new problems, do not hesitate to ask here or create github issues.
Reply all
Reply to author
Forward
0 new messages