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

Installation instructions do not work, error on step 1. #25

Open
socialcyberdog opened this issue Feb 1, 2020 · 2 comments
Open

Installation instructions do not work, error on step 1. #25

socialcyberdog opened this issue Feb 1, 2020 · 2 comments

Comments

@socialcyberdog
Copy link

Following the installation instructions on Ubuntu 18.04 produces this result after sudo aerobase-ctl reconfigure - btw I used the packages for Xenial, assuming that this would certainly work for Bionic, too - otherwise you should really update these packages.

BTW the first instruction is also wrong, the apt-get install does not work like this.

I certainly would like to spend more time evaluating your product, but you should make it at least possible to install it without troubles at the first step - user auth is not something you want to debug 1000 lines of java exceptions on step one.

 bionic  ~  tmp  aerobase  $  aerobase-ctl reconfigure
To use this software, you must agree to the terms of the software license agreement.
Press any key to continue.
Type 'yes' to accept the software license agreement, or anything else to cancel.
yes
Traceback (most recent call last):
	12: from /opt/aerobase/embedded/bin/omnibus-ctl:23:in `<main>'
	11: from /opt/aerobase/embedded/bin/omnibus-ctl:23:in `load'
	10: from /opt/aerobase/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/bin/omnibus-ctl:31:in `<top (required)>'
	 9: from /opt/aerobase/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:747:in `run'
	 8: from /opt/aerobase/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:515:in `reconfigure'
	 7: from /opt/aerobase/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:535:in `check_license_acceptance'
	 6: from /opt/aerobase/embedded/lib/ruby/2.5.0/fileutils.rb:193:in `mkdir_p'
	 5: from /opt/aerobase/embedded/lib/ruby/2.5.0/fileutils.rb:193:in `each'
	 4: from /opt/aerobase/embedded/lib/ruby/2.5.0/fileutils.rb:208:in `block in mkdir_p'
	 3: from /opt/aerobase/embedded/lib/ruby/2.5.0/fileutils.rb:208:in `reverse_each'
	 2: from /opt/aerobase/embedded/lib/ruby/2.5.0/fileutils.rb:210:in `block (2 levels) in mkdir_p'
	 1: from /opt/aerobase/embedded/lib/ruby/2.5.0/fileutils.rb:232:in `fu_mkdir'
/opt/aerobase/embedded/lib/ruby/2.5.0/fileutils.rb:232:in `mkdir': Permission denied @ dir_s_mkdir - /var/opt/aerobase (Errno::EACCES)
 bionic  ~  tmp  aerobase  ERROR  $  sudo aerobase-ctl reconfigure
To use this software, you must agree to the terms of the software license agreement.
Press any key to continue.
Type 'yes' to accept the software license agreement, or anything else to cancel.
yes
Starting Chef Client, version 14.8.12
resolving cookbooks for run list: ["aerobase"]
Synchronizing Cookbooks:
  - package (0.0.0)
  - aerobase (1.2.0)
  - enterprise (0.11.0)
  - java (1.45.0)
  - runit (4.0.4)
  - apt (5.0.1)
  - cassandra-dse (4.6.0)
  - windows (4.3.3)
  - homebrew (3.0.0)
  - packagecloud (0.3.0)
  - yum-epel (3.2.0)
  - compat_resource (12.16.3)
  - ulimit (0.4.0)
  - yum (4.1.0)
  - ark (2.2.1)
  - systemd (2.1.3)
  - chef_handler (3.0.3)
  - build-essential (7.0.3)
  - seven_zip (2.0.2)
  - mingw (1.2.4)
Installing Cookbook Gems:
Compiling Cookbooks...
/opt/aerobase/embedded/cookbooks/cache/cookbooks/packagecloud/resources/repo.rb:10: warning: constant ::Fixnum is deprecated
Converging 158 resources
Recipe: aerobase::users
  * directory[/var/opt/aerobase] action create (up to date)
  * group[aerobase-group] action create
    - create group aerobase-group
  * linux_user[aerobase] action create
    - create user aerobase
Recipe: aerobase::default
  * directory[/etc/aerobase] action create
    - change mode from '0755' to '0775'
    - change owner from 'root' to 'aerobase'
    - change group from 'root' to 'aerobase-group'
  * directory[/var/opt/aerobase] action create
    - change mode from '0755' to '0775'
    - change owner from 'root' to 'aerobase'
    - change group from 'root' to 'aerobase-group'
  * directory[/opt/aerobase/embedded/etc] action create
    - create new directory /opt/aerobase/embedded/etc
    - change mode from '' to '0755'
    - change owner from '' to 'aerobase'
    - change group from '' to 'aerobase-group'
Recipe: enterprise::runit
  * component_runit_supervisor[unifiedpush] action create
    * template[/etc/systemd/system/unifiedpush-runsvdir-start.service] action create
      - create new file /etc/systemd/system/unifiedpush-runsvdir-start.service
      - update content in file /etc/systemd/system/unifiedpush-runsvdir-start.service from none to 8f0669
      --- /etc/systemd/system/unifiedpush-runsvdir-start.service	2020-02-02 00:10:33.878718156 +0100
      +++ /etc/systemd/system/.chef-unifiedpush-runsvdir-start20200202-22834-5g0jab.service	2020-02-02 00:10:33.878718156 +0100
      @@ -1 +1,11 @@
      +[Unit]
      +Description=unifiedpush Runit Process Supervisor
      +After=network.target auditd.service
      +
      +[Service]
      +ExecStart=/opt/aerobase/embedded/bin/runsvdir-start
      +Restart=always
      +
      +[Install]
      +WantedBy=multi-user.target
      - change mode from '' to '0644'
      - change owner from '' to 'root'
      - change group from '' to 'root'
    * execute[cleanup_old_unit_files] action run (skipped due to only_if)
    * service[unifiedpush-runsvdir-start.service] action enable
      - enable service service[unifiedpush-runsvdir-start.service]
    * service[unifiedpush-runsvdir-start.service] action start
      - start service service[unifiedpush-runsvdir-start.service]
  
Recipe: aerobase::postgresql_os_user
  * group[aerobase-group] action create (up to date)
  * linux_user[aerobase-sql] action create
    - create user aerobase-sql
Recipe: aerobase::postgresql
  * directory[/var/opt/aerobase/postgresql] action create
    - create new directory /var/opt/aerobase/postgresql
    - change mode from '' to '0755'
    - change owner from '' to 'aerobase-sql'
  * directory[/var/opt/aerobase/postgresql/data] action create
    - create new directory /var/opt/aerobase/postgresql/data
    - change mode from '' to '0700'
    - change owner from '' to 'aerobase-sql'
  * directory[/var/log/aerobase/postgresql] action create
    - create new directory /var/log/aerobase/postgresql
    - change mode from '' to '0700'
    - change owner from '' to 'aerobase-sql'
  * link[/var/opt/aerobase/postgresql/data] action create (skipped due to not_if)
  * file[/var/opt/aerobase/postgresql/.profile] action create
    - create new file /var/opt/aerobase/postgresql/.profile
    - update content in file /var/opt/aerobase/postgresql/.profile from none to 2b0d0c
    --- /var/opt/aerobase/postgresql/.profile	2020-02-02 00:10:34.540726110 +0100
    +++ /var/opt/aerobase/postgresql/.chef-.profile20200202-22834-1aso0ux.profile	2020-02-02 00:10:34.540726110 +0100
    @@ -1 +1,2 @@
    +PATH=/opt/aerobase/embedded/bin:/opt/aerobase/bin:$PATH
    - change mode from '' to '0600'
    - change owner from '' to 'aerobase-sql'
  * directory[/etc/sysctl.d] action create (up to date)
  * file[/opt/aerobase/embedded/etc/90-omnibus-aerobase.conf] action touch
    - create new file /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf
    - update utime on file /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf
  * bash[add kernel.shmmax settings] action run
    - execute "bash"  "/tmp/chef-script20200202-22834-fxs1h"
  * execute[sysctl] action run
    - execute cat /etc/sysctl.conf /etc/sysctl.d/*.conf  | sysctl -e -p -
  * link[/opt/aerobase/embedded/etc/90-omnibus-aerobase.conf] action create
    - unlink existing symlink to file at /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf
    - create symlink at /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf to /etc/sysctl.d/90-omnibus-aerobase.conf
  * execute[sysctl] action nothing (skipped due to action :nothing)
  * directory[/etc/sysctl.d] action create (up to date)
  * file[/opt/aerobase/embedded/etc/90-omnibus-aerobase.conf] action touch[2020-02-02T00:10:34+01:00] WARN: File /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf managed by file[/opt/aerobase/embedded/etc/90-omnibus-aerobase.conf] is really a symlink. Managing the source file instead.
[2020-02-02T00:10:34+01:00] WARN: Disable this warning by setting `manage_symlink_source true` on the resource
[2020-02-02T00:10:34+01:00] WARN: In a future Chef release, 'manage_symlink_source' will not be enabled by default

    - create new file /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf
    - update utime on file /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf
  * bash[add kernel.shmall settings] action run
    - execute "bash"  "/tmp/chef-script20200202-22834-oq8bum"
  * execute[sysctl] action run
    - execute cat /etc/sysctl.conf /etc/sysctl.d/*.conf  | sysctl -e -p -
  * link[/opt/aerobase/embedded/etc/90-omnibus-aerobase.conf] action create (up to date)
  * execute[sysctl] action nothing (skipped due to action :nothing)
  * directory[/etc/sysctl.d] action create (up to date)
  * file[/opt/aerobase/embedded/etc/90-omnibus-aerobase.conf] action touch[2020-02-02T00:10:34+01:00] WARN: File /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf managed by file[/opt/aerobase/embedded/etc/90-omnibus-aerobase.conf] is really a symlink. Managing the source file instead.
[2020-02-02T00:10:34+01:00] WARN: Disable this warning by setting `manage_symlink_source true` on the resource
[2020-02-02T00:10:34+01:00] WARN: In a future Chef release, 'manage_symlink_source' will not be enabled by default

    - update utime on file /opt/aerobase/embedded/etc/90-omnibus-aerobase.conf
  * bash[add kernel.sem settings] action run
    - execute "bash"  "/tmp/chef-script20200202-22834-1t2uvd3"
  * execute[sysctl] action run
    - execute cat /etc/sysctl.conf /etc/sysctl.d/*.conf  | sysctl -e -p -
  * link[/opt/aerobase/embedded/etc/90-omnibus-aerobase.conf] action create (up to date)
  * execute[sysctl] action nothing (skipped due to action :nothing)
  * execute[/opt/aerobase/embedded/bin/initdb -D /var/opt/aerobase/postgresql/data -E UTF8] action run
    - execute /opt/aerobase/embedded/bin/initdb -D /var/opt/aerobase/postgresql/data -E UTF8
  * link[/var/log/aerobase/postgresql/logs] action create
    - create symlink at /var/log/aerobase/postgresql/logs to /var/opt/aerobase/postgresql/data/pg_log
  * template[/var/opt/aerobase/postgresql/data/postgresql.conf] action create
    - update content in file /var/opt/aerobase/postgresql/data/postgresql.conf from b2de7f to e5bc08
    --- /var/opt/aerobase/postgresql/data/postgresql.conf	2020-02-02 00:10:35.188733895 +0100
    +++ /var/opt/aerobase/postgresql/data/.chef-postgresql20200202-22834-1qzfso2.conf	2020-02-02 00:10:36.664751633 +0100
    @@ -1,3 +1,7 @@
    +# This file is managed by aerobase-ctl. Manual changes will be
    +# erased! To change the contents below, edit /etc/aerobase/aerobase.rb
    +# and run `sudo aerobase-ctl reconfigure`.
    +
     # -----------------------------
     # PostgreSQL configuration file
     # -----------------------------
    @@ -56,14 +60,14 @@
     
     # - Connection Settings -
     
    -#listen_addresses = 'localhost'		# what IP address(es) to listen on;
    +listen_addresses = 'localhost'	# what IP address(es) to listen on;
     					# comma-separated list of addresses;
     					# defaults to 'localhost'; use '*' for all
     					# (change requires restart)
    -#port = 5432				# (change requires restart)
    -max_connections = 100			# (change requires restart)
    +port = 5432				# (change requires restart)
    +max_connections = 200			# (change requires restart)
     #superuser_reserved_connections = 3	# (change requires restart)
    -#unix_socket_directories = '/tmp'	# comma-separated list of directories
    +unix_socket_directories = '/var/opt/aerobase/postgresql' # comma-separated list of directories
     					# (change requires restart)
     #unix_socket_group = ''			# (change requires restart)
     #unix_socket_permissions = 0777		# begin with 0 to use octal notation
    @@ -110,7 +114,7 @@
     
     # - Memory -
     
    -shared_buffers = 128MB			# min 128kB
    +shared_buffers = 7998MB # min 128kB
     					# (change requires restart)
     #huge_pages = try			# on, off, or try
     					# (change requires restart)
    @@ -119,12 +123,13 @@
     					# (change requires restart)
     # Caution: it is not advisable to set max_prepared_transactions nonzero unless
     # you actively intend to use prepared transactions.
    -#work_mem = 4MB				# min 64kB
    +work_mem = 8MB # min 64kB
     #maintenance_work_mem = 64MB		# min 1MB
     #replacement_sort_tuples = 150000	# limits use of replacement selection sort
     #autovacuum_work_mem = -1		# min 1MB, or -1 to use maintenance_work_mem
     #max_stack_depth = 2MB			# min 100kB
    -dynamic_shared_memory_type = posix	# the default is the first option
    +dynamic_shared_memory_type = 'posix'
    +					# the default is the first option
     					# supported by the operating system:
     					#   posix
     					#   sysv
    @@ -203,12 +208,12 @@
     
     # - Checkpoints -
     
    -#checkpoint_timeout = 5min		# range 30s-1d
    -#max_wal_size = 1GB
    +checkpoint_timeout = 5min # range 30s-1d
    +max_wal_size = 1GB
     #min_wal_size = 80MB
    -#checkpoint_completion_target = 0.5	# checkpoint target duration, 0.0 - 1.0
    +checkpoint_completion_target = 0.9 # checkpoint target duration, 0.0 - 1.0
     #checkpoint_flush_after = 256kB		# measured in pages, 0 disables
    -#checkpoint_warning = 30s		# 0 disables
    +checkpoint_warning = 30s # 0 disables
     
     # - Archiving -
     
    @@ -300,7 +305,7 @@
     #parallel_tuple_cost = 0.1		# same scale as above
     #parallel_setup_cost = 1000.0	# same scale as above
     #min_parallel_relation_size = 8MB
    -#effective_cache_size = 4GB
    +effective_cache_size = 15997MB
     
     # - Genetic Query Optimizer -
     
    @@ -329,25 +334,25 @@
     
     # - Where to Log -
     
    -#log_destination = 'stderr'		# Valid values are combinations of
    +log_destination = 'stderr'		# Valid values are combinations of
     					# stderr, csvlog, syslog, and eventlog,
     					# depending on platform.  csvlog
     					# requires logging_collector to be on.
     
     # This is used when logging to stderr:
    -#logging_collector = off		# Enable capturing of stderr and csvlog
    +logging_collector = on			# Enable capturing of stderr and csvlog
     					# into log files. Required to be on for
     					# csvlogs.
     					# (change requires restart)
     
     # These are only used if logging_collector is on:
    -#log_directory = 'pg_log'		# directory where log files are written,
    +log_directory = 'pg_log'		# directory where log files are written,
     					# can be absolute or relative to PGDATA
    -#log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log'	# log file name pattern,
    +log_filename = 'postgresql-%a.log'	# log file name pattern,
     					# can include strftime() escapes
     #log_file_mode = 0600			# creation mode for log files,
     					# begin with 0 to use octal notation
    -#log_truncate_on_rotation = off		# If on, an existing log file with the
    +log_truncate_on_rotation = on		# If on, an existing log file with the
     					# same name as the new log file will be
     					# truncated rather than appended to.
     					# But such truncation only occurs on
    @@ -355,9 +360,9 @@
     					# or size-driven rotation.  Default is
     					# off, meaning append to existing files
     					# in all cases.
    -#log_rotation_age = 1d			# Automatic rotation of logfiles will
    +log_rotation_age = 1d			# Automatic rotation of logfiles will
     					# happen after that time.  0 disables.
    -#log_rotation_size = 10MB		# Automatic rotation of logfiles will
    +log_rotation_size = 0			# Automatic rotation of logfiles will
     					# happen after that much log output.
     					# 0 disables.
     
    @@ -430,7 +435,7 @@
     #log_duration = off
     #log_error_verbosity = default		# terse, default, or verbose messages
     #log_hostname = off
    -#log_line_prefix = ''			# special values:
    +log_line_prefix = '< %m > '			# special values:
     					#   %a = application name
     					#   %u = user name
     					#   %d = database name
    @@ -450,14 +455,14 @@
     					#   %q = stop here in non-session
     					#        processes
     					#   %% = '%'
    -					# e.g. '<%u%%%d> '
    +					# e.g.
     #log_lock_waits = off			# log lock waits >= deadlock_timeout
     #log_statement = 'none'			# none, ddl, mod, all
     #log_replication_commands = off
     #log_temp_files = -1			# log temporary files equal or larger
     					# than the specified size in kilobytes;
     					# -1 disables, 0 logs all temp files
    -log_timezone = 'Europe/Berlin'
    +log_timezone = 'Israel'
     
     
     # - Process Title -
    @@ -551,9 +556,9 @@
     
     # - Locale and Formatting -
     
    -datestyle = 'iso, dmy'
    +datestyle = 'iso, mdy'
     #intervalstyle = 'postgres'
    -timezone = 'Europe/Berlin'
    +timezone = 'Israel'
     #timezone_abbreviations = 'Default'     # Select the set of available time zone
     					# abbreviations.  Currently, there are
     					#   Default
    @@ -567,10 +572,10 @@
     
     # These settings are initialized by initdb, but they can be changed.
     lc_messages = 'en_US.UTF-8'			# locale for system error message
    -					# strings
    -lc_monetary = 'de_DE.UTF-8'			# locale for monetary formatting
    -lc_numeric = 'de_DE.UTF-8'			# locale for number formatting
    -lc_time = 'de_DE.UTF-8'				# locale for time formatting
    +									# strings
    +lc_monetary = 'en_US.UTF-8'			# locale for monetary formatting
    +lc_numeric = 'en_US.UTF-8'			# locale for number formatting
    +lc_time = 'en_US.UTF-8'				# locale for time formatting
     
     # default configuration for text search
     default_text_search_config = 'pg_catalog.english'
    - change mode from '0600' to '0644'
  * template[/var/opt/aerobase/postgresql/data/pg_hba.conf] action create
    - update content in file /var/opt/aerobase/postgresql/data/pg_hba.conf from e7a24b to c635c6
    --- /var/opt/aerobase/postgresql/data/pg_hba.conf	2020-02-02 00:10:35.188733895 +0100
    +++ /var/opt/aerobase/postgresql/data/.chef-pg_hba20200202-22834-me3vx4.conf	2020-02-02 00:10:36.695752006 +0100
    @@ -1,94 +1,76 @@
    +# This file is managed by aerobase-ctl. Manual changes will be
    +# erased! To change the contents below, edit /etc/aerobase/aerobase.rb
    +# and run `sudo aerobase-ctl reconfigure`.
    +
     # PostgreSQL Client Authentication Configuration File
     # ===================================================
     #
    -# Refer to the "Client Authentication" section in the PostgreSQL
    -# documentation for a complete description of this file.  A short
    -# synopsis follows.
    +# Refer to the "Client Authentication" section in the
    +# PostgreSQL documentation for a complete description
    +# of this file.  A short synopsis follows.
     #
     # This file controls: which hosts are allowed to connect, how clients
     # are authenticated, which PostgreSQL user names they can use, which
     # databases they can access.  Records take one of these forms:
     #
    -# local      DATABASE  USER  METHOD  [OPTIONS]
    -# host       DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
    -# hostssl    DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
    -# hostnossl  DATABASE  USER  ADDRESS  METHOD  [OPTIONS]
    +# local      DATABASE  USER  METHOD  [OPTION]
    +# host       DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTION]
    +# hostssl    DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTION]
    +# hostnossl  DATABASE  USER  CIDR-ADDRESS  METHOD  [OPTION]
     #
     # (The uppercase items must be replaced by actual values.)
     #
    -# The first field is the connection type: "local" is a Unix-domain
    -# socket, "host" is either a plain or SSL-encrypted TCP/IP socket,
    -# "hostssl" is an SSL-encrypted TCP/IP socket, and "hostnossl" is a
    -# plain TCP/IP socket.
    +# The first field is the connection type: "local" is a Unix-domain socket,
    +# "host" is either a plain or SSL-encrypted TCP/IP socket, "hostssl" is an
    +# SSL-encrypted TCP/IP socket, and "hostnossl" is a plain TCP/IP socket.
     #
    -# DATABASE can be "all", "sameuser", "samerole", "replication", a
    -# database name, or a comma-separated list thereof. The "all"
    -# keyword does not match "replication". Access to replication
    -# must be enabled in a separate record (see example below).
    +# DATABASE can be "all", "sameuser", "samerole", a database name, or
    +# a comma-separated list thereof.
     #
    -# USER can be "all", a user name, a group name prefixed with "+", or a
    -# comma-separated list thereof.  In both the DATABASE and USER fields
    -# you can also write a file name prefixed with "@" to include names
    -# from a separate file.
    +# USER can be "all", a user name, a group name prefixed with "+", or
    +# a comma-separated list thereof.  In both the DATABASE and USER fields
    +# you can also write a file name prefixed with "@" to include names from
    +# a separate file.
     #
    -# ADDRESS specifies the set of hosts the record matches.  It can be a
    -# host name, or it is made up of an IP address and a CIDR mask that is
    -# an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that
    -# specifies the number of significant bits in the mask.  A host name
    -# that starts with a dot (.) matches a suffix of the actual host name.
    -# Alternatively, you can write an IP address and netmask in separate
    -# columns to specify the set of hosts.  Instead of a CIDR-address, you
    -# can write "samehost" to match any of the server's own IP addresses,
    -# or "samenet" to match any address in any subnet that the server is
    -# directly connected to.
    +# CIDR-ADDRESS specifies the set of hosts the record matches.
    +# It is made up of an IP address and a CIDR mask that is an integer
    +# (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that specifies
    +# the number of significant bits in the mask.  Alternatively, you can write
    +# an IP address and netmask in separate columns to specify the set of hosts.
     #
    -# METHOD can be "trust", "reject", "md5", "password", "gss", "sspi",
    -# "ident", "peer", "pam", "ldap", "radius" or "cert".  Note that
    -# "password" sends passwords in clear text; "md5" is preferred since
    -# it sends encrypted passwords.
    +# METHOD can be "trust", "reject", "md5", "crypt", "password", "gss", "sspi",
    +# "krb5", "ident", "pam" or "ldap".  Note that "password" sends passwords
    +# in clear text; "md5" is preferred since it sends encrypted passwords.
     #
    -# OPTIONS are a set of options for the authentication in the format
    -# NAME=VALUE.  The available options depend on the different
    -# authentication methods -- refer to the "Client Authentication"
    -# section in the documentation for a list of which options are
    -# available for which authentication methods.
    +# OPTION is the ident map or the name of the PAM service, depending on METHOD.
     #
    -# Database and user names containing spaces, commas, quotes and other
    -# special characters must be quoted.  Quoting one of the keywords
    -# "all", "sameuser", "samerole" or "replication" makes the name lose
    -# its special character, and just match a database or username with
    -# that name.
    +# Database and user names containing spaces, commas, quotes and other special
    +# characters must be quoted. Quoting one of the keywords "all", "sameuser" or
    +# "samerole" makes the name lose its special character, and just match a
    +# database or username with that name.
     #
     # This file is read on server startup and when the postmaster receives
     # a SIGHUP signal.  If you edit the file on a running system, you have
    -# to SIGHUP the postmaster for the changes to take effect.  You can
    -# use "pg_ctl reload" to do that.
    +# to SIGHUP the postmaster for the changes to take effect.  You can use
    +# "pg_ctl reload" to do that.
     
     # Put your actual configuration here
     # ----------------------------------
     #
     # If you want to allow non-local connections, you need to add more
    -# "host" records.  In that case you will also need to make PostgreSQL
    -# listen on a non-local interface via the listen_addresses
    -# configuration parameter, or via the -i or -h command line switches.
    +# "host" records. In that case you will also need to make PostgreSQL listen
    +# on a non-local interface via the listen_addresses configuration parameter,
    +# or via the -i or -h command line switches.
    +#
     
    -# CAUTION: Configuring the system for local "trust" authentication
    -# allows any local user to connect as any PostgreSQL user, including
    -# the database superuser.  If you do not trust all your local users,
    -# use another authentication method.
     
    +# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
     
    -# TYPE  DATABASE        USER            ADDRESS                 METHOD
    -
     # "local" is for Unix domain socket connections only
    -local   all             all                                     trust
    -# IPv4 local connections:
    -host    all             all             127.0.0.1/32            trust
    -# IPv6 local connections:
    -host    all             all             ::1/128                 trust
    -# Allow replication connections from localhost, by a user with the
    -# replication privilege.
    -#local   replication     aerobase-sql                                trust
    -#host    replication     aerobase-sql        127.0.0.1/32            trust
    -#host    replication     aerobase-sql        ::1/128                 trust
    +local   all         all                               peer map=aerobase
    +host    all         all         localhost           trust
    +host    all         all         127.0.0.1/32           trust
    +host    all         all         ::1/128           trust
    +
    +
    - change mode from '0600' to '0644'
  * template[/var/opt/aerobase/postgresql/data/pg_ident.conf] action create
    - update content in file /var/opt/aerobase/postgresql/data/pg_ident.conf from 297f46 to 65c150
    --- /var/opt/aerobase/postgresql/data/pg_ident.conf	2020-02-02 00:10:35.188733895 +0100
    +++ /var/opt/aerobase/postgresql/data/.chef-pg_ident20200202-22834-1mv19ql.conf	2020-02-02 00:10:36.709752174 +0100
    @@ -40,4 +40,8 @@
     # ----------------------------------
     
     # MAPNAME       SYSTEM-USERNAME         PG-USERNAME
    +unifiedpush  aerobase  aerobase_server
    +unifiedpush  aerobase  keycloak_server
    +# Default to a 1-1 mapping between system usernames and Postgres usernames
    +unifiedpush  /^(.*)$  \1
    - change mode from '0600' to '0644'
  * execute[restart_postgresql_log_service] action nothing (skipped due to action :nothing)
  * template[/var/log/aerobase/postgresql/config] action create
    - create new file /var/log/aerobase/postgresql/config
    - update content in file /var/log/aerobase/postgresql/config from none to 5e16ac
    --- /var/log/aerobase/postgresql/config	2020-02-02 00:10:36.716752258 +0100
    +++ /var/log/aerobase/postgresql/.chef-config20200202-22834-zcnoew	2020-02-02 00:10:36.716752258 +0100
    @@ -1 +1,4 @@
    +# svlogd configuration
    +s104857600
    +n10
    - change mode from '' to '0644'
    - change owner from '' to 'root'
    - change group from '' to 'root'
Recipe: <Dynamically Defined Resource>
  * service[postgresql] action nothing (skipped due to action :nothing)
Recipe: aerobase::postgresql
  * runit_service[postgresql] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/aerobase/sv/postgresql] action create
      - create new directory /opt/aerobase/sv/postgresql
      - change mode from '' to '0755'
    * template[/opt/aerobase/sv/postgresql/run] action create
      - create new file /opt/aerobase/sv/postgresql/run
      - update content in file /opt/aerobase/sv/postgresql/run from none to 0b5164
      --- /opt/aerobase/sv/postgresql/run	2020-02-02 00:10:36.733752462 +0100
      +++ /opt/aerobase/sv/postgresql/.chef-run20200202-22834-1fdtz46	2020-02-02 00:10:36.733752462 +0100
      @@ -1 +1,4 @@
      +#!/bin/sh
      +exec 2>&1
      +exec chpst -P -U aerobase-sql -u aerobase-sql /opt/aerobase/embedded/bin/postgres -D /var/opt/aerobase/postgresql/data
      - change mode from '' to '0755'
    * directory[/opt/aerobase/sv/postgresql/log] action create
      - create new directory /opt/aerobase/sv/postgresql/log
    * directory[/opt/aerobase/sv/postgresql/log/main] action create
      - create new directory /opt/aerobase/sv/postgresql/log/main
      - change mode from '' to '0755'
    * directory[/var/log/postgresql] action create
      - create new directory /var/log/postgresql
      - change mode from '' to '0755'
    * template[/opt/aerobase/sv/postgresql/log/config] action create
      - create new file /opt/aerobase/sv/postgresql/log/config
      - update content in file /opt/aerobase/sv/postgresql/log/config from none to e3b0c4
      (no diff)
      - change mode from '' to '0644'
    * link[/var/log/postgresql/config] action create
      - create symlink at /var/log/postgresql/config to /opt/aerobase/sv/postgresql/log/config
    * template[/opt/aerobase/sv/postgresql/log/run] action create
      - create new file /opt/aerobase/sv/postgresql/log/run
      - update content in file /opt/aerobase/sv/postgresql/log/run from none to 2f3116
      --- /opt/aerobase/sv/postgresql/log/run	2020-02-02 00:10:36.749752655 +0100
      +++ /opt/aerobase/sv/postgresql/log/.chef-run20200202-22834-1q0ulit	2020-02-02 00:10:36.749752655 +0100
      @@ -1 +1,3 @@
      +#!/bin/sh
      +exec svlogd -tt /var/log/aerobase/postgresql
      - change mode from '' to '0755'
    * directory[/opt/aerobase/sv/postgresql/env] action create
      - create new directory /opt/aerobase/sv/postgresql/env
      - change mode from '' to '0755'
    * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
    * template[/opt/aerobase/sv/postgresql/check] action create (skipped due to only_if)
    * template[/opt/aerobase/sv/postgresql/finish] action create (skipped due to only_if)
    * directory[/opt/aerobase/sv/postgresql/control] action create
      - create new directory /opt/aerobase/sv/postgresql/control
      - change mode from '' to '0755'
    * template[/opt/aerobase/sv/postgresql/control/t] action create
      - create new file /opt/aerobase/sv/postgresql/control/t
      - update content in file /opt/aerobase/sv/postgresql/control/t from none to 70ac7d
      --- /opt/aerobase/sv/postgresql/control/t	2020-02-02 00:10:36.758752763 +0100
      +++ /opt/aerobase/sv/postgresql/control/.chef-t20200202-22834-tu1vek	2020-02-02 00:10:36.758752763 +0100
      @@ -1 +1,4 @@
      +#!/bin/sh
      +echo "received TERM from runit, sending INT instead to force quit connections"
      +/opt/aerobase/embedded/bin/sv interrupt postgresql
      - change mode from '' to '0755'
    * link[/opt/aerobase/init/postgresql] action create
      - create symlink at /opt/aerobase/init/postgresql to /opt/aerobase/embedded/bin/sv
    * file[/opt/aerobase/sv/postgresql/down] action nothing (skipped due to action :nothing)
    * ruby_block[restart_service] action run
      * ruby_block[restart_service] action nothing (skipped due to action :nothing)
      * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
      * directory[/opt/aerobase/sv/postgresql] action create (up to date)
      * template[/opt/aerobase/sv/postgresql/run] action create (up to date)
      * directory[/opt/aerobase/sv/postgresql/log] action create (up to date)
      * directory[/opt/aerobase/sv/postgresql/log/main] action create (up to date)
      * directory[/var/log/postgresql] action create (up to date)
      * template[/opt/aerobase/sv/postgresql/log/config] action create (up to date)
      * link[/var/log/postgresql/config] action create (up to date)
      * template[/opt/aerobase/sv/postgresql/log/run] action create (up to date)
      * directory[/opt/aerobase/sv/postgresql/env] action create (up to date)
      * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
      * template[/opt/aerobase/sv/postgresql/check] action create (skipped due to only_if)
      * template[/opt/aerobase/sv/postgresql/finish] action create (skipped due to only_if)
      * directory[/opt/aerobase/sv/postgresql/control] action create (up to date)
      * template[/opt/aerobase/sv/postgresql/control/t] action create (up to date)
      * link[/opt/aerobase/init/postgresql] action create (up to date)
      * file[/opt/aerobase/sv/postgresql/down] action nothing (skipped due to action :nothing)
      * directory[/opt/aerobase/service] action create (up to date)
      * link[/opt/aerobase/service/postgresql] action create
        - create symlink at /opt/aerobase/service/postgresql to /opt/aerobase/sv/postgresql
      * ruby_block[wait for postgresql service socket] action run
        - execute the ruby block wait for postgresql service socket
      - execute the ruby block restart_service
    * ruby_block[restart_log_service] action run
      * ruby_block[restart_service] action nothing (skipped due to action :nothing)
      * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
      * directory[/opt/aerobase/sv/postgresql] action create (up to date)
      * template[/opt/aerobase/sv/postgresql/run] action create (up to date)
      * directory[/opt/aerobase/sv/postgresql/log] action create (up to date)
      * directory[/opt/aerobase/sv/postgresql/log/main] action create (up to date)
      * directory[/var/log/postgresql] action create (up to date)
      * template[/opt/aerobase/sv/postgresql/log/config] action create (up to date)
      * link[/var/log/postgresql/config] action create (up to date)
      * template[/opt/aerobase/sv/postgresql/log/run] action create (up to date)
      * directory[/opt/aerobase/sv/postgresql/env] action create (up to date)
      * ruby_block[Delete unmanaged env files for postgresql service] action run (skipped due to only_if)
      * template[/opt/aerobase/sv/postgresql/check] action create (skipped due to only_if)
      * template[/opt/aerobase/sv/postgresql/finish] action create (skipped due to only_if)
      * directory[/opt/aerobase/sv/postgresql/control] action create (up to date)
      * template[/opt/aerobase/sv/postgresql/control/t] action create (up to date)
      * link[/opt/aerobase/init/postgresql] action create (up to date)
      * file[/opt/aerobase/sv/postgresql/down] action nothing (skipped due to action :nothing)
      * directory[/opt/aerobase/service] action create (up to date)
      * link[/opt/aerobase/service/postgresql] action create (up to date)
      * ruby_block[wait for postgresql service socket] action run
        - execute the ruby block wait for postgresql service socket
      - execute the ruby block restart_log_service
    * directory[/opt/aerobase/service] action create (up to date)
    * link[/opt/aerobase/service/postgresql] action create (up to date)
    * ruby_block[wait for postgresql service socket] action run
      - execute the ruby block wait for postgresql service socket
  
  * execute[/opt/aerobase/bin/aerobase-ctl restart postgresql] action run
    - execute /opt/aerobase/bin/aerobase-ctl restart postgresql
Recipe: <Dynamically Defined Resource>
  * service[cassandra] action nothing (skipped due to action :nothing)
Recipe: aerobase::cassandra_disable
  * runit_service[cassandra] action disable
    * ruby_block[disable cassandra] action run (skipped due to only_if)
     (up to date)
Recipe: aerobase::postgresql_initialize
  * ruby_block[wait for postgresql to start] action run[2020-02-02T00:10:41+01:00] FATAL: Could not connect to database, retrying in 10 seconds.

    - execute the ruby block wait for postgresql to start
Recipe: aerobase::postgresql_user_and_db
  * execute[create user aerobase_server for database unifiedpush_server] action run
    - execute /opt/aerobase/embedded/bin/psql -h localhost -U aerobase-sql --port 5432 -d "postgres" -c "CREATE USER aerobase_server WITH ENCRYPTED PASSWORD 'aerobase_server'" -t -A
  * execute[create unifiedpush_server database] action run
    - execute /opt/aerobase/embedded/bin/psql -h localhost -U aerobase-sql --port 5432 -d "postgres" -c "CREATE DATABASE unifiedpush_server WITH OWNER aerobase_server ENCODING 'UTF8'" -t -A
  * execute[create user keycloak_server for database keycloak_server] action run
    - execute /opt/aerobase/embedded/bin/psql -h localhost -U aerobase-sql --port 5432 -d "postgres" -c "CREATE USER keycloak_server WITH ENCRYPTED PASSWORD 'keycloak_server'" -t -A
  * execute[create keycloak_server database] action run
    - execute /opt/aerobase/embedded/bin/psql -h localhost -U aerobase-sql --port 5432 -d "postgres" -c "CREATE DATABASE keycloak_server WITH OWNER keycloak_server ENCODING 'UTF8'" -t -A
Recipe: aerobase::database_schema
  * directory[/opt/aerobase/tmp] action create
    - create new directory /opt/aerobase/tmp
    - change mode from '' to '0755'
    - change owner from '' to 'aerobase'
    - change group from '' to 'aerobase-group'
  * template[/opt/aerobase/tmp/db.properties] action create
    - create new file /opt/aerobase/tmp/db.properties
    - update content in file /opt/aerobase/tmp/db.properties from none to 2fd420
    --- /opt/aerobase/tmp/db.properties	2020-02-02 00:10:52.234938990 +0100
    +++ /opt/aerobase/tmp/.chef-db20200202-22834-1lgbnsg.properties	2020-02-02 00:10:52.234938990 +0100
    @@ -1 +1,15 @@
    +# Postgres connection string
    +jdbcUrl=jdbc:postgresql://localhost:5432/unifiedpush_server
    +username=aerobase_server
    +password=aerobase_server
    +
    +dataSource.dataSource=true
    +dataSource.prepStmtCacheSize=250
    +dataSource.prepStmtCacheSqlLimit=2048
    +dataSource.useServerPrepStmts=true
    +
    +# Maximum number of JDBC connections in the pool. Hibernate default: 100
    +maximumPoolSize=10
    +# Seconds a Connection can remain pooled but unused before being discarded. Zero means idle connections never expire. Default: 300
    +idleTimeout=300
    - change mode from '' to '0644'
    - change owner from '' to 'aerobase'
    - change group from '' to 'aerobase-group'
  * template[/opt/aerobase/tmp/hibernate.properties] action create
    - create new file /opt/aerobase/tmp/hibernate.properties
    - update content in file /opt/aerobase/tmp/hibernate.properties from none to 12487c
    --- /opt/aerobase/tmp/hibernate.properties	2020-02-02 00:10:52.243939099 +0100
    +++ /opt/aerobase/tmp/.chef-hibernate20200202-22834-3to178.properties	2020-02-02 00:10:52.243939099 +0100
    @@ -1 +1,7 @@
    +hibernate.dialect=org.hibernate.dialect.PostgreSQL95Dialect
    +hibernate.hbm2ddl.auto=update
    +hibernate.show_sql=false
    +hibernate.format_sql=false
    +hibernate.transaction.flush_before_completion=true
    +hibernate.id.new_generator_mappings=true
    - change mode from '' to '0644'
    - change owner from '' to 'aerobase'
    - change group from '' to 'aerobase-group'
  * execute[initialize aerobase-server database] action run
    
    ================================================================================
    Error executing action `run` on resource 'execute[initialize aerobase-server database]'
    ================================================================================
    
    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of ./init-unifiedpush-db.sh --config-path=/opt/aerobase/tmp ----
    STDOUT: Using config path from /opt/aerobase/tmp
    STDERR: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/opt/aerobase/embedded/apps/unifiedpush-server/initdb/lib/spring-core-5.0.2.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
    WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    Feb 02, 2020 12:10:53 AM org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation
    INFO: HHH000204: Processing PersistenceUnitInfo [
    	name: default
    	...]
    Feb 02, 2020 12:10:53 AM org.hibernate.Version logVersion
    INFO: HHH000412: Hibernate Core {5.3.1.Final}
    Feb 02, 2020 12:10:53 AM org.hibernate.cfg.Environment <clinit>
    INFO: HHH000206: hibernate.properties not found
    Feb 02, 2020 12:10:53 AM org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl configure
    WARN: HHH000059: Defining hibernate.transaction.flush_before_completion=true ignored in HEM
    Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'JPAInstallationDao': Unsatisfied dependency expressed through field 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in org.jboss.aerogear.unifiedpush.jpa.JPAConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
    	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91)
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:372)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1344)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:758)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
    	at org.jboss.aerogear.unifiedpush.DBMaintenance.createApplicationContext(DBMaintenance.java:25)
    	at org.jboss.aerogear.unifiedpush.DBMaintenance.main(DBMaintenance.java:13)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in org.jboss.aerogear.unifiedpush.jpa.JPAConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
    	at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:622)
    	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:440)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1250)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
    	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1135)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
    	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)
    	... 14 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in org.jboss.aerogear.unifiedpush.jpa.JPAConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:587)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1250)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
    	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:367)
    	... 29 more
    Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
    	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:579)
    	... 38 more
    Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
    	at org.hibernate.boot.spi.XmlMappingBinderAccess.<init>(XmlMappingBinderAccess.java:43)
    	at org.hibernate.boot.MetadataSources.<init>(MetadataSources.java:86)
    	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:212)
    	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:167)
    	at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:51)
    	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)
    	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:387)
    	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:376)
    	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)
    	at org.jboss.aerogear.unifiedpush.jpa.JPAConfig.entityManagerFactory(JPAConfig.java:61)
    	at org.jboss.aerogear.unifiedpush.jpa.JPAConfig$$EnhancerBySpringCGLIB$$78a5b899.CGLIB$entityManagerFactory$0(<generated>)
    	at org.jboss.aerogear.unifiedpush.jpa.JPAConfig$$EnhancerBySpringCGLIB$$78a5b899$$FastClassBySpringCGLIB$$6efdf159.invoke(<generated>)
    	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:361)
    	at org.jboss.aerogear.unifiedpush.jpa.JPAConfig$$EnhancerBySpringCGLIB$$78a5b899.entityManagerFactory(<generated>)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
    	... 39 more
    Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
    	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
    	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
    	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
    	... 59 more
    ---- End output of ./init-unifiedpush-db.sh --config-path=/opt/aerobase/tmp ----
    Ran ./init-unifiedpush-db.sh --config-path=/opt/aerobase/tmp returned 1
    
    Resource Declaration:
    ---------------------
    # In /opt/aerobase/embedded/cookbooks/cache/cookbooks/aerobase/recipes/database_schema.rb
    
     92: execute "initialize aerobase-server database" do
     93:   cwd "#{install_dir}/embedded/apps/unifiedpush-server/initdb/bin"
     94:   command "#{command}"
     95: end
    
    Compiled Resource:
    ------------------
    # Declared in /opt/aerobase/embedded/cookbooks/cache/cookbooks/aerobase/recipes/database_schema.rb:92:in `from_file'
    
    execute("initialize aerobase-server database") do
      action [:run]
      default_guard_interpreter :execute
      command "./init-unifiedpush-db.sh --config-path=/opt/aerobase/tmp"
      backup 5
      declared_type :execute
      cookbook_name "aerobase"
      recipe_name "database_schema"
      domain nil
      user nil
      cwd "/opt/aerobase/embedded/apps/unifiedpush-server/initdb/bin"
    end
    
    System Info:
    ------------
    chef_version=14.8.12
    platform=ubuntu
    platform_version=18.04
    ruby=ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
    program_name=/opt/aerobase/embedded/bin/chef-client
    executable=/opt/aerobase/embedded/bin/chef-client
    
Recipe: aerobase::postgresql
  * execute[restart_postgresql_log_service] action run
    - execute /opt/aerobase/embedded/bin/sv restart /opt/aerobase/sv/postgresql/log

Running handlers:
[2020-02-02T00:10:54+01:00] ERROR: Running exception handlers
Running handlers complete
[2020-02-02T00:10:54+01:00] ERROR: Exception handlers complete
Chef Client failed. 59 resources updated in 29 seconds
[2020-02-02T00:10:54+01:00] FATAL: Stacktrace dumped to /opt/aerobase/embedded/cookbooks/cache/chef-stacktrace.out
[2020-02-02T00:10:54+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2020-02-02T00:10:54+01:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[initialize aerobase-server database] (aerobase::database_schema line 92) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of ./init-unifiedpush-db.sh --config-path=/opt/aerobase/tmp ----
STDOUT: Using config path from /opt/aerobase/tmp
STDERR: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/opt/aerobase/embedded/apps/unifiedpush-server/initdb/lib/spring-core-5.0.2.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Feb 02, 2020 12:10:53 AM org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation
INFO: HHH000204: Processing PersistenceUnitInfo [
	name: default
	...]
Feb 02, 2020 12:10:53 AM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {5.3.1.Final}
Feb 02, 2020 12:10:53 AM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
Feb 02, 2020 12:10:53 AM org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl configure
WARN: HHH000059: Defining hibernate.transaction.flush_before_completion=true ignored in HEM
Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'JPAInstallationDao': Unsatisfied dependency expressed through field 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in org.jboss.aerogear.unifiedpush.jpa.JPAConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:586)
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:372)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1344)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:758)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
	at org.jboss.aerogear.unifiedpush.DBMaintenance.createApplicationContext(DBMaintenance.java:25)
	at org.jboss.aerogear.unifiedpush.DBMaintenance.main(DBMaintenance.java:13)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.orm.jpa.SharedEntityManagerCreator#0': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in org.jboss.aerogear.unifiedpush.jpa.JPAConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:622)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:440)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1135)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1062)
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:583)
	... 14 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in org.jboss.aerogear.unifiedpush.jpa.JPAConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:587)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:367)
	... 29 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.persistence.EntityManagerFactory]: Factory method 'entityManagerFactory' threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:579)
	... 38 more
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
	at org.hibernate.boot.spi.XmlMappingBinderAccess.<init>(XmlMappingBinderAccess.java:43)
	at org.hibernate.boot.MetadataSources.<init>(MetadataSources.java:86)
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:212)
	at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:167)
	at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:51)
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365)
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:387)
	at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:376)
	at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341)
	at org.jboss.aerogear.unifiedpush.jpa.JPAConfig.entityManagerFactory(JPAConfig.java:61)
	at org.jboss.aerogear.unifiedpush.jpa.JPAConfig$$EnhancerBySpringCGLIB$$78a5b899.CGLIB$entityManagerFactory$0(<generated>)
	at org.jboss.aerogear.unifiedpush.jpa.JPAConfig$$EnhancerBySpringCGLIB$$78a5b899$$FastClassBySpringCGLIB$$6efdf159.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:361)
	at org.jboss.aerogear.unifiedpush.jpa.JPAConfig$$EnhancerBySpringCGLIB$$78a5b899.entityManagerFactory(<generated>)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
	... 39 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	... 59 more
---- End output of ./init-unifiedpush-db.sh --config-path=/opt/aerobase/tmp ----
Ran ./init-unifiedpush-db.sh --config-path=/opt/aerobase/tmp returned 1
 bionic  ~  tmp  aerobase  ERROR  $  
@yanivmn
Copy link
Contributor

yanivmn commented Feb 2, 2020

@socialcyberdog, Thanks for reporting this issue.

  1. Xenial packages can be used for Bionic
  2. Please make sure java 8 in installed and configured as your default JAVA

The above error indicates JAVA 9 is used.
Then you can rerun sudo aerobase-ctl reconfigure.

Regarding you apt-get comment, please reply the correct commands or send a docs pull request.

@yanivmn
Copy link
Contributor

yanivmn commented Feb 3, 2020

@socialcyberdog - any comments here? did you try to use OpenJDK 8?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants