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


unable to start terracota

Question:

Tag: centos,ehcache,digital-ocean,terracotta

I'm having issue when starting terracota, I did grep on 37.139.24.150 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[37.139.24.150:9510]
2015-03-12 13:02:09,973 [main] ERROR com.terracottatech.console - Unable to find local network interface for 37.139.24.150
2015-03-12 13:02:09,975 [main] ERROR com.terracottatech.dso - Unable to find local network interface for 37.139.24.150
com.tc.exception.TCRuntimeException: Unable to find local network interface for 37.139.24.150
        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)

Answer:

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" 
xmlns:tc="http://www.terracotta.org/config" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <servers>
    <!-- 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">
      <data>/home/tomcat/terracotta/server-data</data>
      <logs>/home/tomcat/terracotta/server-logs</logs>
      <statistics>/home/tomcat/terracotta/server-statistics</statistics>
    </server>

<!-- If using more than one server, add an <ha> section. -->
    <ha>
      <mode>networked-active-passive</mode>
      <networked-active-passive>
        <election-time>5</election-time>
      </networked-active-passive>
    </ha>
  </servers>
  <!-- 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. -->  
  <clients>
    <logs>/opt/terracotta/client-logs</logs>
  </clients>
</tc:tc-config>

Related:


How To Restore a Missing Redis Service


linux,redis,centos
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...

How to install extencion in magento on ssh


magento,ssh,centos
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?

How can I read iso-8859-1 file


linux,centos,command-line-interface
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 */...

__git_ps1 shows wrong branch


git,shell,centos,ps1
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:...

Cache inconsistency - Entity not always persisted in cached Collection


java,hibernate,jpa,caching,ehcache
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...

Bash script to find && mkdir


linux,bash,centos
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:...

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


regex,xml,perl,xml-parsing,centos
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...

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


amazon-ec2,centos,chef,hostname,knife
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,...

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


linux,centos,rabbitmq,vps,erl
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...

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


linux,centos,dependencies
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...

Slow CURL CentOS7 with “same” link


curl,dns,centos,hosts
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 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 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...

Puppet Learning VM with Jenkins CI installation


centos,continuous-integration,puppet
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...

Install php-devel


php,centos
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...

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


java,ssl,jvm,centos,java-8
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;...

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


linux,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!...

.htaccess not redirecting web site to https


.htaccess,ssl,centos
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...

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


php,centos,redhat,lamp,build-error
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...

WordPress.org and Vanilla Forums on 1 VPS


wordpress,dns,centos,forum,vanilla-forums
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...

rpmbuild no such file or directory


centos,redhat,rpmbuild,rpm-spec
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...

Ocamlfind command not found


centos,make,ocaml,opam,ocamlfind
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...

installation of compiler gfortran in centos 6


gcc,centos,centos6,gfortran
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...

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


centos,bandwidth
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 |...

Cannot find a package in yum repo list


tomcat,centos,yum
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?...

How to delete files from directory using rm -rf?


linux,centos
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 ...

Can't install PHP Package on CentOS


php,linux,centos,yum
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:...

Warning everytime login remote server


linux,ssh,centos
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...

Error while installing Odoo


centos,openerp,odoo-8
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...

Liferay 6.2 clustering issue with multicast


lucene,cluster-computing,liferay-6,ehcache,jgroups
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...

IP Messenger for CentOS 7


centos,install,messenger
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.

How can I use GoogleMock in jenkins?


c++,gcc,jenkins,centos,googlemock
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...

Ehcache cache .data files have escaped unicode characters


windows,ehcache,datastore
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


ssh,openssl,centos,centos6,fips
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...

PhpStorm 8.0.3 crashing itself and Windows Samba share


windows-7,centos,phpstorm,samba,windows-explorer
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...

plesk when upgrading php, will this break everything?


php,centos,server,vps,plesk
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 check all versions of python installed on osx and centos


python,linux,osx,centos,version
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...

ffmpeg convert any file to any file


linux,ffmpeg,centos,command
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...

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


linux,web-services,centos
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...

Access denied while running Mysql for the first time on Centos


mysql,centos,root
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!...

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


linux,centos,command,public-html
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)

I can't convert with ImageMagick


php,centos,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()...

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


ruby-on-rails,centos,web-deployment
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...

Disable ehcache at runtime with jmx


java,spring,ehcache
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...

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


linux,email,smtp,centos,exim
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 -...

autoexpect on docker centos6.6 container cannot work


centos,docker,expect,autoexpect
Docker container pure image: centos6.6 after bash, I install these: yum -y install tar zip unzip expect glibc.i686 Package expect-5.44.1.15-5.el6_4.x86_64 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...

phpseclib loadKey works on mac, not on CentOS


php,centos,rsa,phpseclib
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...

Point domain to wordpress folder in ec2 amazon centos


wordpress,amazon-web-services,centos,httpd.conf
I have my site hosted at http://52.68.178.242/ 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...

ehCache Statistics with spring boot


statistics,spring-boot,ehcache
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...

EC2 root volume expansion for CentOS7


linux,amazon-web-services,amazon-ec2,centos,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...

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


php,centos,wkhtmltopdf,xauth
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:...

Running a Docker container that accept traffic from the host


apache,centos,docker,dockerfile
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:...