Activities

January 2013
M T W T F S S
« Dec   Mar »
 123456
78910111213
14151617181920
21222324252627
28293031  

Guacamole : guacd showing segmentation fault after the boot

After I’ve installed Guacamole on one of AWS vpc server, I’m getting connection refused error on Guacamole website. But this issue will be fixed as soon as I started the guacd daemon manually by issuing either “guacd” or /etc/init.d/guacd start

Finally it has been found that system logs showing kernel segmentation faul. So it’s must be something with guacd service. This ticket has the solution https://guac-dev.org/trac/ticket/160

22 09:48:21 ip-10-0-1-161 kernel: [  121.116233] guacd[1508]: segfault at 0 ip b75a16c6 sp bfe15814 error 4 in libc-2.12.so[b7520000+194000]
Jan 22 09:49:12 ip-10-0-1-161 guacd[1568]: Protocol "rdp" selected
Jan 22 09:49:12 ip-10-0-1-161 kernel: [  172.760254] guacd[1568]: segfault at 0 ip b75a16c6 sp bfe15814 error 4 in libc-2.12.so[b7520000+194000]
Jan 22 09:49:17 ip-10-0-1-161 guacd[1578]: Guacamole proxy daemon

Solution

We need to add 2 lines in the top of guacd startup script(/etc/init.d/guacd).

 vi /etc/init.d/guacd
# Ensure $HOME is set properly, even if environment is clear
USER=`whoami`
export HOME=`sh -c "echo ~$USER"`

Now you need to ensure that guacd is configured to run at startup.

#chkconfig guacd on

Reboot the server and test it out !!! njoy !!!

############## How to run a script few minutes after the system boot #######

#echo “/etc/init.d/guacd start >/dev/null 2>&1” | at `date –date=’1 minutes’ +%H:%M`

This will execute guacd run after 1 minute of system boot.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>