Archive for the ‘how to fix the error…’ Category

Jenkins, github and Host key verification failed.

I have just switched a Jenkins project from Svn to git (hosted on GitHub). When I wanted to build the project I experienced the following error: Host key verification failed The first issue was, that Jenkins didn’t run with the normal user, but it’s own Jenkins user. So I switched to this user su jenkins [...]

Error when trying to deploy Rails 3 application with ActiveAdmin

I have just tried to deploy my Rails 3 application which uses ActiveAdmin and I’ve gotten the following error: File to import not found or unreadable: active_admin/mixins The solution was to add the following line into my capistrano configuration file config/deploy.rb: load “deploy/assets” After a new cap deploy the error was gone.

‘xterm-256color’: unknown terminal type.

The following error popped up when I was accessing a Ubuntu EC2 instance from my MacOS X system: ‘xterm-256color’: unknown terminal type. To fix this error I needed to install ncurses-term via sudo apt-get install ncurses-term

YAML parsing errors in Rails 3.0.x application (couldn’t parse YAML)

I’ve just got this error in my Rails 3.0.7 application: Psych::SyntaxError (couldn’t parse YAML at line 289 column 14) To fix this I needed to add require ‘yaml’ YAML::ENGINE.yamler= ‘syck’ into my first two lines of the config/boot.rb

Running Apache Archiva on Debian Linux 64bit causes errors

I had some problems running Apache Archiva – the Maven repository management tool – on my Debian Linux 64bit system. The error I got when starting the standalone version via bin/archiva console was like this: apache-archiva-1.3.4/bin/./wrapper-linux-x86-32: No such file or directory What I needed to do to start the server was removing the 32bit versions: [...]

SugarCRM Inbound E-mail problem

I’ve just got the following error message while accessing the Inbound E-mail feature in SugarCRM: Inbound Email cannot function without the IMAP c-client libraries enabled/compiled with the PHP module To fix this error on my Debian server I’ve had to install the PHP IMAP module via apt-get install php5-imap

Fixing “use -source 5 or higher to enable generics” during Maven compilation

I just wanted to compile & assemble a Maven project using mvn assembly:assembly and got the following error: Compilation failure [...] (use -source 5 or higher to enable annotations) To fix this error I needed to add <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> to my pom.xml file.

`require’: no such file to load — readline (LoadError)

I got the following error when trying to start the ‘rails console’ in a Rails3/Ruby 1.9.2 project: `require’: no such file to load — readline (LoadError) The problem was that readline was not installed properly. To install it, I needed to go into the ruby sources. In my case they were located in the directory [...]

Creation of nested models in Rails3 failed with HashWithIndifferentAccess error

I just tried to create a Rails model which contained nested other models and got an HashWithIndifferentAccess error. I used accepts_nested_attributes_for in the parent model. To solve this problem the solution was to add an attr_accessible :MODELNAME_attributes for the child-model (MODELNAME) into the parent model. E.g. Parent model class ParentModel < ActiveRecord::Base has_one :child_model attr_accessible [...]

no such file to load — dispatcher

I updated to Rails 3 and tried to deploy the application using passenger in combination with Apache2. I’ve got the following error: no such file to load — dispatcher The thing was, that Passenger treats the Rails 3 application as an Rack application because of the config.ru file. To get it run again, you need [...]