SCALR 3.5 Open Source on Ubuntu 12.04 - INSTALL GUIDE

1,528 views
Skip to first unread message

Arya A.

unread,
Aug 26, 2012, 11:05:00 AM8/26/12
to scalr-...@googlegroups.com

I'm fairly certain this is a work in progress (ie, nowhere near complete and definitely not polished), but it may help someone else out there.


Install prerequisites

apt-get -y install apache2-mpm-prefork php5 php5-mysql php5-curl php5-mcrypt php5-snmp
apt-get -y install libssh2-php apparmor-utils mailutils bind9 phpmyadmin
apt-get -y install php-pear rrdtool librrd-dev libcurl4-openssl-dev mysql-server snmp
# refer http://wiki.scalr.net/pages/viewpage.action?pageId=327743

echo '$cfg["AllowArbitraryServer"] = TRUE;' >> /etc/phpmyadmin/config.inc.php

Install SCALR

export SCALR_BASE=/usr/local/scalr
export SCALR_HOME=$SCALR_BASE/scalr-home
export SCALR_FILES=$SCALR_BASE/scalr-files
export CURRENT=$SCALR_BASE/current
export PASSWORD=yourpassword

useradd -d $SCALR_BASE -m -r -G www-data,bind scalr
usermod -G scalr www-data
mkdir -p $SCALR_HOME
mkdir -p $SCALR_FILES
cd $SCALR_FILES

curl -L https://github.com/Scalr/scalr/tarball/master > scalr-master-$(date '+%Y%m%d').tar.gz
cd $SCALR_BASE
tar -zxvf $SCALR_FILES/scalr-master-$(date '+%Y%m%d').tar.gz
ln -sf $(ls -rtd1 Scalr* | tail -1)/app current


mkdir -p $SCALR_HOME/etc
touch $SCALR_HOME/etc/.cryptokey
mkdir -p $SCALR_HOME/cache/smarty_bin
chmod 2755 $SCALR_BASE
chmod -R 2775 $SCALR_HOME/cache
cd $CURRENT ; rmdir cache ; ln -sf $SCALR_HOME/cache ; cd $SCALR_BASE
chmod 2775 $SCALR_HOME/etc/.cryptokey
cd $CURRENT/etc ; ln -sf $SCALR_HOME/etc/.cryptokey ; cd $SCALR_BASE
mkdir -p $SCALR_HOME/graphics
mkdir -p $SCALR_HOME/rrddata
mkdir -p $SCALR_HOME/log
chown -R scalr:scalr $SCALR_BASE

cp -rp $CURRENT/templates/en_US $SCALR_HOME/cache/smarty_bin/

mysql -uroot -e 'create database scalr; grant all on scalr.* to scalr@localhost identified by "'$PASSWORD'";flush privileges;'
mysql -uroot -e 'grant all on *.* to admin@localhost identified by "'$PASSWORD'" with grant option;flush privileges;'
mysql -uscalr -p${PASSWORD} scalr < $CURRENT/../sql/scalr.sql

echo 'INSERT INTO `scaling_metrics` (`id`, `client_id`, `env_id`, `name`, `file_path`, `retrieve_method`, `calc_function`, `algorithm`, `alias`) VALUES
(1, 0, 0, "LoadAverages", NULL, NULL, "avg", "Sensor", "la"),
(2, 0, 0, "FreeRam", NULL, NULL, "avg", "Sensor", "ram"),
(3, 0, 0, "URLResponseTime", NULL, NULL, NULL, "Sensor", "http"),
(4, 0, 0, "SQSQueueSize", NULL, NULL, NULL, "Sensor", "sqs"),
(5, 0, 0, "DateAndTime", NULL, NULL, NULL, "DateTime", "time"),
(6, 0, 0, "BandWidth", NULL, NULL, NULL, "Sensor", "bw");' | mysql -u root scalr

perl -i -pe "s/ns1.scalr.net/scalr.example.org/g" $CURRENT/src/class.DBDNSZone.php

cp -p $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php-dist
perl -i -pe 's/\(!\$retval\)/(\$retval === false)/g' $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php

cp -p $CURRENT/src/structs/struct.CONFIG.php $CURRENT/src/structs/struct.CONFIG.php-dist
ip=$(ifconfig eth0 | grep inet | head -1 | awk ' { print $2 } ' | cut -f2 -d:)
perl -i -pe "s/^(.*PMA_INSTANCE_IP_ADDRESS = ).*/\$1 '$ip';/g" $CURRENT/src/structs/struct.CONFIG.php

for i in CPU LA MEM NET; do
mv $CURRENT/cron/watchers/class.${i}SNMPWatcher.php $CURRENT/cron/watchers/class.${i}SNMPWatcher.php-dist
curl https://raw.github.com/ssrini/scalr/master/cron/watchers/class.${i}SNMPWatcher.php > $CURRENT/cron/watchers/class.${i}SNMPWatcher.php
chown scalr:scalr $CURRENT/cron/watchers/class.${i}SNMPWatcher.php
done

for i in RRD RRDGraph; do
mv $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php-dist
curl https://raw.github.com/ssrini/scalr/master/src/LibWebta/library/Data/RRD/class.${i}.php > $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php
chown scalr:scalr $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php
done

# Add Ubuntu 12.04 to the list of operating systems for Rackspace

cp -p $CURRENT/src/Modules/Platforms/Rackspace/Rackspace.php $CURRENT/src/Modules/Platforms/Rackspace/Rackspace.php-dist

vim $CURRENT/src/Modules/Platforms/Rackspace/Rackspace.php

# around line 48, add this line:

if (!$isManagedOrd1) {
                              $images['rs-ORD1'] = array(
                                      '112'   => array('name' => 'Ubuntu 10.04','os_dist' => 'ubuntu', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '115'   => array('name' => 'Ubuntu 11.04','os_dist' => 'ubuntu', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '119'   => array('name' => 'Ubuntu 11.10','os_dist' => 'ubuntu', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '125'   => array('name' => 'Ubuntu 12.04','os_dist' => 'ubuntu', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '114'   => array('name' => 'CentOS 5.6',  'os_dist' => 'centos', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '110'   => array('name' => 'RHEL 5.5',    'os_dist' => 'rhel',   'location' => 'rs-ORD1', 'architecture' => 'x86_64')
                              );

[ -f $CURRENT/etc/config.ini ] && mv $CURRENT/etc/config.ini $CURRENT/etc/config.ini-old
cat > $CURRENT/etc/config.ini <<EOF
[db]
driver=mysqli
host = "localhost"
name = "scalr"
user = "scalr"
pass = "$PASSWORD"
EOF

cat <<EOF> /etc/apache2/sites-available/scalr
<VirtualHost *:80>
      ServerAdmin ad...@example.org
      ServerName scalr.example.org
      DocumentRoot /usr/local/scalr/current/www
      ErrorLog \${APACHE_LOG_DIR}/scalr-error.log
      CustomLog \${APACHE_LOG_DIR}/scalr-access.log combined
      <Directory /usr/local/scalr/current/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
      </Directory>
  Alias /graphics "/usr/local/scalr/scalr-home/graphics"
      <Directory /usr/local/scalr/current/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
      </Directory>
</VirtualHost>
EOF
a2ensite scalr
pecl install rrd
echo 'extension=rrd.so' >  /etc/php5/apache2/conf.d/rrd.ini
printf '\n\n\n\n' | pecl install pecl_http
echo 'extension=http.so' >  /etc/php5/apache2/conf.d/http.ini
a2enmod rewrite
service apache2 restart

cat <<EOF> /etc/cron.d/scalr
* * * * *  scalr /usr/bin/php  /usr/local/scalr/current/cron/cron.php --Scheduler2 >> /usr/local/scalr/scalr-home/log/scheduler.log 2>&1
* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --DNSManagerPoll >> /usr/local/scalr/scalr-home/log/dnsmanagerpoll.log 2>&1
* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --DBQueueEvent >> /usr/local/scalr/scalr-home/log/dbqueueevent.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --SzrMessaging >> /usr/local/scalr/scalr-home/log/szrmessaging.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --BundleTasksManager >> /usr/local/scalr/scalr-home/log/bundletasksmanager.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --UsageStatsPoller >> /usr/local/scalr/scalr-home/log/usagestatspoller.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --EBSManager >> /usr/local/scalr/scalr-home/log/ebsmanager.log 2>&1
*/4 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --RDSMaintenance >> /usr/local/scalr/scalr-home/log/rdsmaintenance.log 2>&1
*/10 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php  --MySQLMaintenance >> /usr/local/scalr/scalr-home/log/mysqlmaintenance.log 2>&1
*/20 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --RolesQueue >> /usr/local/scalr/scalr-home/log/rolesqueue.log 2>&1
17 5 * * * scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --RotateLogs >> /usr/local/scalr/scalr-home/log/rotatelogs.log 2>&1

* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --ScalarizrMessaging >> /usr/local/scalr/scalr-home/log/scalarizrmessaging.log 2>&1
* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --MessagingQueue >> /usr/local/scalr/scalr-home/log/messagingqueue.log 2>&1
* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --SNMPStatsPoller >> /usr/local/scalr/scalr-home/log/snmpstatspoller.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --DeployManager >> /usr/local/scalr/scalr-home/log/deploymanager.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --Poller >> /usr/local/scalr/scalr-home/log/poller.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --Scaling >> /usr/local/scalr/scalr-home/log/scaling.log 2>&1
*/5 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --DbMsrMaintenance >> /usr/local/scalr/scalr-home/log/dbmsrmaintenance.log 2>&1
EOF
chmod g-w /etc/cron.d/scalr

Configure bind, the DNS server (name daemon)

chmod g+w /etc/bind/named.conf
echo 'include "'$SCALR_HOME'/namedb/zones.include";' >> /etc/bind/named.conf
mkdir -p $SCALR_HOME/namedb
echo '# Zones include file for scalr' > $SCALR_HOME/namedb/zones.include
chown -R scalr.bind $SCALR_HOME/namedb
chmod -R 775 $SCALR_HOME/namedb
chmod g+s $SCALR_HOME/namedb

perl -i -pe 's|client_zones/{name}.db|'$SCALR_HOME'/namedb/{name}.db|g' $CURRENT/src/Scalr/Net/Dns/Zone.php
perl -i -pe 's|/var/named/etc/namedb/client_zones|'$SCALR_HOME'/namedb|g' $CURRENT/cron/class.DNSManagerPollProcess.php
aa-complain /usr/sbin/named  
service bind9 restart

Sebastian Stadil

unread,
Aug 26, 2012, 11:10:48 AM8/26/12
to scalr-...@googlegroups.com
Thanks for sharing, Arya. Would you care to add this to the Scalr wiki? Might make it easier for others to suggest improvements.



--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/T2RDRp5LGiQJ.
To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.



--


Follow us: Twitter - Facebook - Blog

Arya A.

unread,
Aug 26, 2012, 11:20:21 AM8/26/12
to scalr-...@googlegroups.com
Sebastian, I'd be happy to, but as far as I can tell, the wiki hasn't been configured to allow public signups.

Sebastian Stadil

unread,
Aug 26, 2012, 11:21:35 AM8/26/12
to scalr-...@googlegroups.com
Really? That's a mistake. Let me change that.


On Monday, August 27, 2012, Arya A. wrote:
Sebastian, I'd be happy to, but as far as I can tell, the wiki hasn't been configured to allow public signups.

On Monday, August 27, 2012 1:10:48 AM UTC+10, Sebastian Stadil wrote:
Thanks for sharing, Arya. Would you care to add this to the Scalr wiki? Might make it easier for others to suggest improvements.

On Mon, Aug 27, 2012 at 12:05 AM, Arya A. <ar...@abdian.id.au> wrote:

I'm fairly certain this is a work in progress (ie, nowhere near complete and definitely not polished), but it may help someone else out there.


Install prerequisites

apt-get -y install apache2-mpm-prefork php5 php5-mysql php5-curl php5-mcrypt php5-snmp
apt-get -y install libssh2-php apparmor-utils mailutils bind9 phpmyadmin
apt-get -y install php-pear rrdtool librrd-dev libcurl4-openssl-dev mysql-server snmp
# refer http://wiki.scalr.net/pages/viewpage.action?pageId=327743

echo '$cfg["AllowArbitraryServer"] = TRUE;' >> /etc/phpmyadmin/config.inc.php

Install SCALR

export SCALR_BASE=/usr/local/scalr
export SCALR_HOME=$SCALR_BASE/scalr-home
export SCALR_FILES=$SCALR_BASE/scalr-files
export CURRENT=$SCALR_BASE/current
export PASSWORD=yourpassword

useradd -d $SCALR_BASE -m -r -G www-data,bind scalr
usermod -G scalr www-data
mkdir -p $SCALR_HOME
mkdir -p $SCALR_FILES
      ServerAdmin ad...@example.org
      ServerName scalr.example.org
      DocumentRoot /usr/local/scalr/current/www
      ErrorLog \${APACHE_LOG_DIR}/scalr-error.log
      CustomLog \${APACHE_LOG_DIR}/scalr-access.log combined
      <Directory /usr/local/scalr/current/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
      </Directory>
  Alias /graphics "/usr/local/scalr/scalr-home/graphics"
      <Directory /usr/local/scalr/current/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
      </Directory>
</VirtualHost>
EOF
a2ensite scalr
pecl install rrd
echo 'extension=rrd.so' >  /etc/php5/apache2/conf.d/rrd.ini
printf '\n\n\n\n' | pecl install pecl_http
echo 'extension=http.so' >  /etc/php5/apache2/conf.d/http.ini

--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/T2RDRp5LGiQJ.
To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.



--


Follow us: Twitter - Facebook - Blog

--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scalr-discuss/-/87qdYRZ652sJ.

To post to this group, send email to scalr-...@googlegroups.com.
To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scalr-discuss?hl=en.

Arya A.

unread,
Aug 26, 2012, 4:00:21 PM8/26/12
to scalr-discuss
Up to you. Btw, I'm 100% for a community fork. The steps to get a
partially working scalr instance...you weren't kidding when you said
it's hard.

On Aug 27, 1:21 am, Sebastian Stadil <sebast...@scalr.com> wrote:
> Really? That's a mistake. Let me change that.
>
>
>
>
>
>
>
>
>
> On Monday, August 27, 2012, Arya A. wrote:
> > Sebastian, I'd be happy to, but as far as I can tell, the wiki hasn't been
> > configured to allow public signups.
>
> > On Monday, August 27, 2012 1:10:48 AM UTC+10, Sebastian Stadil wrote:
>
> >> Thanks for sharing, Arya. Would you care to add this to the Scalr wiki?
> >> Might make it easier for others to suggest improvements.
>
> >> On Mon, Aug 27, 2012 at 12:05 AM, Arya A. <ar...@abdian.id.au> wrote:
>
> >>> I'm fairly certain this is a work in progress (ie, nowhere near complete
> >>> and definitely not polished), but it may help someone else out there.
>
> >>> Install *prerequisites *
> >>> apt-get -y install apache2-mpm-prefork php5 php5-mysql php5-curl
> >>> php5-mcrypt php5-snmp
> >>> apt-get -y install libssh2-php apparmor-utils mailutils bind9 phpmyadmin
> >>> apt-get -y install php-pear rrdtool librrd-dev libcurl4-openssl-dev
> >>> mysql-server snmp
> >>> # referhttp://wiki.scalr.net/pages/**viewpage.action?pageId=327743<http://wiki.scalr.net/pages/viewpage.action?pageId=327743>
>
> >>> echo '$cfg["AllowArbitraryServer"] = TRUE;' >>
> >>> /etc/phpmyadmin/config.inc.php
>
> >>> Install SCALRexport SCALR_BASE=/usr/local/scalr
> >>> export SCALR_HOME=$SCALR_BASE/scalr-**home
> >>> export SCALR_FILES=$SCALR_BASE/scalr-**files
> >>> export CURRENT=$SCALR_BASE/current
> >>> export PASSWORD=yourpassword
>
> >>> useradd -d $SCALR_BASE -m -r -G www-data,bind scalr
> >>> usermod -G scalr www-data
> >>> mkdir -p $SCALR_HOME
> >>> mkdir -p $SCALR_FILES
> >>>        ServerAdmin ad...@example.org
> >>>        ServerName scalr.example.org
> >>>        DocumentRoot /usr/local/scalr/current/www
> >>>        ErrorLog \${APACHE_LOG_DIR}/scalr-**error.log
> >>>        CustomLog \${APACHE_LOG_DIR}/scalr-**access.log combined
> >>>        <Directory /usr/local/scalr/current/www>
> >>>                Options Indexes FollowSymLinks MultiViews
> >>>                AllowOverride All
> >>>        </Directory>
> >>>    Alias /graphics "/usr/local/scalr/scalr-home/**graphics"
> >>>        <Directory /usr/local/scalr/current/www>
> >>>                Options Indexes FollowSymLinks MultiViews
> >>>                AllowOverride All
> >>>        </Directory>
> >>> </VirtualHost>
> >>> EOF
> >>> a2ensite scalr
> >>> pecl install rrd
> >>> echo 'extension=rrd.so' >  /etc/php5/apache2/conf.d/rrd.**ini
> >>> printf '\n\n\n\n' | pecl install pecl_http
> >>> echo 'extension=http.so' >  /etc/php5/apache2/conf.d/**http.ini
>
> >>>  --
> >>> You received this message because you are subscribed to the Google
> >>> Groups "scalr-discuss" group.
> >>> To view this discussion on the web visithttps://groups.google.com/d/**
> >>> msg/scalr-discuss/-/**T2RDRp5LGiQJ<https://groups.google.com/d/msg/scalr-discuss/-/T2RDRp5LGiQJ>
> >>> .
> >>> To post to this group, send email to scalr-...@googlegroups.com**.
> >>> To unsubscribe from this group, send email to scalr-discus...@**
> >>> googlegroups.com.
> >>> For more options, visit this group athttp://groups.google.com/**
> >>> group/scalr-discuss?hl=en<http://groups.google.com/group/scalr-discuss?hl=en>
> >>> .
>
> >> --
>
> >> Follow us: Twitter <https://twitter.com/#%21/scalr> - Facebook<https://www.facebook.com/Scalr>
> >>  - Blog <http://blog.scalr.net/>
>
> >>  --
> > You received this message because you are subscribed to the Google Groups
> > "scalr-discuss" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/scalr-discuss/-/87qdYRZ652sJ.
> > To post to this group, send email to scalr-...@googlegroups.com<javascript:_e({}, 'cvml', 'scalr-...@googlegroups.com');>
> > .
> > To unsubscribe from this group, send email to
> > scalr-discus...@googlegroups.com <javascript:_e({}, 'cvml',
> > 'scalr-discuss%2Bunsu...@googlegroups.com');>.
> > For more options, visit this group at
> >http://groups.google.com/group/scalr-discuss?hl=en.
>
> --
>
> Follow us: Twitter <https://twitter.com/#!/scalr> -
> Facebook<https://www.facebook.com/Scalr>
>  - Blog <http://blog.scalr.net/>

Kevin Baker

unread,
Aug 26, 2012, 5:26:04 PM8/26/12
to scalr-...@googlegroups.com
I'm very interested in a chef recipe to get Scalr up and running. I
won't really have time to contribute on that until next month though.
> To post to this group, send email to scalr-...@googlegroups.com.
> To unsubscribe from this group, send email to scalr-discus...@googlegroups.com.

francesco cislaghi

unread,
Aug 27, 2012, 3:20:35 AM8/27/12
to scalr-...@googlegroups.com
Hi Arya,
about the community fork, a while ago i made a git repo and got an open source license from atlassian, but i didn't have time to go trough it lately. If you are interested you can contact me so we can discuss it. 
Cheers

Paul Rysevets

unread,
Aug 27, 2012, 4:47:03 AM8/27/12
to scalr-...@googlegroups.com
I'm really FOR the community fork,..
I, even, saw it but.. that thing didn't even had php_rrd patch in it :(

and there is something wrong with my GitHub commits(to my fork from the original master). i'd like to share my configurable-bind-path.patch (although it's relatively simple)

Paul Rysevets

unread,
Aug 27, 2012, 4:54:52 AM8/27/12
to scalr-...@googlegroups.com
aand here they are
for BIND
added-CNFIG-variables-for-BIND.patch (11K) 
added-admin-editing-for-bind-paths.patch (1K)

for Empty zones.include file
Fixed-bug-with-Empty-zonesinclude-file.patch (2K)

sorry for that big thingie,.. i've CodeFormatted sources :(
added-CNFIG-variables-for-BIND.patch
added-admin-editing-for-bind-paths.patch
Fixed-bug-with-Empty-zonesinclude-file.patch

francesco cislaghi

unread,
Aug 27, 2012, 5:14:16 AM8/27/12
to scalr-...@googlegroups.com
Can you push them to the repo?

Sebastian Stadil

unread,
Dec 31, 2012, 10:11:22 PM12/31/12
to scalr-...@googlegroups.com
We released 4.0 recently, you might want to try that since we don't want to backport.


On Sun, Dec 30, 2012 at 6:26 AM, Fabiano Breves <fabiano...@gmail.com> wrote:
Hi guys,

I realize that this is an old topic but I followed the steps in this thread to install scalr on an Amazon EC2 (within a VPC). I can sign in as admin, create a new user and have this new user setup with Amazon credentials. I also tested the TESTENVIRONMENT.PHP and it passed. My problem is that I can't find a way to change the admin's password. There is no Profile menu option showing at the right upper corner, when you click on the admin icon, there is only the logout option in that menu. But for my regular user id I have a the Profile option and can reset its password whenever I want. Is this a bug or a misconfiguration anywhere ?

anyone has any clues ?

I also tried to change the password directly to the account_user table but it did not work, still have the default password working.

by the way the the version is listed as 3.6.0.

If this is not the right place to ask this I apologize.

Regards,
Fabiano Breves
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:...
Show original

--
 
 

Srinivasan Subramanian

unread,
Dec 31, 2012, 10:42:05 PM12/31/12
to scalr-...@googlegroups.com
i am running the earlier version of Scalr.  After login as admin, if i click on the admin icon i get a profile option.  This could be a bug.

Srini

On 30-Dec-2012, at 7:56 PM, Fabiano Breves <fabiano...@gmail.com> wrote:

Hi guys,

I realize that this is an old topic but I followed the steps in this thread to install scalr on an Amazon EC2 (within a VPC). I can sign in as admin, create a new user and have this new user setup with Amazon credentials. I also tested the TESTENVIRONMENT.PHP and it passed. My problem is that I can't find a way to change the admin's password. There is no Profile menu option showing at the right upper corner, when you click on the admin icon, there is only the logout option in that menu. But for my regular user id I have a the Profile option and can reset its password whenever I want. Is this a bug or a misconfiguration anywhere ?

anyone has any clues ?

I also tried to change the password directly to the account_user table but it did not work, still have the default password working.

by the way the the version is listed as 3.6.0.

If this is not the right place to ask this I apologize.

Regards,
Fabiano Breves

On Sunday, August 26, 2012 12:05:00 PM UTC-3, Arya A. wrote:
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:...
Show original

--
 
 

Srinivasan Subramanian

unread,
Dec 31, 2012, 10:44:08 PM12/31/12
to scalr-...@googlegroups.com
Wishing the entire team at Scalr and the Scalr community a very happy and prosperous new year ahead.

Cheers
Srini

Sebastian Stadil

unread,
Dec 31, 2012, 10:50:12 PM12/31/12
to scalr-...@googlegroups.com
Thank you so much! We have a great many surprises in store for everyone and can't wait to share.

Happy new year to you too, Srini.

Cheers,
Sebastian



--


Sebastian Stadil

unread,
Jan 1, 2013, 5:44:39 PM1/1/13
to scalr-...@googlegroups.com
4.0 is on github: https://github.com/Scalr/scalr

Importing servers into Scalr is possible regardless of deployment method (enterprise, open source, hosted). So you should be fine.

To your second point, Scalr <-> Scalarizr communication is required for Scalr to manage your infrastructure; if the communication is impeded, you'll get Alerts in the Scalr interface.


On Tue, Jan 1, 2013 at 11:28 AM, Fabiano Breves <fabiano...@gmail.com> wrote:
Thanks Srini,

I just went back to 3.5 and the admin password issue is gone.

I am really new to Scalr. I have a few EC2 instances (actually Images - but you get the point) on Amazon that I'd like to get them organized under a Scalr Farm. They are windows and linux servers. I am trying to use Scalarizr and am failing miserably.

First question I have about Scalarizr is that if it is supposed to work with a scalr "standalone" installation ?? I mean, importing servers to roles are only possible if one pays for scalr.net services ?

Sencond is, what type of message I should see in the logs that would confirm conectvity between Scalr and Scalarizr. I have ports 8010 and 8013 opened both ways on both servers. Also have the 8014/UDP opened. I can't really see anything wrong in Scalarizr logs. The operation hangs and never finishes.

From scalr dashboard it only shows the attemptive of conection, it never connects.


Happy new year guys.


Can you direct me to the link of 4.0 ?
<span style="font-size: 12px; font-family: 'Courier New'; background-color: transparent; font-weight: normal; font-style: normal; font-variant: normal; text-decoration: no...
Show original

--
 
 

Fabiano Breves

unread,
Jan 1, 2013, 9:45:36 PM1/1/13
to scalr-...@googlegroups.com
Thanks for the info Sebastian.

Is there anyway to setup the logs for more details ? Or setup other logs usefull to debug the problem ??

In Scalr interface it keeps saying that is attempting to connect to the server, but never does. How long should I wait till it says Connected or gives out an error ?

In the linux box I see the status of importing from the standard output but hours later and nothing changes, In the windows box it doesn't go that far.

I will be checking the version 4.0...

Really appreciate the help. Thanks again.
<span style="font-size:12px;font-family:'Courier New';background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertic...
Show original

Srinivasan S

unread,
Jan 1, 2013, 9:47:24 PM1/1/13
to scalr-...@googlegroups.com
Have you set the Scalr URL in the admin settings? You can also try to telnet to the diff ports to make sure they are open.

Srini
Sent on my BlackBerry® from Vodafone

From: Fabiano Breves <fabiano...@gmail.com>
Date: Tue, 1 Jan 2013 18:45:36 -0800 (PST)
Subject: Re: SCALR 3.5 Open Source on Ubuntu 12.04 - INSTALL GUIDE
--
 
 

Fabiano Breves

unread,
Jan 1, 2013, 10:01:55 PM1/1/13
to scalr-...@googlegroups.com, srinivasan....@gmail.com
Hi Srini,

Yes, I have the Scalr URL setup and also already tried the telnet and everything seems allright. That is why am asking about logs, 

Thank you...

cp -p $CURRENT/src/Scalr/Net/Dns/Bind/Trans...
Show original

Srinivasan S

unread,
Jan 1, 2013, 10:05:35 PM1/1/13
to Fabiano Breves, scalr-...@googlegroups.com
To check if your setup is fine you can create a dummy farm and run an application role with a micro instance. If it connects and all is well then you can move to your custom role. Easier to troubleshoot a standard role.

If I remember well logs are by default verbose unless you changed them in scalr. Look for php file with log config.

Srini
Sent on my BlackBerry® from Vodafone

From: Fabiano Breves <fabiano...@gmail.com>
Date: Tue, 1 Jan 2013 19:01:55 -0800 (PST)

Fabiano Breves

unread,
Jan 4, 2013, 10:52:24 AM1/4/13
to srinivasan....@gmail.com, scalr-...@googlegroups.com
Hi Srini,

I can create the farm but when lauching it keeps on pending-launch status and on AWS nothing happens. 

What should I check in cases like this ?

Thanks,
Fabiano Breves
--
Fabiano de Carvalho Breves
fabiano...@gmail.com

Srinivasan S

unread,
Jan 4, 2013, 11:01:42 AM1/4/13
to Fabiano Breves, scalr-...@googlegroups.com
Have your cron jobs been setup?
Sent on my BlackBerry® from Vodafone

From: Fabiano Breves <fabiano...@gmail.com>
Date: Fri, 4 Jan 2013 13:52:24 -0200

Fabiano Breves

unread,
Jan 4, 2013, 11:02:54 AM1/4/13
to srinivasan.subramanian, scalr-discuss
Yes, they are setup, under user ID scalr.

Srinivasan S

unread,
Jan 4, 2013, 11:04:59 AM1/4/13
to Fabiano Breves, scalr-discuss
If nothing is happening on AWS my guess is that the cron jobs are not running. Do a top and check if you see a number of php processes starting up. That is an easier way of checking cron than logging.

You can also login as admin and view the syslog. That has all the messages.
Sent on my BlackBerry® from Vodafone

From: Fabiano Breves <fabiano...@gmail.com>
Date: Fri, 4 Jan 2013 14:02:54 -0200
To: srinivasan.subramanian<srinivasan....@gmail.com>
Cc: scalr-discuss<scalr-...@googlegroups.com>

Fabiano Breves

unread,
Jan 4, 2013, 11:33:51 AM1/4/13
to srinivasan....@gmail.com, scalr-discuss
Yes, I can see a bunch of php processes running from time to time. On syslog I see a problem with user scalr accessing the postfix config file:

Jan  4 07:26:01 scalr CRON[8152]: (scalr) CMD (/usr/bin/php -q /var/www/cron/cron.php --DNSManagerPoll)
Jan  4 07:26:01 scalr CRON[8153]: (scalr) CMD (/usr/bin/php -q /var/www/cron/cron.php --SzrMessaging)
Jan  4 07:26:01 scalr CRON[8154]: (scalr) CMD (/usr/bin/php -q /var/www/cron-ng/cron.php --Scaling)
Jan  4 07:26:01 scalr CRON[8155]: (scalr) CMD (/usr/bin/php -q /var/www/cron-ng/cron.php --ScalarizrMessaging)
Jan  4 07:26:01 scalr CRON[8156]: (scalr) CMD (/usr/bin/php -q /var/www/cron/cron.php --Scheduler2)
Jan  4 07:26:01 scalr CRON[8157]: (scalr) CMD (/usr/bin/php -q /var/www/cron-ng/cron.php --DeployManager)
Jan  4 07:26:01 scalr CRON[8161]: (scalr) CMD (/usr/bin/php -q /var/www/cron/cron.php --UsageStatsPoller)
Jan  4 07:26:01 scalr CRON[8158]: (scalr) CMD (/usr/bin/php -q /var/www/cron-ng/cron.php --MessagingQueue)
Jan  4 07:26:01 scalr CRON[8170]: (scalr) CMD (root /usr/bin/php -q /var/www/cron-ng/cron.php --SNMPStatsPoller)
Jan  4 07:26:01 scalr postfix/sendmail[8171]: fatal: open /etc/postfix/main.cf: No such file or directory
Jan  4 07:26:01 scalr CRON[8138]: (scalr) MAIL (mailed 1 byte of output; but got status 0x004b, #012)

Could this be an issue ?


Srinivasan S

unread,
Jan 4, 2013, 11:38:59 AM1/4/13
to Fabiano Breves, scalr-discuss
Shouldn't be. Can you login to scalr as admin and check the system log?
Sent on my BlackBerry® from Vodafone

From: Fabiano Breves <fabiano...@gmail.com>
Date: Fri, 4 Jan 2013 14:33:51 -0200

Fabiano Breves

unread,
Jan 4, 2013, 12:26:32 PM1/4/13
to Srinivasan Subramanian, scalr-discuss
This is what I can see there:

697730
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: SSHWorker
697731
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: DBEventObserver
697732
INFO
Scalr_Scaling_Manager
2013-01-04 15:22:20
Increasing number of running instances to fit min instances setting
697733
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: DNSEventObserver
697734
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: Modules_Platforms_Ec2_Observers_Ebs
697735
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: Modules_Platforms_Cloudstack_Observers_Cloudstack
697736
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: MessagingEventObserver
697737
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: ScalarizrEventObserver
697738
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: BehaviorEventObserver
697739
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: Modules_Platforms_Ec2_Observers_Ec2
697740
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: Modules_Platforms_Ec2_Observers_Eip
697741
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: Modules_Platforms_Ec2_Observers_Elb
697742
INFO
Scalr
2013-01-04 15:22:20
Event OnFarmLaunched. Observer: Modules_Platforms_Rds_Observers_Rds

Srinivasan S

unread,
Jan 4, 2013, 12:29:14 PM1/4/13
to Fabiano Breves, scalr-discuss
I assume you have setup the environment correctly? Strange. I have not seen this before. Maybe someone else has some ideas?
Sent on my BlackBerry® from Vodafone

From: Fabiano Breves <fabiano...@gmail.com>
Date: Fri, 4 Jan 2013 15:26:32 -0200
To: Srinivasan Subramanian<srinivasan....@gmail.com>

Fabiano Breves

unread,
Jan 4, 2013, 1:37:22 PM1/4/13
to Srinivasan Subramanian, scalr-discuss
Hi Srini,

I assume I have installed it correctly but being a first timer, I find it hard to believe that I got it up and running flawless. :-)

Is there anything that we can check to see if I got things right ?

Srinivasan S

unread,
Jan 5, 2013, 12:27:15 AM1/5/13
to Fabiano Breves, scalr-discuss
What I meant to ask was is your ec2 credentials etc setup correctly? Can you browse to you aws a/c from scalr web site. For eg s3 browser.

Its hard to understand why nothing happens on AWS if all is configured correctly :)
Sent on my BlackBerry® from Vodafone

From: Fabiano Breves <fabiano...@gmail.com>
Date: Fri, 4 Jan 2013 16:37:22 -0200

Fabiano Breves

unread,
Jan 5, 2013, 1:22:53 AM1/5/13
to Srinivasan Subramanian, scalr-discuss
I understand. thanks for helping.

I gave up. Terminated the EC2 I was setting up scalr into. Launched another ubuntu 12.04 instance and restarted the install process.

I will let you know the outcome.

thanks,
Fabiano Breves

Sebastian Stadil

unread,
Jan 14, 2013, 7:12:53 AM1/14/13
to scalr-...@googlegroups.com
That's normal behavior. Simply terminate this server and create a farm with its role in it and you'll be fine.

On Monday, January 14, 2013, Jamba wrote:
Installed Scalr 4.0 on Ubuntu 12.04 on EC2 - instructions worked like a charm.

However, when importing the EC2 server, it stays stuck on "Importing".  It finishes the snapshot and the role also shows up but the server state does not change to "Runnning".

Any ideas?

On Sunday, August 26, 2012 10:05:00 AM UTC-5, Arya A. wrote:

I'm fairly certain this is a work in progress (ie, nowhere near complete and definitely not polished), but it may help someone else out there.


Install prerequisites

apt-get -y install apache2-mpm-prefork php5 php5-mysql php5-curl php5-mcrypt php5-snmp
apt-get -y install libssh2-php apparmor-utils mailutils bind9 phpmyadmin
apt-get -y install php-pear rrdtool librrd-dev libcurl4-openssl-dev mysql-server snmp
# refer http://wiki.scalr.net/pages/viewpage.action?pageId=327743

echo '$cfg["AllowArbitraryServer"] = TRUE;' >> /etc/phpmyadmin/config.inc.php

Install SCALR

export SCALR_BASE=/usr/local/scalr
export SCALR_HOME=$SCALR_BASE/scalr-home
export SCALR_FILES=$SCALR_BASE/scalr-files
export CURRENT=$SCALR_BASE/current
export PASSWORD=yourpassword

useradd -d $SCALR_BASE -m -r -G www-data,bind scalr
usermod -G scalr www-data
mkdir -p $SCALR_HOME
mkdir -p $SCALR_FILES
      ServerAdmin ad...@example.org
      ServerName scalr.example.org
      DocumentRoot /usr/local/scalr/current/www
      ErrorLog \${APACHE_LOG_DIR}/scalr-error.log
      CustomLog \${APACHE_LOG_DIR}/scalr-access.log combined

      <Directory /usr/local/scalr/current/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
      </Directory>
  Alias /graphics "/usr/local/scalr/scalr-home/graphics"

      <Directory /usr/local/scalr/current/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
      </Directory>
</VirtualHost>
EOF
a2ensite scalr
pecl install rrd
echo 'extension=rrd.so' >  /etc/php5/apache2/conf.d/rrd.ini

printf '\n\n\n\n' | pecl install pecl_http
echo 'extension=http.so' >  /etc/php5/apache2/conf.d/http.ini

--
 
 

Nick Toursky

unread,
Jan 17, 2013, 9:58:22 AM1/17/13
to scalr-...@googlegroups.com
Hi Raghu,


Regards,
Nick

On Thu, Jan 17, 2013 at 4:56 PM, Raghu <raghur...@gmail.com> wrote:
Hi,

I have installed Scalr using the above steps I am using Cloudstack 3.0.2 to import role but I am getting a issue "Cannot send rebundle message to server. Please check event log for more details."

and my scalarizr stops at

2013-01-17 20:11:30,368 - DEBUG - scalarizr.messaging.p2p.security - Encrypting message
2013-01-17 20:11:30,470 - DEBUG - scalarizr.messaging.p2p.producer - Message 'Hello' delivered (message_id: c90100b5-2968-401a-980f-0a64c5c2771b)
2013-01-17 20:11:30,477 - DEBUG - scalarizr.util.log - Handled on_out_message_send message: Hello
2013-01-17 20:11:30,477 - DEBUG - scalarizr.util.log - Enabling log messaging
2013-01-17 20:11:30,478 - DEBUG - scalarizr.handlers.hooks - Hook on 'hello'() {}
2013-01-17 20:11:30,478 - DEBUG - scalarizr.handlers.hooks - Hook on 'start'() {}
2013-01-17 20:11:30,479 - DEBUG - scalarizr.config - Reading file /etc/scalr/private.d/.state
2013-01-17 20:12:00,643 - DEBUG - scalarizr.messaging.p2p.producer - Sending message 'Log' into queue 'log'
2013-01-17 20:12:00,662 - DEBUG - scalarizr.messaging.p2p.security - Encrypting message

I am able to telnet 8013, 8010, 8008 ports of scalarizr from scalr
Kindly let me know what to do further.

Regrads
Raghuraman B


On Sunday, August 26, 2012 8:35:00 PM UTC+5:30, Arya A. wrote:

I'm fairly certain this is a work in progress (ie, nowhere near complete and definitely not polished), but it may help someone else out there.


Install prerequisites

apt-get -y install apache2-mpm-prefork php5 php5-mysql php5-curl php5-mcrypt php5-snmp
apt-get -y install libssh2-php apparmor-utils mailutils bind9 phpmyadmin
apt-get -y install php-pear rrdtool librrd-dev libcurl4-openssl-dev mysql-server snmp
# refer http://wiki.scalr.net/pages/viewpage.action?pageId=327743

echo '$cfg["AllowArbitraryServer"] = TRUE;' >> /etc/phpmyadmin/config.inc.php

Install SCALR

export SCALR_BASE=/usr/local/scalr
export SCALR_HOME=$SCALR_BASE/scalr-home
export SCALR_FILES=$SCALR_BASE/scalr-files
export CURRENT=$SCALR_BASE/current
export PASSWORD=yourpassword

useradd -d $SCALR_BASE -m -r -G www-data,bind scalr
usermod -G scalr www-data
mkdir -p $SCALR_HOME
mkdir -p $SCALR_FILES
cp -p $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php-dist
perl -i -pe 's/\(!\$retval\)/(\$retval === false)/g' $CURRENT/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php

cp -p $CURRENT/src/structs/struct.CONFIG.php $CURRENT/src/structs/struct.CONFIG.php-dist
ip=$(ifconfig eth0 | grep inet | head -1 | awk ' { print $2 } ' | cut -f2 -d:)
perl -i -pe "s/^(.*PMA_INSTANCE_IP_ADDRESS = ).*/\$1 '$ip';/g" $CURRENT/src/structs/struct.CONFIG.php

for i in CPU LA MEM NET; do
mv $CURRENT/cron/watchers/class.${i}SNMPWatcher.php $CURRENT/cron/watchers/class.${i}SNMPWatcher.php-dist
curl https://raw.github.com/ssrini/scalr/master/cron/watchers/class.${i}SNMPWatcher.php > $CURRENT/cron/watchers/class.${i}SNMPWatcher.php
chown scalr:scalr $CURRENT/cron/watchers/class.${i}SNMPWatcher.php
done

for i in RRD RRDGraph; do
mv $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php-dist
curl https://raw.github.com/ssrini/scalr/master/src/LibWebta/library/Data/RRD/class.${i}.php > $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php
chown scalr:scalr $CURRENT/src/LibWebta/library/Data/RRD/class.${i}.php
done

# Add Ubuntu 12.04 to the list of operating systems for Rackspace

cp -p $CURRENT/src/Modules/Platforms/Rackspace/Rackspace.php $CURRENT/src/Modules/Platforms/Rackspace/Rackspace.php-dist

vim $CURRENT/src/Modules/Platforms/Rackspace/Rackspace.php

# around line 48, add this line:

if (!$isManagedOrd1) {
                              $images['rs-ORD1'] = array(
                                      '112'   => array('name' => 'Ubuntu 10.04','os_dist' => 'ubuntu', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '115'   => array('name' => 'Ubuntu 11.04','os_dist' => 'ubuntu', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '119'   => array('name' => 'Ubuntu 11.10','os_dist' => 'ubuntu', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '125'   => array('name' => 'Ubuntu 12.04','os_dist' => 'ubuntu', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '114'   => array('name' => 'CentOS 5.6',  'os_dist' => 'centos', 'location' => 'rs-ORD1', 'architecture' => 'x86_64'),
                                      '110'   => array('name' => 'RHEL 5.5',    'os_dist' => 'rhel',   'location' => 'rs-ORD1', 'architecture' => 'x86_64')
                              );

[ -f $CURRENT/etc/config.ini ] && mv $CURRENT/etc/config.ini $CURRENT/etc/config.ini-old
cat > $CURRENT/etc/config.ini <<EOF
[db]
driver=mysqli
host = "localhost"
name = "scalr"
user = "scalr"
pass = "$PASSWORD"
EOF

cat <<EOF> /etc/apache2/sites-available/scalr
<VirtualHost *:80>
      ServerAdmin ad...@example.org

      ServerName scalr.example.org
      DocumentRoot /usr/local/scalr/current/www
      ErrorLog \${APACHE_LOG_DIR}/scalr-error.log
      CustomLog \${APACHE_LOG_DIR}/scalr-access.log combined
      <Directory /usr/local/scalr/current/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
      </Directory>
  Alias /graphics "/usr/local/scalr/scalr-home/graphics"
      <Directory /usr/local/scalr/current/www>
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
      </Directory>
</VirtualHost>
EOF
a2ensite scalr
pecl install rrd
echo 'extension=rrd.so' >  /etc/php5/apache2/conf.d/rrd.ini
printf '\n\n\n\n' | pecl install pecl_http
echo 'extension=http.so' >  /etc/php5/apache2/conf.d/http.ini
a2enmod rewrite
service apache2 restart

cat <<EOF> /etc/cron.d/scalr
* * * * *  scalr /usr/bin/php  /usr/local/scalr/current/cron/cron.php --Scheduler2 >> /usr/local/scalr/scalr-home/log/scheduler.log 2>&1
* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --DNSManagerPoll >> /usr/local/scalr/scalr-home/log/dnsmanagerpoll.log 2>&1
* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --DBQueueEvent >> /usr/local/scalr/scalr-home/log/dbqueueevent.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --SzrMessaging >> /usr/local/scalr/scalr-home/log/szrmessaging.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --BundleTasksManager >> /usr/local/scalr/scalr-home/log/bundletasksmanager.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --UsageStatsPoller >> /usr/local/scalr/scalr-home/log/usagestatspoller.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --EBSManager >> /usr/local/scalr/scalr-home/log/ebsmanager.log 2>&1
*/4 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --RDSMaintenance >> /usr/local/scalr/scalr-home/log/rdsmaintenance.log 2>&1
*/10 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php  --MySQLMaintenance >> /usr/local/scalr/scalr-home/log/mysqlmaintenance.log 2>&1
*/20 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --RolesQueue >> /usr/local/scalr/scalr-home/log/rolesqueue.log 2>&1
17 5 * * * scalr /usr/bin/php   /usr/local/scalr/current/cron/cron.php --RotateLogs >> /usr/local/scalr/scalr-home/log/rotatelogs.log 2>&1

* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --ScalarizrMessaging >> /usr/local/scalr/scalr-home/log/scalarizrmessaging.log 2>&1
* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --MessagingQueue >> /usr/local/scalr/scalr-home/log/messagingqueue.log 2>&1
* * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --SNMPStatsPoller >> /usr/local/scalr/scalr-home/log/snmpstatspoller.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --DeployManager >> /usr/local/scalr/scalr-home/log/deploymanager.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --Poller >> /usr/local/scalr/scalr-home/log/poller.log 2>&1
*/2 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --Scaling >> /usr/local/scalr/scalr-home/log/scaling.log 2>&1
*/5 * * * *  scalr /usr/bin/php   /usr/local/scalr/current/cron-ng/cron.php --DbMsrMaintenance >> /usr/local/scalr/scalr-home/log/dbmsrmaintenance.log 2>&1
EOF
chmod g-w /etc/cron.d/scalr

Configure bind, the DNS server (name daemon)

chmod g+w /etc/bind/named.conf
echo 'include "'$SCALR_HOME'/namedb/zones.include";' >> /etc/bind/named.conf
mkdir -p $SCALR_HOME/namedb
echo '# Zones include file for scalr' > $SCALR_HOME/namedb/zones.include
chown -R scalr.bind $SCALR_HOME/namedb
chmod -R 775 $SCALR_HOME/namedb
chmod g+s $SCALR_HOME/namedb

perl -i -pe 's|client_zones/{name}.db|'$SCALR_HOME'/namedb/{name}.db|g' $CURRENT/src/Scalr/Net/Dns/Zone.php
perl -i -pe 's|/var/named/etc/namedb/client_zones|'$SCALR_HOME'/namedb|g' $CURRENT/cron/class.DNSManagerPollProcess.php
aa-complain /usr/sbin/named  
service bind9 restart

--
 
 

Raghu

unread,
Jan 21, 2013, 3:00:34 AM1/21/13
to scalr-...@googlegroups.com
Hi Nick,

I have tried with the same still there is no response i get "Cannot send rebundle message to server. Please check event log for more details."

FYI
[root@CentOs01 ~]# rpm -qa | grep -i scal
scalr-upd-client-0.2.r186-1.el5
scalr-release-2-1
scalarizr-cloudstack-0.11.1-1.el5
scalarizr-base-0.11.1-1.el5

Regards
Raghuraman B

Jamba

unread,
Jan 29, 2013, 7:53:48 PM1/29/13
to scalr-...@googlegroups.com
I get that but is there any way to use Scalr to manage existing AWS workloads without terminating and re-creating them using Scalr?



On Monday, January 14, 2013 6:12:53 AM UTC-6, Sebastian Stadil wrote:
That's normal behavior. Simply terminate this server and create a farm with its role in it and you'll be fine.

On Monday, January 14, 2013, Jamba wrote:
Installed Scalr 4.0 on Ubuntu 12.04 on EC2 - instructions worked like a charm.

However, when importing the EC2 server, it stays stuck on "Importing".  It finishes the snapshot and the role also shows up but the server state does not change to "Runnning".

Any ideas?

On Sunday, August 26, 2012 10:05:00 AM UTC-5, Arya A. wrote:

I'm fairly certain this is a work in progress (ie, nowhere near complete and definitely not polished), but it may help someone else out there.



 
 


Sebastian Stadil

unread,
Jan 29, 2013, 9:49:26 PM1/29/13
to scalr-...@googlegroups.com
Not currently, although we are aware this is a pain in the butt and are making it easier. 
--
You received this message because you are subscribed to the Google Groups "scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalr-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages