Problems while installing concerto-full on Debian/Ubuntu

1,896 views
Skip to first unread message

vra...@gmail.com

unread,
Apr 13, 2019, 1:55:22 PM4/13/19
to Concerto Digital Signage
I'm trying to install concerto and I'm having a lot of trouble. I've had a number of goes, including installing concerto-full, concerto-lite and completely from source. The only version that works is the VM image, but I can't use that as a long-term solution. I'd appreciate any help anyone can give me.

Here's the output from the last attempt. I'm guessing I have an unmet dependency (or a version mismatch) in rake but this really isn't my area of expertise.

sudo apt-get install concerto-full
Reading package lists... Done
Building dependency tree       
Reading state information... Done
concerto-full is already the newest version (2.3.6).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up concerto-full (2.3.6) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/concerto-full.conf
concerto already exists and has privileges on concerto_production.
creating database concerto_production: already exists.
dbconfig-common: flushing administrative password
Successfully installed bundler-2.0.1
1 gem installed
Using rake 12.0.0
Using i18n 0.8.6
Using minitest 5.10.3
Using thread_safe 0.3.6
Using tzinfo 1.2.3
Using activesupport 4.2.9
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.2.0
Using nokogiri 1.8.0
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.8
Using loofah 2.0.3
Using rails-html-sanitizer 1.0.3
Using actionview 4.2.9
Using rack 1.6.8
Using rack-test 0.6.3
Using actionpack 4.2.9
Using globalid 0.4.0
Using activejob 4.2.9
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using mail 2.6.6
Using actionmailer 4.2.9
Using activemodel 4.2.9
Using arel 6.0.4
Using activerecord 4.2.9
Using addressable 2.3.8
Using airbrake-ruby 1.8.0
Using airbrake 5.8.1
Using ansi 1.5.0
Using ast 2.3.0
Using attachable 0.0.5
Using bcrypt 3.1.11
Using thor 0.19.4
Using railties 4.2.9
Using bootstrap-datepicker-rails 1.6.4.1
Using bundler 2.0.1
Using bundler-audit 0.6.0
Using cancancan 2.0.0
Using clockwork 2.0.2
Using coffee-script-source 1.12.2
Using execjs 2.2.2
Using coffee-script 2.4.1
Using coffee-rails 4.2.2
Using multipart-post 2.0.0
Using faraday 0.9.2
Using jwt 1.5.6
Using little-plugger 1.1.4
Using multi_json 1.12.1
Using logging 2.2.2
Using memoist 0.16.0
Using os 0.9.6
Using signet 0.7.3
Using googleauth 0.5.1
Using httpclient 2.8.3
Using hurley 0.2
Using declarative 0.0.9
Using declarative-option 0.1.0
Using uber 0.1.0
Using representable 3.0.4
Using retriable 3.1.1
Using google-api-client 0.10.3
Using icalendar 2.4.1
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.11.3
Using sprockets-rails 2.3.3
Using rails 4.2.9
Using concerto_calendar 0.0.9
Using concerto_docsplit 0.7.5
Using concerto_frontend 0.4.3
Using concerto_hardware 0.8
Using concerto_iframe 0.1.0
Using htmlentities 4.3.4
Using iso8601 0.9.1
Using ruby-ll 2.1.2
Using oga 2.10
Using open_uri_redirections 0.2.1
Using video_info 2.5.0
Using concerto_remote_video 1.2
Using encryptor 3.0.0
Using ruby-xslt 0.9.9
Using concerto_simple_rss 1.1
Using concerto_weather 0.6
Using connection_pool 1.2.0
Using delayed_job 4.1.3
Using delayed_job_active_record 4.1.2
Using orm_adapter 0.5.0
Using responders 2.4.0
Using warden 1.2.7
Using devise 3.5.10
Using docile 1.1.5
Using ffi 1.9.18
Using rb-fsevent 0.10.2
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.1
Using font-awesome-sass 4.7.0
Using rubinius-core-api 0.0.1
Using rubinius-actor 0.0.2
Using girl_friday 0.11.2
Using google-analytics-turbolinks 0.0.5
Using i18n-js 3.0.1
Using jquery-rails 4.3.1
Using jquery-timepicker-rails 1.11.10
Using json 2.1.0
Using kaminari-core 1.0.1
Using kaminari-actionview 1.0.1
Using kaminari-activerecord 1.0.1
Using kaminari 1.0.1
Using libv8 3.16.14.19 (x86_64-linux)
Using mysql2 0.4.9
Using nprogress-rails 0.2.0.2
Using sawyer 0.6.0
Using octokit 4.2.0
Using public_activity 1.5.0
Using redcarpet 3.3.4
Using ref 2.0.0
Using rmagick 2.16.0
Using rubyzip 1.2.1
Using sass-rails 5.0.6
Using simplecov-html 0.10.2
Using simplecov 0.15.0
Using sqlite3 1.3.13
Using therubyracer 0.12.3
Using turbolinks 2.5.3
Using twitter-bootstrap-rails-confirm 1.0.6
Using uglifier 2.7.2
Bundle complete! 48 Gemfile dependencies, 129 gems now installed.
Gems in the groups postgres and development were not installed.
Bundled gems are installed into `./vendor/bundle`
rake aborted!
Timeout::Error: execution expired
/usr/share/concerto/config/initializers/01-db_create_load_or_migrate.rb:50:in `sleep'
/usr/share/concerto/config/initializers/01-db_create_load_or_migrate.rb:50:in `block in <top (required)>'
/usr/share/concerto/config/initializers/01-db_create_load_or_migrate.rb:47:in `<top (required)>'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:268:in `load'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:268:in `block in load'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:268:in `load'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:652:in `block in load_config_initializer'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/notifications.rb:166:in `instrument'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:651:in `load_config_initializer'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:615:in `each'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/engine.rb:615:in `block in <class:Engine>'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/initializable.rb:30:in `instance_exec'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/initializable.rb:30:in `run'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/initializable.rb:55:in `block in run_initializers'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/initializable.rb:44:in `each'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/initializable.rb:44:in `tsort_each_child'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/initializable.rb:54:in `run_initializers'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/application.rb:352:in `initialize!'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/railtie.rb:194:in `public_send'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/railtie.rb:194:in `method_missing'
/usr/share/concerto/config/environment.rb:10:in `<top (required)>'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:274:in `require'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:274:in `block in require'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:240:in `load_dependency'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.9/lib/active_support/dependencies.rb:274:in `require'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/application.rb:328:in `require_environment!'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/railties-4.2.9/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/airbrake-5.8.1/lib/airbrake/rake/task_ext.rb:19:in `execute'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-2.3.3/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/airbrake-5.8.1/lib/airbrake/rake/task_ext.rb:19:in `execute'
/usr/share/concerto/vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
dpkg: error processing package concerto-full (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 concerto-full
E: Sub-process /usr/bin/dpkg returned an error code (1)


wiz...@gmail.com

unread,
May 6, 2019, 12:04:48 PM5/6/19
to Concerto Digital Signage
Hi...

Instaling concerto on the Ubuntu server 16.04 in my case going well with notes on: https://github.com/concerto/concerto/wiki/Installing-Concerto-2
The installation on the Ubuntu server 18.04 causes some problems and requires adjustments.
I succeeded in this way:

(The commands I write to the console are ordered and I wait for the necessary components to be executed and installed.
Commands are RED comentary are BLACK, Changes are PURPLECheckings are BLUE. I use the Nano editor. If you use something else, replace the "nano" with "editor". )

***********************************************************************************************************************
1. Absolutely fresh installation of Ubuntu server 18.04 (I use the servers in the Greek cloud https://cyclades.okeanos-global.grnet.gr) I manage the server with the console via ssh protocol (Xshel alias Putty ...)
(I think it would work even, if you would put up a classic server ...I'll try to find out when I have the time :-))

************************************************************************************************************************
2. I am an old school so I first edit the server stuff that I think must be there (MySQL, Apache, PHP and Webmin control :-))

--------------
2.0 Correction of REPOZITORIES for programs on 18.04
-------------

cat /etc/*release

sudo chmod 777 /etc/resolv.conf

sudo rm /etc/resolv.conf

sudo ln -s /run/resolvconf/resolv.conf /etc/resolv.conf

sudo chmod 644 /etc/resolv.conf

apt list --upgradable

-------------
2.1 MySQL 
-------------
sudo apt-get update

sudo apt-get install mysql-server 

Installation protection and root password preparation:

sudo mysql_secure_installation


-------------
2.2 APACHE
-------------
sudo apt install apache2

sudo ufw allow in "Apache Full"  #firewall

sudo systemctl restart apache2.service


-------------
2.3 PHP
-------------
sudo apt-get install php php-cgi libapache2-mod-php php-common php-pear php-mbstring

sudo a2enconf php7.2-cgi

sudo systemctl reload apache2.service

-------------
2.4 WEBMIN
-------------
sudo nano /etc/apt/sources.list



sudo apt-key add jcameron-key.asc

sudo apt-get update 

sudo apt-get install webmin

sudo ufw allow 10000/tcp

*********************************************************************************************************************************
Thus, the server is set up :-)!

You can check Apache ... http:// ip of your server ...
You can check Webmin ... shttp:// ip of your server:10000(
If you have not heard of Webmin yet, read about it and what it's used ...)

*********************************************************************************************************************************
Finally Concerto2 ...

-------------
01 - Prepare (lists)
-------------
sudo apt-get install apt-transport-https

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7

echo 'deb http://dl.concerto-signage.org/packages/ stretch main\ndeb https://oss-binaries.phusionpassenger.com/apt/passenger stretch main' > /tmp/concerto.list

sudo cp -fr /tmp/concerto.list /etc/apt/sources.list.d/

rm /tmp/concerto.list

sudo apt-get update

-------------
02 - Prepare (Ruby 2,5,1)
-------------

echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc

echo 'eval "$(rbenv init -)"' >> ~/.bashrc

exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc

exec $SHELL

sudo apt install ruby-full


Check ruby version:

ruby -v

-------------
03 - Concerto install * 
-------------

(* After the setup, there will be a lot of errors ... do not worry!)
It is installed in such way that it is transferred to its folders!

sudo apt-get install concerto-full

-------------
04 - Corrections 
-------------

cd /usr/share/concerto/

sudo gem install bundler -v 1.16.1 



Corrections to the Gemfile.lock file:

sudo nano Gemfile.lock

In file find and changed the delayed_job version from 4.1.3 to  4.1.4



Corrections to the Gemfile file:

sudo nano Gemfile

Edit Gemfile. In file find and replace gem 'devise', '~> 3.5.5' with gem 'devise', :git=> "https://github.com/plataformatec/devise.git", :branch => "3-stable"



sudo dpkg --configure concerto-full

sudo systemctl reload apache2

cd /


-------------
05 - Corrections - VIRTUAL HOST
-------------

Edit Virtual Host for Concerto in the folder:

sudo nano /etc/apache2/httpd.conf

Add:

<VirtualHost *:80>
  ServerName concerto
  DocumentRoot  /usr/share/concerto
  <Directory /usr/share/concerto/public>
    RackEnv production
    AllowOverride all
    Options -MultiViews
  </Directory>

  PassengerMinInstances 3
</VirtualHost>


sudo a2ensite concerto && sudo apache2ctl restart

sudo a2dissite 000-default

sudo service apache2 reload


Check Concerto in Browser and (enter data for admin) 

BONUS**** :-)

If you are from a country where your font is different from Latin ... I am from Slovenia and we have strange characters in the alphabet, we need to use UTF8 in the database.
How to shift the font style for a database:

sudo mysql -u root -p
 
View current status - character set in dbase for Ceoncerto (concerto_production):

SELECT default_character_set_name FROM information_schema.SCHEMATA S WHERE schema_name = "concerto_production";

SELECT CCSA.character_set_name FROM information_schema.`TABLES` T,information_schema.`COLLATION_CHARACTER_SET_APPLICABILITY` CCSA WHERE CCSA.collation_name = T.table_collation AND T.table_schema = "concerto_production" AND T.table_name = "TABLENAME";

\q

Change in utf8:

sudo nano .my.cnf

ADD
[client]
user=root
password="Your password for Concerto"

mysql --database=concerto_production -B -N -e "SHOW TABLES" | awk '{print "SET foreign_key_checks = 0; ALTER TABLE", $1, "CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; SET foreign_key_checks = 1; "}' | mysql --database=concerto_production

mysql 

ALTER DATABASE concerto_production CHARACTER SET utf8 COLLATE utf8_general_ci;

\q

rm .my.cnf



Greetings, Jurij 
P.S.

Some tests:



Dne sobota, 13. april 2019 19.55.22 UTC+2 je oseba vra...@gmail.com napisala:

low...@gmail.com

unread,
May 8, 2019, 6:14:23 AM5/8/19
to Concerto Digital Signage
Thank you! This also helps getting a broken Conerto installation back to work after doing the release upgrade from Ubunut 16 LTS -> 18 LTS!

paul...@googlemail.com

unread,
Jul 8, 2019, 12:27:27 PM7/8/19
to Concerto Digital Signage
Hi....
Works ace...except...
sudo dpkg --configure concerto-full

Then the below happens.
I've no experience of ruby/rails/gems. Any pointers would be well received.

Paul.



Bundler could not find compatible versions for gem "bundler":
  In Gemfile:
    bundler-audit was resolved to 0.6.0, which depends on
      bundler (~> 1.2)

    rails (~> 4.2.6) was resolved to 4.2.9, which depends on
      bundler (< 2.0, >= 1.3.0)

  Current Bundler version:
    bundler (2.0.2)
This Gemfile requires a different version of Bundler.
Perhaps you need to update Bundler by running `gem install bundler`?

Could not find gem 'bundler (< 2.0, >= 1.3.0)', which is required by gem 'rails
(~> 4.2.6)', in any of the sources.

dpkg: error processing package concerto-full (--configure):
 subprocess installed post-installation script returned error exit status 6




Reply all
Reply to author
Forward
0 new messages