centos,ehcache,digital-ocean,terracotta , unable to start terracota

unable to start terracota


Tag: centos,ehcache,digital-ocean,terracotta

I'm having issue when starting terracota, I did grep on ip in whole system but couldn't find any file containing this IP, any other places to look for? Also i couldn't find tc-config.xml in terracota its actually an old system I'm just starting terracota its not installed/configured by me.

2015-03-12 13:02:09,737 [main] INFO com.terracottatech.dso - Statistics store: '/root/terracotta/server-statistics'.
2015-03-12 13:02:09,750 [main] INFO com.terracottatech.console - Available Max Runtime Memory: 490MB
2015-03-12 13:02:09,958 [main] INFO com.terracottatech.dso - Standard DSO Server created
2015-03-12 13:02:09,962 [main] INFO com.terracottatech.dso - Creating server nodeID: NodeID[]
2015-03-12 13:02:09,973 [main] ERROR com.terracottatech.console - Unable to find local network interface for
2015-03-12 13:02:09,975 [main] ERROR com.terracottatech.dso - Unable to find local network interface for
com.tc.exception.TCRuntimeException: Unable to find local network interface for
        at com.tc.objectserver.impl.DistributedObjectServer.start(DistributedObjectServer.java:502)
        at com.tc.server.TCServerImpl.startDSOServer(TCServerImpl.java:531)
        at com.tc.server.TCServerImpl.access$600(TCServerImpl.java:92)
        at com.tc.server.TCServerImpl$StartAction.execute(TCServerImpl.java:479)
        at com.tc.lang.StartupHelper.startUp(StartupHelper.java:39)
        at com.tc.server.TCServerImpl.startServer(TCServerImpl.java:510)
        at com.tc.server.TCServerImpl.start(TCServerImpl.java:271)
        at com.tc.server.TCServerMain.main(TCServerMain.java:30)


I made it work, I've created new tc-config.xml and started server with ./start-tc-server.sh -f /home/tomcat/terracotta/latest/terracotta/bin/tc-config.xml &

<?xml version="1.0" encoding="UTF-8"?>
<!-- All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved. -->
<tc:tc-config xsi:schemaLocation="http://www.terracotta.org/schema/terracotta-5.xsd" 

    <!-- Sets where the Terracotta server can be found. Replace the value of host with the server's IP address. -->
    <server host="<my-server-ip>" name="localhost">

<!-- If using more than one server, add an <ha> section. -->
  <!-- Sets where the generated client logs are saved on clients. Note that the exact location of Terracotta logs on client machines may vary based on the value of user.home and the local disk layout. -->  


Slow CURL CentOS7 with “same” link

I just installed CentOS7 (3.10.0-229.4.2.el7.x86_64) with nginx (1.8.0). Here my hosts file: [[email protected]_main1 ~]# cat /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 arm.site.com kpp.site.com w.site.com server.site.com And problem: [[email protected]_main1 ~]# time curl http://arm.site.com/test/fad/site/site?siteId=152 {"OK"} real 0m0.162s user 0m0.003s sys 0m0.003s [[email protected]_main1 ~]# time curl...

Running a Docker container that accept traffic from the host

I have the following config: Dockerfile FROM centos MAINTAINER Eduar Tua <[email protected]> RUN yum -y update && yum clean all RUN yum -y install httpd && yum clean all RUN echo "Apache works" >> /var/www/html/index.html EXPOSE 80 ADD run-apache.sh /run-apache.sh RUN chmod -v +x /run-apache.sh CMD ["/run-apache.sh"] The run-apache.sh script:...

How can I use GoogleMock in jenkins?

I installed Jenkins on a CentOS vm. Now I want to run unittests (google test) with mocks (google mock). I tried installing the frameworks like described here. (On my lubuntu machine everything runs without a problem using these steps) When I try to build: g++ -O2 -pthread -Werror -Wall -o...

What's the Command to purge/delete all contents in all “public_html” folders?

What's the Command in CentOS to purge/delete all contents in ALL "public_html" folders for all users at once? (I have my web server that I just cloned to make it into a mail server, but I don't want too keep all the public_html files)

Can't install PHP Package on CentOS

I am having trouble re-installing PHP via yum on my server hosted by digital ocean. I had PHP 5.4 installed but wanted 5.6. I added/enabled the remi repo's, ran yum -y remove php* and then tried to re-install php. When I run yum -y install php I get the following:...

How to delete files from directory using rm -rf?

I have directory exam with 2 files in it. I need to delete files but permission is denied. Even ![rm -rf][1] command can't delete these files. I logged in as a root user. # rm -rf exam_a # rm -rf exam_b ...

How to install extencion in magento on ssh

How do I install a Connect 2.0 extension to my local development box without using the /downloader UI? How can I script this in a deployment routine?

Ocamlfind command not found

I'm running into an issue installing a package that's reliant on ocamlfind but I'm getting an ocamlfind: command not found error when making. I have installed ocamlfind with the ocaml package manager and have tried reinstalling using "opam reinstall ocamlfind". I have also tried the 'eval opam config env' command...

How to add 100MB of swap space as a logical volume in CentOS?

I need to add 100MB of swap space to my machine. I was trying to use a logical volume. # lvcreate –name lv_swap2 –size 100M vg # mkswap /dev/vg/lv_swap2 # swapon /dev/vg/lv_swap2 # vi /etc/fstab /dev/vg/lv_swap2 swap defaults 0 0 It doesn't work... Need help!...

PhpStorm 8.0.3 crashing itself and Windows Samba share

I access the code on my CentOS VM through a Samba share on my Windows machine. I have been using PhpStorm for a while now, however this morning I have been unable to use PhpStorm to access the Samba share. When PhpStorm loads it shows a blank screen (no project...

EC2 root volume expansion for CentOS7

My EC2 is running with CentOS 7 HVM community image which comes default as xfs file system, and I had a root volume with 10GB which I extended to 15GB after detaching > creating snap > reattaching to /dev/sda1 but I noticed that I did not had to run any...

Liferay 6.2 clustering issue with multicast

I am trying to cluster ehcache and lucene with Liferay 6.2 EE sp2 bundle on 2 servers with mutlicast enabled. WE have Apache HTTPD servers fronting tomcat servers using reverse proxy. A valid 6.2 license is deployed on both the nodes. We user the following properties in the portal-ext.properties: cluster.link.enabled=true...

db:migrate (PostgreSQL) fails on Rails deployment with Capistrano

I'm a complete noob to deploying Rails and even more new to PostgreSQL. I'm running a CentOS 6.6 server and my deployment tasks keep failing with the following db:migrate errors: cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as [email protected]: rake exit status: 1 rake stdout: /var/www/rally_app/shared/bundle/ruby/2.2.0/gems/fog-1.23.0/lib/fog/rackspace/mock_data.rb:42: warning: duplicated key at line...

__git_ps1 shows wrong branch

I'm getting an issue where the __git_ps1 script returns the wrong branch. First, I'll check my branches: [email protected] ssalisbury (master)$ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master Then I'll create and checkout a new branch, and the __git_ps1 script will still show that I'm on my original branch:...

Puppet Learning VM with Jenkins CI installation

I am trying to set up Jenkins CI in Puppet Learning VM ( CentOS 6.5 x86 ), but I cannot make yum to see openjdk 1.7.0 packages, therefore jenkins puppet fails. I have tried adding epel repo - still yum says no package available. I have changed pluginconf to disable...

autoexpect on docker centos6.6 container cannot work

Docker container pure image: centos6.6 after bash, I install these: yum -y install tar zip unzip expect glibc.i686 Package expect- already installed and latest version and run autoexpect, I always get these error: [[email protected] bin]# autoexpect autoexpect started, file is script.exp no such variable (read trace on "env(SHELL)") invoked from...

rpmbuild no such file or directory

I'm just learning making rpm packages for some custom builds of software that gets compiled from source (some legacy stuff needs this, so I'm trying to learn, as some packages can't use the latest versions), but hitting an error (I'm doing this in Vagrant, and also as root, but typically...

How to resolve dependencies while installing application on linux (CentOS 7.1)

When I tried install deluge on my CentOS 7.1 I was facing dependecy problems due to some el6 which are not meant for CentOS 7.1. So, I found this page: https://gist.github.com/dasgoll/111f6f3364e2ab97bc08 His instructions: Centos 7.1 yum -y install wget wget hxxp://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm yum -y install deluge-web systemctl start...

Warning everytime login remote server

The following warning shows up everytime when I login a remote server using ssh [email protected]_server, anyone knows why and how to fix it? Warning: the RSA host key for 'HOSTNAME' differs from the key for the IP address 'IP ADDRESS' Offending key for IP in /home/haifzhan/.ssh/known_hosts:15 Matching host key in...

Access denied while running Mysql for the first time on Centos

I just installed Mysql for the first time on a CentOS machine using yum. The installation had no errors. Then I followed those steps: $ sudo /sbin/service mysqld start --skip-grant-tables --skip-networking $ sudo /usr/bin/mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL SERVERS IN PRODUCTION USE!...

plesk when upgrading php, will this break everything?

I'm running a VPS with centOS, plesk 12 and PHP5.3. I'm looking to upgrade to a more recent version of php but without taking down all my sites running on that server. I've tried through the plesk GUI and got to this point which is ambiguous to what it will...

How to print a result from multiple root elements in XML using Perl

I'm starting out with Perl and doing all the bad things you can with the language. This program is using XML::Simple and Regular Expressions which the internet says do not do unless you hate yourself. Ok, the plan is to read an XML file from a website and read off...

WkHTMLtoPDF PHP exec xvfb-run: Error: xauth command not found

I want to generate a PDF from a URL, so I execute the command by WkHTMLtoPDF as below: /usr/bin/xvfb-run --server-args="-screen 0, 1920x1080x24" /usr/local/bin/wkhtmltopdf http://www.google.com /tmp/google.pdf 2>&1 The above command works fine on Terminal, But when I invoke the command inside PHP failed! And show me an error message as below:...

How can I read iso-8859-1 file

I try to read File.java file with iso-8859-1 encoding . I executed command like this iconv -f ISO-8859-1 FileSorter.java -t ASCII//TRANSLIT but I still get some wrong characters after converting: /** * Yoio iaoia auiieiyao ni?oe?iaeo nienea oaeeia * @param fileList iaioni?oe?iaaiiue nienie oaeeia * @return ioni?oe?iaaiiue nienie oaeeia */...

SMTP(500 Access Denied) Error but i can send mail to gmail or hotmail

I can successfully send email to Gmail or Hotmail accounts but cannot send email like [email protected] mail adresses. I use exim on CentOs server. When i send the email I get this error: SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=5598: host example.com [XX.XXX.X.63]: 550 Access denied -...

Compile and install php5.4, make: *** [libphp5.la] Error 1

I am trying to build PHP with the following build configuration: ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-openssl --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr/include/libxml2/libxml --enable-xml --enable-sockets --with-apxs2=/usr/local/httpd/bin/apxs --with-mcrypt --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-bz2=/usr/bin/bzip2 --enable-maintainer-zts and...

phpseclib loadKey works on mac, not on CentOS

I am attempting to load a hardcoded (for the sake of testing) RSA public key in phpseclib (stable version 0.3.10). This code works perfectly correctly when run locally on my Mac and spits back out the key I entered: CONST PUBLIC_KEY = '-----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDYwTO/CJJQ8vbwTRQRWmOS0Pbz tFCks4RhmPxYANSQV5V9Qy+QSupewn2WAb7zV04r4RqtwxB7stDMbK+uPY+GYR5M moQuT0YStJ6TXJjiF8i1Y+DBGLnTXOD36y93V8DpuFWMxMYtROskE+Mx1W70+VTZ EM6k+jvIfzRJoVDqswIDAQAB -----END...

I can't convert with ImageMagick

I'm using ImageMagick to convert a PDF file. I use this PHP snippet: $cadena = "/usr/local/bin/convert -density 100 -colorspace rgb ".$name_path." ".$images_path."/convert.png"; shell_exec($cadena); where $name_path is the PDF file directory and $images_path is the images directory. This code in console (CentOS) works perfectly. But when I try to use shell_exec()...

How To Restore a Missing Redis Service

I installed an older version of Redis on a CentOS server. I tried to remove that old version and update it to latest version, but it seems that the redis service is gone and the new version installation doesn't reproduce it. Is there any way I can uninstall the Redis...

ehCache Statistics with spring boot

I have spring boot application with ehcache as below @Bean public EhCacheManagerFactoryBean ehCacheManagerFactoryBean() { EhCacheManagerFactoryBean ehCacheManagerFactoryBean = new EhCacheManagerFactoryBean(); ehCacheManagerFactoryBean.setConfigLocation(new ClassPathResource("ehcache.xml")); //ehCacheManagerFactoryBean.setCacheManagerName("messageCache"); ehCacheManagerFactoryBean.setShared(true); return ehCacheManagerFactoryBean; } @Bean public EhCacheCacheManager cacheManager() { return new...

Disable ehcache at runtime with jmx

I'm trying to disable a distributed ehcache at runtime. This is needed to facilitate rolling deploys to our several servers so new version of code wouldn't interfere with servers awaiting update to the newer code. I came up with the following class @Component @ManagedResource(objectName = "net.sf.ehcache:category=CustomCacheManager,name=cache-ms", description = "Custom managing...

erl with centos “Failed to create main carrier for ll_alloc”

i am having a centos vps. i have installed erlang by the command rpm -Uvh erlang-17.4-1.el6.x86_64.rpm Now whenever i try to run my rabbitmq-server. or i just issue erl command then i get this error. Failed to create main carrier for ll_alloc Aborted is it some memory issue erlang is...

Point domain to wordpress folder in ec2 amazon centos

I have my site hosted at I have registered domain gabifrc.org from aws I'm using httpd24 on crentos I have set following configurations in /etc/httpd/conf/httpd.conf file. It seems to change the DocumentRoot but doamin is not in use. How can i point it to the doamin. <VirtualHost *:80> ServerAdmin...

How to check all versions of python installed on osx and centos

I just started setting up a centos server today and noticed that the default version of python on centos is set to 2.6.6. I want to use python 2.7 instead. I googled around and found that 2.6.6 is used by system tools such as YUM so I should not tamper...

IP Messenger for CentOS 7

I'm Using CentOS 7 and trying to install IP messenger in it but not able to install it. Can anyone help me in installing any IP messenger. Any kind of help would be appreciated. Thanks.

.htaccess not redirecting web site to https

I am running Apache/2.2.15 on Centos 6.6 and am using a free certificate from StartCom. My home page file is /var/www/index.php so I create a file /var/www/.htaccess with the following content, as suggested here. RewriteEngine On # This will enable the Rewrite capabilities RewriteCond %{HTTPS} !=on # This checks to...

Knife ec2: need to avoid re-boostraping of server after hostname change

I might be doing something wrong, but here is the situation. Standalone Chef server 12.3.0. CentOS 6.3 running on AWS. During execution of knife bootstrap I am applying hostname:default recipe to change server's FQDN along with some other recipes. Everything iseems to be fine. Chef server shows newly boostrapped instance,...

Ehcache cache .data files have escaped unicode characters

My caches' data filenames seem to contain escaped unicode characters in the data store. Strangely only capital letters in the cache names are replaced. Eg: %004c%004f%0043%0041%004c%004dodifier%004cinking%004danager.data Should be: LOCALModifierLinkingManager.data Why is this the case? How can I fix it? Environment: Windows 7 x64...

FIPS integrity verification test failed when iniating SSH session

I recently enabled the FIPS module under CentOS 6 (minimum install). Module is confirmed working: cat /proc/sys/crypto/fips_enabled yields 1 openssl md5 somefile(fails) and openssl sha1 somefile(succeeds). openssl version yields OpenSSL 1.0.1e-fips 11 Feb 2013 When I attempt to ssh into a box I connect to daily, I now see a...

How to make this webserver only accessible to your machine and server1.example.com?

I set up a default configuration webserver. And now I can't make this webserver accessible only to my machine and server1.example.com. # chkconfig httpd on # service httpd start echo “This is a test.? > /var/www/html/index.html # iptables -I INPUT -m state –state NEW -m tcp port 80 -j ACCEPT...

Install php-devel

I would like to install php-devel on my server(CentOS 6.5). yum install php-devel However, I encountered the following error. Error: php54-cli conflicts with php-cli-5.3.3-40.el6_6.x86_64 Error: php54 conflicts with php-5.3.3-40.el6_6.x86_64 Error: php54-common conflicts with php-common-5.3.3-40.el6_6.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va...

Bash script to find && mkdir

Scenario I'm switching IMAP client on a mail server for several thousands domains with following structure : Mail folder location: /home/mail/domains (just an example) Maildir for domain1.com contains following folders: (again just an example) .Sent.2002.May .Sent.2002.June .Personal.Home.Jack Maildir for domain2.com contains .Sent.2008.June .Emails.Test.test2 Maildir for domain3.com contains .Sent.2012.Files .Archive.2014.May Problem:...

installation of compiler gfortran in centos 6

I try to install some compilers. I use Centos 6 in my laptop. I have installed the gcc, the "GNU" C Compiler. I need to install also gfortran, but when I type yum install gfortran, I get the message no package gfortran available. Do you know how can I install...

WordPress.org and Vanilla Forums on 1 VPS

I am looking at setting up a blog and a forum. I will be using WordPress.org for the blog and Vanilla Forums for the forum. I could buy two VPSs but if I can get it to work on 1 VPS then that would be better. I would like to...

Cannot find a package in yum repo list

I'm looking for tomcat-native (Centos 6) $sudo yum install tomcat-native No package tomcat-native available. Error: Nothing to do How do I update the yum repository list?...

Installing vnstat on CentOS 6 shows “No package vnstat available”

I'm trying to install vnstat on CentOS 6. I used the command found in the docs 'yum install vnstat' but it shows the below: [[email protected] ~]# yum install vnstat Loaded plugins: fastestmirror Setting up Install Process Determining fastest mirrors * base: mirror.its.dal.ca * extras: mirror.its.dal.ca * updates: mirror.its.dal.ca base |...

Cache inconsistency - Entity not always persisted in cached Collection

I'm having an issue where a Validation instance is added to a Collection on a Step instance. Declaration is as follows: Step class: @Entity @Table @Cacheable @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public class Step extends AbstractEntity implements ValidatableStep { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true) @JoinColumn(name = "step_id", nullable...

Error while installing Odoo

Finished Dependency Resolution Error Package: odoo-8.0_20150617-1.noarch (odoo-nightly) Requires: python(abi) = 2.7 Installed: python-2.6.6-52.el6.x86_64 (@base) python(abi) = 2.6 Available: python-2.6.6-51.el6.x86_64 (test) python(abi) = 2.6 trying using --skip-broken to work around the problem trying running: rpm -Va --nofiles --nodigest Steps Which I Followed installed the pstgresql 9.4.4 updated the python 2.6 to...

Java 8 , JCE Unlimited Strength Policy and SSL Handshake over TLS

With Java 8, server which only supports TLSv1, it fails to make secure socket connection from cent OS Version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode) Source import javax.net.ssl.SSLSession; import javax.net.ssl.SSLSocket; import javax.net.ssl.SSLSocketFactory; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader;...

ffmpeg convert any file to any file

I Want simple command to convert any supported file to any file with little possible video compression. for example avi to mp4 mp4 to 3gp . .etc.. I tried below code ffmpeg -i infile.flv outfile.3gp It works for some but for some other like flv to 3gp conversion it throws...