Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scylladb 4.0 following "get started" guide with 1 node is failing #6528

Closed
ghost opened this issue May 27, 2020 · 8 comments
Closed

Scylladb 4.0 following "get started" guide with 1 node is failing #6528

ghost opened this issue May 27, 2020 · 8 comments
Assignees
Labels
symptom/ux Concerns regarding the user experience in working with Scylla. user request
Milestone

Comments

@ghost
Copy link

ghost commented May 27, 2020

Installation details
Scylla version (or git commit hash): 4.0.1
Cluster size: 1 node
OS (RHEL/CentOS/Ubuntu/AWS AMI): Centos 7 1804

Hardware details (for performance issues) 8 vCPU, 16GB RAM
Platform (physical/VM/cloud instance type/docker): VM - openstack
Hardware: sockets= cores= hyperthreading= memory=
Disks: (SSD/HDD, count) HDD

Hey guys, I need help with ScyllaDB installation and testing. I am following "Get Started" guide on Centos 7-1804 (8VCPU's, 16GB RAM, vm in openstack). Package scylla-4.0.1-0.20200524.8d9bc57aca6.x86_64 already installed and latest version. Info (raid is already done since I ran the script before):

sudo scylla_setup --no-raid-setup
WARN  2020-05-27 17:53:24,602 [shard 0] iotune - Available space on filesystem at /var/tmp/mnt: 124 MB: is less than recommended: 10 GB
INFO  2020-05-27 17:53:24,602 [shard 0] iotune - /var/tmp/mnt passed sanity checks
This is a supported kernel version.
Scylla requires a processor with SSE 4.2 and PCLMUL support
A Scylla executable was not found, please check your installation You current Scylla release is unknown while the latest patch release is 4.0.1, update for the latest bug fixes and improvements
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.mirohost.net
 * epel: ftp.icm.edu.pl
 * extras: mirror.mirohost.net
 * updates: mirror.mirohost.net
Package ntp-4.2.6p5-29.el7.centos.x86_64 already installed and latest version
Package ntpdate-4.2.6p5-29.el7.centos.x86_64 already installed and latest version
Nothing to do
27 May 17:53:38 ntpdate[8838]: adjust time server 91.210.190.13 offset -0.003933 sec
kernel.core_pattern = |/usr/lib/systemd/systemd-coredump %p %u %g %s %t %e"
tuning /sys/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb
tuning: /sys/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb/queue/nomerges 2
tuning /sys/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb
tuning /sys/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb
tuning /sys/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb
tuning /sys/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb
INFO  2020-05-27 17:53:48,546 [shard 0] iotune - /var/lib/scylla/saved_caches passed sanity checks
WARN  2020-05-27 17:53:48,546 [shard 0] iotune - Scheduler for /sys/devices/pci0000:00/0000:00:06.0/virtio3/block/vdb/queue/scheduler set to mq-deadline. It is recommend to set it to noop before evaluation so as not to skew the results.
Starting Evaluation. This may take a while...
Measuring sequential write bandwidth: 33 MB/s
Measuring sequential read bandwidth: 130 MB/s
Measuring random write IOPS: 647 IOPS
Measuring random read IOPS: 1451 IOPS
Writing result to /etc/scylla.d/io_properties.yaml
Writing result to /etc/scylla.d/io.conf
node_exporter already installed, you can use `--force` to force reinstallation
node exporter setup failed.
sudo systemctl start scylla-server
Job for scylla-server.service failed because the control process exited with error code. See "systemctl status scylla-server.service" and "journalctl -xe" for details.
[centos@fasfasf ~]$ systemctl status scylla-server.service
● scylla-server.service - Scylla Server
   Loaded: loaded (/usr/lib/systemd/system/scylla-server.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/scylla-server.service.d
           └─capabilities.conf, mounts.conf
   Active: failed (Result: exit-code) since Wed 2020-05-27 17:56:29 UTC; 4s ago
  Process: 8995 ExecStopPost=/opt/scylladb/scripts/scylla_stop (code=exited, status=0/SUCCESS)
  Process: 8984 ExecStartPre=/opt/scylladb/scripts/scylla_prepare (code=exited, status=1/FAILURE)May 27 17:56:29 fasfasf.novalocal systemd[1]: Starting Scylla Server...
May 27 17:56:29 fasfasf.novalocal scylla_prepare[8984]: Scylla requires the sse4.2 and clmul instruction sets, check your processor and hypervisor
May 27 17:56:29 fasfasf.novalocal systemd[1]: scylla-server.service: control process exited, code=exited status=1
May 27 17:56:29 fasfasf.novalocal systemd[1]: Failed to start Scylla Server.
May 27 17:56:29 fasfasf.novalocal systemd[1]: Unit scylla-server.service entered failed state.
May 27 17:56:29 fasfasf.novalocal systemd[1]: scylla-server.service failed.
cat /proc/cpuinfo | grep flags | uniq - flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer hypervisor lahf_lm ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid tsc_adjust arat umip spec_ctrl intel_stibp arch_capabilities

scylla.yaml has default setup: cluster name specified, 1 seed - 127.0.0.1, data directory specified, listen_address: localhost

@dorlaor
Copy link
Contributor

dorlaor commented May 27, 2020 via email

@ghost
Copy link
Author

ghost commented May 27, 2020

You run within an old VM with very old cpu emulation, pls update the VM config. May 27 17:56:29 fasfasf.novalocal scylla_prepare[8984]: Scylla requires the sse4.2 and clmul instruction sets, check your processor and hypervisor

Hi, thank you for your response.

Can you please specify what does it mean old VM with old cpu emulation? Its running on KVM (Openstack, latest train release). As you can see:

cat /proc/cpuinfo | grep flags | uniq - flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni vmx ssse3 cx16 sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer hypervisor lahf_lm ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid tsc_adjust arat umip spec_ctrl intel_stibp arch_capabilities

sse4_2 is there.

@dorlaor
Copy link
Contributor

dorlaor commented May 27, 2020 via email

@ghost
Copy link
Author

ghost commented May 27, 2020

clmul isn't there and scylla_prepare ORs sse4.2 with it. No idea why your guest doesn't have this instruction, it's old and I'm sure the physical cpu supports it.

From the docs: Scylla requires modern Intel CPUs that support the SSE4.2 instruction set and will not boot without it.

If I check cpuinfo, sse4.2 is there.... its weird. Can I use earlier versions of Scylla then?

Thank you

@dorlaor
Copy link
Contributor

dorlaor commented May 27, 2020 via email

@nyh
Copy link
Contributor

nyh commented May 28, 2020 via email

@slivne slivne added symptom/ux Concerns regarding the user experience in working with Scylla. onboarding user request labels May 31, 2020
@slivne slivne added this to the 4.3 milestone May 31, 2020
@slivne
Copy link
Contributor

slivne commented May 31, 2020

so lets check each feature and print the correct error message

penberg added a commit to penberg/scylla that referenced this issue Jul 13, 2020
Let's report each missing CPU feature individually, and improve the
error message a bit. For example, if the "clmul" instruction is missing,
the report looks as follows:

  ERROR: You will not be able to run Scylla on this machine because its CPU lacks the following features: pclmulqdq

  If this is a virtual machine, please update its CPU feature configuration or upgrade to a newer hypervisor.

Fixes scylladb#6528
@avikivity
Copy link
Member

Minor, not backporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
symptom/ux Concerns regarding the user experience in working with Scylla. user request
Projects
None yet
Development

No branches or pull requests

6 participants