scylladb / scylladb

NoSQL data store using the seastar framework, compatible with Apache Cassandra
http://scylladb.com
GNU Affero General Public License v3.0
13.23k stars 1.25k forks source link

debian10: installed scylla-server package post-installation script subprocess returned error exit status 1 #5585

Closed amoskong closed 4 years ago

amoskong commented 4 years ago

Installation details Scylla version (or git commit hash): 666.development-0.20200108.6e0a073b2e5-1 Cluster size: 1 OS (RHEL/CentOS/Ubuntu/AWS AMI): Debian 10

Description

Installation failed on debian 10.

scylla-test@amos-debian10:~$ cat /etc/apt/sources.list.d/scylla.list 

deb [arch=amd64] http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable main

scylla-test@amos-debian10:~$ dpkg -l scylla-server
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version                                  Architecture Description
+++-==============-========================================-============-=================================
rc  scylla-server  666.development-0.20200107.6e0a073b2e5-1 amd64        Scylla database server binaries
scylla-test@amos-debian10:~$ sudo apt-get install scylla -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  scylla-conf scylla-jmx scylla-kernel-conf scylla-python3 scylla-server scylla-tools scylla-tools-core
The following NEW packages will be installed:
  scylla scylla-conf scylla-jmx scylla-kernel-conf scylla-python3 scylla-server scylla-tools scylla-tools-core
0 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 91.3 MB of archives.
After this operation, 286 MB of additional disk space will be used.
Get:1 http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable/main amd64 scylla-conf amd64 666.development-0.20200108.6e0a073b2e5-1 [21.7 kB]
Get:2 http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable/main amd64 scylla-python3 amd64 3.7.5-0.20200109.6e0a073b2e5-1 [20.0 MB]
Get:3 http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable/main amd64 scylla-server amd64 666.development-0.20200108.6e0a073b2e5-1 [34.6 MB]
Get:4 http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable/main amd64 scylla-jmx all 666.development-20200109.4c8660d41ad-1 [7601 kB]
Get:5 http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable/main amd64 scylla-tools-core all 666.development-20200109.76275abbacd-1 [28.8 MB]
Get:6 http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable/main amd64 scylla-tools all 666.development-20200109.76275abbacd-1 [215 kB]
Get:7 http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable/main amd64 scylla-kernel-conf amd64 666.development-0.20200108.6e0a073b2e5-1 [14.9 kB]
Get:8 http://downloads.scylladb.com/deb/unstable/unified/master/202001091404/scylladb-master stable/main amd64 scylla amd64 666.development-0.20200108.6e0a073b2e5-1 [14.1 kB]
Fetched 91.3 MB in 3s (26.4 MB/s)  
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = "",
    LC_TIME = "en_US.UTF-8",
    LC_MONETARY = "en_US.UTF-8",
    LC_CTYPE = "en_US.UTF-8",
    LC_COLLATE = "en_US.UTF-8",
    LC_MESSAGES = "en_US.UTF-8",
    LC_NUMERIC = "en_US.UTF-8",
    LANG = "C.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
Selecting previously unselected package scylla-conf.
(Reading database ... 49971 files and directories currently installed.)
Preparing to unpack .../0-scylla-conf_666.development-0.20200108.6e0a073b2e5-1_amd64.deb ...
Unpacking scylla-conf (666.development-0.20200108.6e0a073b2e5-1) ...
Selecting previously unselected package scylla-python3.
Preparing to unpack .../1-scylla-python3_3.7.5-0.20200109.6e0a073b2e5-1_amd64.deb ...
Unpacking scylla-python3 (3.7.5-0.20200109.6e0a073b2e5-1) ...
Selecting previously unselected package scylla-server.
Preparing to unpack .../2-scylla-server_666.development-0.20200108.6e0a073b2e5-1_amd64.deb ...
Unpacking scylla-server (666.development-0.20200108.6e0a073b2e5-1) ...
Selecting previously unselected package scylla-jmx.
Preparing to unpack .../3-scylla-jmx_666.development-20200109.4c8660d41ad-1_all.deb ...
Unpacking scylla-jmx (666.development-20200109.4c8660d41ad-1) ...
Selecting previously unselected package scylla-tools-core.
Preparing to unpack .../4-scylla-tools-core_666.development-20200109.76275abbacd-1_all.deb ...
Unpacking scylla-tools-core (666.development-20200109.76275abbacd-1) ...
Selecting previously unselected package scylla-tools.
Preparing to unpack .../5-scylla-tools_666.development-20200109.76275abbacd-1_all.deb ...
Unpacking scylla-tools (666.development-20200109.76275abbacd-1) ...
Selecting previously unselected package scylla-kernel-conf.
Preparing to unpack .../6-scylla-kernel-conf_666.development-0.20200108.6e0a073b2e5-1_amd64.deb ...
Unpacking scylla-kernel-conf (666.development-0.20200108.6e0a073b2e5-1) ...
Selecting previously unselected package scylla.
Preparing to unpack .../7-scylla_666.development-0.20200108.6e0a073b2e5-1_amd64.deb ...
Unpacking scylla (666.development-0.20200108.6e0a073b2e5-1) ...
Setting up scylla-python3 (3.7.5-0.20200109.6e0a073b2e5-1) ...
Setting up scylla-conf (666.development-0.20200108.6e0a073b2e5-1) ...
Setting up scylla-kernel-conf (666.development-0.20200108.6e0a073b2e5-1) ...
kernel.sched_tunable_scaling = 0
kernel.sched_min_granularity_ns = 500000
kernel.sched_wakeup_granularity_ns = 450000
kernel.sched_latency_ns = 1000000
kernel.sched_autogroup_enabled = 0
kernel.numa_balancing = 0
fs.aio-max-nr = 1048576
vm.swappiness = 1
Setting up scylla-tools-core (666.development-20200109.76275abbacd-1) ...
Setting up scylla-tools (666.development-20200109.76275abbacd-1) ...
Setting up scylla-server (666.development-0.20200108.6e0a073b2e5-1) ...
scylla:x:108:114::/var/lib/scylla:/usr/sbin/nologin
scylla:x:114:
grep: /etc/scylla/scylla.yaml: No such file or directory
dpkg: error processing package scylla-server (--configure):
 installed scylla-server package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of scylla-jmx:
 scylla-jmx depends on scylla-server; however:
  Package scylla-server is not configured yet.

dpkg: error processing package scylla-jmx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of scylla:
 scylla depends on scylla-server; however:
  Package scylla-server is not configured yet.
 scylla depends on scylla-jmx; however:
  Package scylla-jmx is not configured yet.

dpkg: error processing package scylla (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 scylla-server
 scylla-jmx
 scylla
E: Sub-process /usr/bin/dpkg returned an error code (1)
scylla-test@amos-debian10:~$ echo $?
100

@syuu1228

amoskong commented 4 years ago

The problem can also be reproduced with latest 3.2

repo: https://s3.amazonaws.com/downloads.scylladb.com/deb/unstable/stable/branch-3.2/106/scylladb-3.2/scylla.list

scylla-test@amos-debian10:~$ sudo apt-get update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease                                                  
Hit:3 http://deb.debian.org/debian buster-updates InRelease                                          
Hit:4 http://packages.cloud.google.com/apt cloud-sdk-buster InRelease                                     
Ign:5 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster InRelease                                     
Hit:6 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster Release                                       
Hit:7 http://packages.cloud.google.com/apt google-cloud-packages-archive-keyring-buster InRelease
Hit:8 http://downloads.scylladb.com/deb/unstable/stable/branch-3.2/106/scylladb-3.2 stable InRelease
Hit:9 http://packages.cloud.google.com/apt google-compute-engine-buster-stable InRelease
Hit:10 http://deb.debian.org/debian buster-backports InRelease
Reading package lists... Done
scylla-test@amos-debian10:~$ sudo apt-get install scylla -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  scylla-conf scylla-jmx scylla-kernel-conf scylla-python3 scylla-server scylla-tools scylla-tools-core
The following NEW packages will be installed:
  scylla scylla-conf scylla-jmx scylla-kernel-conf scylla-python3 scylla-server scylla-tools scylla-tools-core
0 upgraded, 8 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/90.2 MB of archives.
After this operation, 301 MB of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = "",
    LC_TIME = "en_US.UTF-8",
    LC_MONETARY = "en_US.UTF-8",
    LC_CTYPE = "en_US.UTF-8",
    LC_COLLATE = "en_US.UTF-8",
    LC_MESSAGES = "en_US.UTF-8",
    LC_NUMERIC = "en_US.UTF-8",
    LANG = "C.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
Selecting previously unselected package scylla-conf.
(Reading database ... 49971 files and directories currently installed.)
Preparing to unpack .../0-scylla-conf_3.2.rc4-0.20200109.7eb86fbbb40-1_amd64.deb ...
Unpacking scylla-conf (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
Selecting previously unselected package scylla-python3.
Preparing to unpack .../1-scylla-python3_3.7.4-0.20200109.7eb86fbbb40-1_amd64.deb ...
Unpacking scylla-python3 (3.7.4-0.20200109.7eb86fbbb40-1) ...
Selecting previously unselected package scylla-server.
Preparing to unpack .../2-scylla-server_3.2.rc4-0.20200109.7eb86fbbb40-1_amd64.deb ...
Unpacking scylla-server (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
Selecting previously unselected package scylla-jmx.
Preparing to unpack .../3-scylla-jmx_3.2~rc4-20200109.0a404662d68-1_all.deb ...
Unpacking scylla-jmx (3.2~rc4-20200109.0a404662d68-1) ...
Selecting previously unselected package scylla-tools-core.
Preparing to unpack .../4-scylla-tools-core_3.2~rc4-20200109.23939552497-1_all.deb ...
Unpacking scylla-tools-core (3.2~rc4-20200109.23939552497-1) ...
Selecting previously unselected package scylla-tools.
Preparing to unpack .../5-scylla-tools_3.2~rc4-20200109.23939552497-1_all.deb ...
Unpacking scylla-tools (3.2~rc4-20200109.23939552497-1) ...
Selecting previously unselected package scylla-kernel-conf.
Preparing to unpack .../6-scylla-kernel-conf_3.2.rc4-0.20200109.7eb86fbbb40-1_amd64.deb ...
Unpacking scylla-kernel-conf (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
Selecting previously unselected package scylla.
Preparing to unpack .../7-scylla_3.2.rc4-0.20200109.7eb86fbbb40-1_amd64.deb ...
Unpacking scylla (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
Setting up scylla-python3 (3.7.4-0.20200109.7eb86fbbb40-1) ...
Setting up scylla-conf (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
Setting up scylla-kernel-conf (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
kernel.sched_tunable_scaling = 0
kernel.sched_min_granularity_ns = 500000
kernel.sched_wakeup_granularity_ns = 450000
kernel.sched_latency_ns = 1000000
kernel.sched_autogroup_enabled = 0
kernel.numa_balancing = 0
fs.aio-max-nr = 1048576
Setting up scylla-tools-core (3.2~rc4-20200109.23939552497-1) ...
Setting up scylla-tools (3.2~rc4-20200109.23939552497-1) ...
Setting up scylla-server (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
scylla:x:108:114::/var/lib/scylla:/usr/sbin/nologin
scylla:x:114:
grep: /etc/scylla/scylla.yaml: No such file or directory
dpkg: error processing package scylla-server (--configure):
 installed scylla-server package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of scylla-jmx:
 scylla-jmx depends on scylla-server; however:
  Package scylla-server is not configured yet.

dpkg: error processing package scylla-jmx (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of scylla:
 scylla depends on scylla-server; however:
  Package scylla-server is not configured yet.
 scylla depends on scylla-jmx; however:
  Package scylla-jmx is not configured yet.

dpkg: error processing package scylla (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 scylla-server
 scylla-jmx
 scylla
E: Sub-process /usr/bin/dpkg returned an error code (1)
scylla-test@amos-debian10:~$ dpkg -l scylla-server
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version                          Architecture Description
+++-==============-================================-============-=================================
iF  scylla-server  3.2.rc4-0.20200109.7eb86fbbb40-1 amd64        Scylla database server binaries
syuu1228 commented 4 years ago

@amoskong will check

syuu1228 commented 4 years ago

@amoskong Tested 3.2.rc4-0.20200109.7eb86fbbb40-1 on newly created Debian-10 Docker image, not reproduced the issue.

root@000e42979592:/etc/apt/sources.list.d# apt-get install scylla
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  adoptopenjdk-8-hotspot-jre bzip2 curl file hwloc-nox java-common
  krb5-locales libasound2 libasound2-data libbsd0 libcurl4 libedit2
  libevent-core-2.1-6 libevent-pthreads-2.1-6 libexpat1 libgdbm-compat4
  libgdbm6 libgpm2 libgssapi-krb5-2 libhwloc-plugins libhwloc5 libicu63
  libk5crypto3 libkeyutils1 libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2
  libldap-common libltdl7 libmagic-mgc libmagic1 libncurses6 libnghttp2-14
  libnuma1 libopts25 libpci3 libpciaccess0 libperl5.28 libprocps7 libpsl5
  libpython-stdlib libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib
  libreadline7 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
  libsqlite3-0 libssh2-1 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
  libxext6 libxi6 libxml2 libxrender1 libxtst6 libyaml-0-2 lsb-base
  mime-support netbase ntp num-utils ocl-icd-libopencl1 pciutils perl
  perl-modules-5.28 procps psmisc publicsuffix python python-minimal
  python-yaml python2 python2-minimal python2.7 python2.7-minimal
  readline-common scylla-conf scylla-jmx scylla-kernel-conf scylla-python3
  scylla-server scylla-tools scylla-tools-core sntp uuid-runtime x11-common
  xz-utils
Suggested packages:
  bzip2-doc default-jre libasound2-plugins alsa-utils gdbm-l10n gpm krb5-doc
  krb5-user libhwloc-contrib-plugins sensible-utils
  libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
  libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql ntp-doc
  opencl-icd perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl
  make libb-debug-perl liblocale-codes-perl python-doc python-tk python2-doc
  python2.7-doc binutils binfmt-support readline-doc
The following NEW packages will be installed:
  adoptopenjdk-8-hotspot-jre bzip2 curl file hwloc-nox java-common
  krb5-locales libasound2 libasound2-data libbsd0 libcurl4 libedit2
  libevent-core-2.1-6 libevent-pthreads-2.1-6 libexpat1 libgdbm-compat4
  libgdbm6 libgpm2 libgssapi-krb5-2 libhwloc-plugins libhwloc5 libicu63
  libk5crypto3 libkeyutils1 libkmod2 libkrb5-3 libkrb5support0 libldap-2.4-2
  libldap-common libltdl7 libmagic-mgc libmagic1 libncurses6 libnghttp2-14
  libnuma1 libopts25 libpci3 libpciaccess0 libperl5.28 libprocps7 libpsl5
  libpython-stdlib libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib
  libreadline7 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
  libsqlite3-0 libssh2-1 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6
  libxext6 libxi6 libxml2 libxrender1 libxtst6 libyaml-0-2 lsb-base
  mime-support netbase ntp num-utils ocl-icd-libopencl1 pciutils perl
  perl-modules-5.28 procps psmisc publicsuffix python python-minimal
  python-yaml python2 python2-minimal python2.7 python2.7-minimal
  readline-common scylla scylla-conf scylla-jmx scylla-kernel-conf
  scylla-python3 scylla-server scylla-tools scylla-tools-core sntp
  uuid-runtime x11-common xz-utils
0 upgraded, 95 newly installed, 0 to remove and 0 not upgraded.
Need to get 161 MB of archives.
After this operation, 537 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  scylla-conf scylla-python3 scylla-server adoptopenjdk-8-hotspot-jre
  scylla-jmx scylla-tools-core scylla-tools scylla-kernel-conf scylla
Install these packages without verification? [y/N] y

(cut log since it's too long)

Setting up scylla-server (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
Setting up scylla-jmx (3.2~rc4-20200109.0a404662d68-1) ...
Setting up scylla-tools-core (3.2~rc4-20200109.23939552497-1) ...
Setting up scylla-tools (3.2~rc4-20200109.23939552497-1) ...
Setting up scylla (3.2.rc4-0.20200109.7eb86fbbb40-1) ...
Processing triggers for libc-bin (2.28-10) ...
root@000e42979592:/etc/apt/sources.list.d# 

And scylla.yaml exists finely.

root@000e42979592:/etc/apt/sources.list.d# ls -l /etc/scylla/scylla.yaml 
-rw-r--r--. 1 root root 36446 Jan 12 14:30 /etc/scylla/scylla.yaml
syuu1228 commented 4 years ago

@amoskong ping, is there way to reproduce? still getting error on your environment?

amoskong commented 4 years ago

can't reproduce this issue with latest master & latest 3.3. We can close this issue.