yum install epel-release
yum install httpd pygpgme curl libpqxx-devel gcc gcc-c++ ImageMagick ImageMagick-devel libxslt-devel mariadb-devel sqlite-devel zlib-devel patch libyaml-devel autoconf readline-devel libffi-devel bzip2 automake libtool bison ruby-devel rubygem-bundlersudo curl --fail -sSLo /etc/yum.repos.d/passenger.repo https://oss-binaries.phusionpassenger.com/yum/definitions/el-passenger.repo
sudo yum install -y mod_passenger
cd /usr/share
git clone https://github.com/concerto/concerto.git
chown -R apache.apache /usr/share/concertocd /usr/share/concerto
sudo -u apache bundle install --path vendor/bundle
sudo -u apache bundle exec rake db:migrate
sudo -u apache bundle exec rake db:seed
sudo -u apache RAILS_ENV=production bundle exec rake assets:precompilecd /etc/systemd/system/
vim concerto-worker.service[Unit]
Description=concerto worker background services
After=syslog.target network.target
[Service]
User=apache
Group=apache
WorkingDirectory=/usr/share/concerto
Environment=RAILS_ENV=production PORT=5100
ExecStart=/bin/bash -lc 'bundle exec rake jobs:work'
PIDFile=/run/worker.1.pid
Type=simple
StandardOutput=journal
StandardError=journal
SyslogIdentifier=%n
KillMode=process
RestartSec=1
Restart=on-failure
[Install]
WantedBy=multi-user.target:wq vim concerto-clockwork.service[Unit]
Description=concerto clockwork background services
After=syslog.target network.target
[Service]
User=apache
Group=apache
WorkingDirectory=/usr/share/concerto
Environment=RAILS_ENV=production PORT=5000
ExecStart=/bin/bash -lc 'bundle exec clockwork lib/cron.rb'
PIDFile=/run/clock.1.pid
Type=simple
StandardOutput=journal
StandardError=journal
SyslogIdentifier=%n
KillMode=process
RestartSec=1
Restart=on-failure
[Install]
WantedBy=multi-user.target:wqchown root:root /etc/systemd/system/concerto-clockwork.service /etc/systemd/system/concerto-worker.service
chmod 644 /etc/systemd/system/concerto-clockwork.service /etc/systemd/system/concerto-worker.service
systemctl enable concerto-clockwork
systemctl enable concerto-workerchecking for Magick-config... no
Which I resolve by:
sudo yum install -y ImageMagick-devel
and then I can restart the bundle install step.
But 2 of the rake steps continue to fail:
sudo -u apache bundle exec rake db:migrate
sudo -u apache bundle exec rake db:seed
They both show:
rake aborted!
SyntaxError: /usr/share/concerto/vendor/bundle/ruby/gems/i18n-tasks-0.9.0/lib/i18n/tasks/scanners/results/key_occurrences.rb:14: syntax error, unexpected ','
def initialize(key:, occurrences:)
Can you please share you http conf file for your server?
Hopefully, this is helpful for others who want to run Concerto 2 on CentOS 7. Make sure to follow the instructions and use sudo, running many of these instructions as root will break your Ruby installation. Finally, this seems to work fine under SELinux. but if you encounter weirdness, always check your audit log and/or temporarily disable SELinux (setenforce=0) when troubleshooting.1. Install prerequisite repo.yum install epel-release2. Install required packages.
yum install httpd pygpgme curl libpqxx-devel gcc gcc-c++ ImageMagick libxslt-devel mariadb-devel sqlite-devel zlib-devel patch libyaml-devel autoconf readline-devel libffi-devel bzip2 automake libtool bison ruby-devel rubygem-bundler
[root@server concerto]# sudo -u apache bundle install --path vendor/bundle
Gemfile syntax error:
/usr/share/concerto/Gemfile:29: syntax error, unexpected ':', expecting $end
gem 'therubyracer', platforms: :ruby
^
--
You received this message because you are subscribed to the Google Groups "Concerto Digital Signage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concerto-digital-s...@googlegroups.com.
To post to this group, send email to concerto-dig...@googlegroups.com.
Visit this group at https://groups.google.com/group/concerto-digital-signage.
For more options, visit https://groups.google.com/d/optout.
You might run into this error if you’re running a very old version of Ruby, so that’s worth a check.
--
AugustOn March 7, 2016 at 7:40:30 PM, Sid Hernandez (sidboyl...@gmail.com) wrote:
That didnt do it for me. I still get the same error.--[root@server concerto]# sudo -u apache bundle install --path vendor/bundle
Gemfile syntax error:
/usr/share/concerto/Gemfile:29: syntax error, unexpected ':', expecting $end
gem 'therubyracer', platforms: :ruby
^
On Tuesday, February 23, 2016 at 3:31:00 PM UTC-8, Brad Christ wrote:So, I was able to recreate the problem. The cause is beyond my skills, but I did find a workaround.Edit /usr/share/concerto/GemfileSearch for this line: gem 'i18n-tasks', '0.9.0'Replace it with: gem 'i18n-tasks', '~> 0.7.10'Those commands should now execute correctly.
You received this message because you are subscribed to the Google Groups "Concerto Digital Signage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concerto-digital-signage+unsub...@googlegroups.com.
To add to this, I was not able to reproduce this error on a CentOS 7 test box. If you are trying this on a different version of CentOS (like 6 or, gasp, even 5), it's not likely to work.
On Monday, March 7, 2016 at 6:15:47 PM UTC-8, august wrote:
You might run into this error if you’re running a very old version of Ruby, so that’s worth a check.
--
AugustOn March 7, 2016 at 7:40:30 PM, Sid Hernandez (sidboyl...@gmail.com) wrote:
That didnt do it for me. I still get the same error.--[root@server concerto]# sudo -u apache bundle install --path vendor/bundle
Gemfile syntax error:
/usr/share/concerto/Gemfile:29: syntax error, unexpected ':', expecting $end
gem 'therubyracer', platforms: :ruby
^
On Tuesday, February 23, 2016 at 3:31:00 PM UTC-8, Brad Christ wrote:So, I was able to recreate the problem. The cause is beyond my skills, but I did find a workaround.Edit /usr/share/concerto/GemfileSearch for this line: gem 'i18n-tasks', '0.9.0'Replace it with: gem 'i18n-tasks', '~> 0.7.10'Those commands should now execute correctly.
You received this message because you are subscribed to the Google Groups "Concerto Digital Signage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concerto-digital-s...@googlegroups.com.
To post to this group, send email to concerto-dig...@googlegroups.com.
Visit this group at https://groups.google.com/group/concerto-digital-signage.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Concerto Digital Signage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/concerto-digital-signage/HZGDrkydIn8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to concerto-digital-s...@googlegroups.com.
The error you’re getting both for retrieving the repo and the previous error you reported suggest that your SSL installation is broken in some way.
--
AugustOn March 18, 2016 at 12:44:17 PM, Sing Kingdavong (kingd...@gmail.com) wrote:
--CentOS7, I got an error message when I execute this command "git clone https://github.com/concerto/concerto.git" with the message below. Any help would appreciatedCloning into 'concerto'...
fatal: unable to access 'https://github.com/concerto/concerto.git/': SSL received a record that exceeded the maximum permissible length.
You received this message because you are subscribed to the Google Groups "Concerto Digital Signage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to concerto-digital-signage+unsub...@googlegroups.com.
Is it possible to get a rhel/centos version of the init.d script?
VirtualHost *:80>
ServerName concerto
DocumentRoot /usr/share/concerto/public
<Directory /usr/share/concerto/public>
RackEnv production
AllowOverride all
Options -MultiViews
Require all granted
</Directory>
PassengerMinInstances 3
</VirtualHost>
Hi,