Installing chef-server on debian

Hello chefs,

I wanted to install chef-server on debian, since you do not provide debian package
I tried the Ubuntu one.

wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.10-1.ubuntu.12.04_amd64.deb

sudo dpkg -i — Smooth here

and on then,

masterkorp@boobierack:~/chef_server$ sudo chef-server-ctl reconfigure
/opt/chef-server/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14’ not found (required by /opt/chef-server/embedded/lib/libruby.so.1.9)

I just stopped here, because i cannot be the only one to use debian, How did you guys did it ?


Regards,
Alfredo Palhares

Try the Ubuntu 10.04 package.


Jeff Moody
Datapipe Cloud Engineer
Datapipe Managed IT Services
1.888.749.5821 x2505

-----Original Message-----
From: Alfredo Palhares [mailto:masterkorp@masterkorp.net]
Sent: Monday, January 20, 2014 11:42 AM
To: chef
Subject: [chef] Installing chef-server on debian

Hello chefs,

I wanted to install chef-server on debian, since you do not provide debian package I tried the Ubuntu one.

wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.10-1.ubuntu.12.04_amd64.deb

sudo dpkg -i — Smooth here

and on then,

masterkorp@boobierack:~/chef_server$ sudo chef-server-ctl reconfigure
/opt/chef-server/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14’ not found (required by /opt/chef-server/embedded/lib/libruby.so.1.9)

I just stopped here, because i cannot be the only one to use debian, How did you guys did it ?


Regards,
Alfredo Palhares


This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See http://www.datapipe.com/legal/email_disclaimer/ for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you. Unless otherwise specified in a written agreement, this e-mail neither constitutes an agreement to conduct transactions by electronic means nor creates any legally binding contract or enforceable agreement.

Hello Jeff,

Try the Ubuntu 10.04 package.
I did tried it before, but without success.

masterkorp@boobierack:~/chef_server$ sudo chef-server-ctl reconfigure
[sudo] password for masterkorp:
Starting Chef Client, version 11.6.0
Compiling Cookbooks...
Recipe: chef-server::default

  • directory[/etc/chef-server] action create (up to date)
    [2014-01-20T18:07:49+01:00] WARN: Cloning resource attributes for directory[/var/opt/chef-serve
    r/chef-server-webui/etc] from prior resource (CHEF-3694)
    [2014-01-20T18:07:49+01:00] WARN: Previous directory[/var/opt/chef-server/chef-server-webui/etc
    ]: /opt/chef-server/embedded/cookbooks/chef-server/recipes/chef-server-webui.rb:31:in block in from_file' [2014-01-20T18:07:49+01:00] WARN: Current directory[/var/opt/chef-server/chef-server-webui/etc ]: /opt/chef-server/embedded/cookbooks/chef-server/definitions/unicorn_config.rb:21:in block i
    n from_file'
    Generating RSA private key, 2048 bit long modulus
    ............................+++
    ...........+++
    e is 65537 (0x10001)
    Converging 204 resources
    • directory[/etc/chef-server] action nothing (skipped due to action :nothing)
      Recipe: chef-server::users
    • user[chef_server] action create (up to date)
    • group[chef_server] action create (up to date)
      Recipe: chef-server::default
    • directory[/etc/chef] action create (up to date)
    • directory[/var/opt/chef-server] action create (up to date)
      Recipe: runit::sysvinit
    • execute[echo 'SV:123456:respawn:/opt/chef-server/embedded/bin/runsvdir-start' >> /etc/initt
      ab] action run (skipped due to not_if)
    • execute[init q] action nothing (skipped due to action :nothing)
      Recipe: chef-server::rabbitmq
    • directory[/var/opt/chef-server/rabbitmq] action create (up to date)
    • directory[/var/opt/chef-server/rabbitmq/etc] action create (up to date)
    • directory[/var/opt/chef-server/rabbitmq/db] action create (up to date)
    • directory[/var/log/chef-server/rabbitmq] action create (up to date)
    • link[/var/opt/chef-server/rabbitmq/db] action create (skipped due to not_if)
    • link[/opt/chef-server/embedded/bin/rabbitmqctl] action create (up to date)
    • link[/opt/chef-server/embedded/bin/rabbitmq-env] action create (up to date)
    • link[/opt/chef-server/embedded/bin/rabbitmq-multi] action create (up to date)
    • link[/opt/chef-server/embedded/bin/rabbitmq-server] action create (up to date)
    • template[/opt/chef-server/embedded/service/rabbitmq/sbin/rabbitmq-env] action create (up to
      date)
    • template[/var/opt/chef-server/rabbitmq/etc/rabbitmq.conf] action create (up to date)
    • directory[/opt/chef-server/sv/rabbitmq] action create (up to date)
    • directory[/opt/chef-server/sv/rabbitmq/log] action create (up to date)
    • directory[/opt/chef-server/sv/rabbitmq/log/main] action create (up to date)
    • template[/opt/chef-server/sv/rabbitmq/run] action create (up to date)
    • template[/opt/chef-server/sv/rabbitmq/log/run] action create (up to date)
    • file[/opt/chef-server/sv/rabbitmq/down] action delete (up to date)
    • link[/opt/chef-server/init/rabbitmq] action create (up to date)
    • link[/opt/chef-server/service/rabbitmq] action create (up to date)
    • ruby_block[supervise_rabbitmq_sleep] action run

And it just hangs here for several hours.
Thank you for you reply.

--
Regards,
Alfredo Palhares

Just get required dependencies/libraries. For me it works.

2014/1/20 Alfredo Palhares masterkorp@masterkorp.net:

Hello Jeff,

Try the Ubuntu 10.04 package.
I did tried it before, but without success.

masterkorp@boobierack:~/chef_server$ sudo chef-server-ctl reconfigure
[sudo] password for masterkorp:
Starting Chef Client, version 11.6.0
Compiling Cookbooks...
Recipe: chef-server::default

  • directory[/etc/chef-server] action create (up to date)
    [2014-01-20T18:07:49+01:00] WARN: Cloning resource attributes for directory[/var/opt/chef-serve
    r/chef-server-webui/etc] from prior resource (CHEF-3694)
    [2014-01-20T18:07:49+01:00] WARN: Previous directory[/var/opt/chef-server/chef-server-webui/etc
    ]: /opt/chef-server/embedded/cookbooks/chef-server/recipes/chef-server-webui.rb:31:in block in from_file' [2014-01-20T18:07:49+01:00] WARN: Current directory[/var/opt/chef-server/chef-server-webui/etc ]: /opt/chef-server/embedded/cookbooks/chef-server/definitions/unicorn_config.rb:21:in block i
    n from_file'
    Generating RSA private key, 2048 bit long modulus
    ............................+++
    ...........+++
    e is 65537 (0x10001)
    Converging 204 resources
    • directory[/etc/chef-server] action nothing (skipped due to action :nothing)
      Recipe: chef-server::users
    • user[chef_server] action create (up to date)
    • group[chef_server] action create (up to date)
      Recipe: chef-server::default
    • directory[/etc/chef] action create (up to date)
    • directory[/var/opt/chef-server] action create (up to date)
      Recipe: runit::sysvinit
    • execute[echo 'SV:123456:respawn:/opt/chef-server/embedded/bin/runsvdir-start' >> /etc/initt
      ab] action run (skipped due to not_if)
    • execute[init q] action nothing (skipped due to action :nothing)
      Recipe: chef-server::rabbitmq
    • directory[/var/opt/chef-server/rabbitmq] action create (up to date)
    • directory[/var/opt/chef-server/rabbitmq/etc] action create (up to date)
    • directory[/var/opt/chef-server/rabbitmq/db] action create (up to date)
    • directory[/var/log/chef-server/rabbitmq] action create (up to date)
    • link[/var/opt/chef-server/rabbitmq/db] action create (skipped due to not_if)
    • link[/opt/chef-server/embedded/bin/rabbitmqctl] action create (up to date)
    • link[/opt/chef-server/embedded/bin/rabbitmq-env] action create (up to date)
    • link[/opt/chef-server/embedded/bin/rabbitmq-multi] action create (up to date)
    • link[/opt/chef-server/embedded/bin/rabbitmq-server] action create (up to date)
    • template[/opt/chef-server/embedded/service/rabbitmq/sbin/rabbitmq-env] action create (up to
      date)
    • template[/var/opt/chef-server/rabbitmq/etc/rabbitmq.conf] action create (up to date)
    • directory[/opt/chef-server/sv/rabbitmq] action create (up to date)
    • directory[/opt/chef-server/sv/rabbitmq/log] action create (up to date)
    • directory[/opt/chef-server/sv/rabbitmq/log/main] action create (up to date)
    • template[/opt/chef-server/sv/rabbitmq/run] action create (up to date)
    • template[/opt/chef-server/sv/rabbitmq/log/run] action create (up to date)
    • file[/opt/chef-server/sv/rabbitmq/down] action delete (up to date)
    • link[/opt/chef-server/init/rabbitmq] action create (up to date)
    • link[/opt/chef-server/service/rabbitmq] action create (up to date)
    • ruby_block[supervise_rabbitmq_sleep] action run

And it just hangs here for several hours.
Thank you for you reply.

--
Regards,
Alfredo Palhares

Hi,

I did hit the same 'obstacle'. The glib on debian wheezy is not new
enough. But whith wheezy fixed as the main distribution[1], adding a
sources.list-entry for jessy [2] and then updating glib from jessy [3],
it worked.

[1] Put in /etc/apt/apt.conf (for example):
APT::Default-Release "wheezy";

[2] Put in /etc/apt/sources.list.d/debian-jessie.list:
deb Index of /debian jessie main
deb-src Index of /debian jessie main

[3] On a root-console (or with sudo):
apt-get install libc6/jessy
or was it
apt-get install libc6/testing
?

On Mon, 20 Jan 2014 17:42:13 +0100 Alfredo Palhares
masterkorp@masterkorp.net wrote:

Hello chefs,

I wanted to install chef-server on debian, since you do not provide
debian package I tried the Ubuntu one.

wget
https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.10-1.ubuntu.12.04_amd64.deb

sudo dpkg -i --- Smooth here

and on then,

masterkorp@boobierack:~/chef_server$ sudo chef-server-ctl reconfigure
/opt/chef-server/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6:
version `GLIBC_2.14' not found (required
by /opt/chef-server/embedded/lib/libruby.so.1.9)

I just stopped here, because i cannot be the only one to use debian,
How did you guys did it ?

--
Regards,
Alfredo Palhares

Hello Arnoild,

I did hit the same 'obstacle'. The glib on debian wheezy is not new
enough. But whith wheezy fixed as the main distribution[1], adding a
sources.list-entry for jessy [2] and then updating glib from jessy [3],
it worked.
Thank you that worked !

[3] On a root-console (or with sudo):
apt-get install libc6/jessy
or was it
apt-get install libc6/testing
?
Its testing.

Now i have another problem, rabbitmq starts and here is a log,
2014-01-21_14:39:41.08940 -- message delivery logic ready
2014-01-21_14:39:41.08953 starting error log relay ...done
2014-01-21_14:39:41.09018 starting networking ...done
2014-01-21_14:39:41.09810 starting direct_client ...done
2014-01-21_14:39:41.09830 starting notify cluster nodes ...done
2014-01-21_14:39:41.09845
2014-01-21_14:39:41.09846 broker running

root@boobierack:/home/masterkorp/chef_server# chef-server-ctl start
ok: run: rabbitmq: (pid 21252) 2393s

Is it supposed to be just this ??

Also nmap says there is nothing on 4000, as well as knife gets a connection refused.

There is nothing on /var/log/chef-server (or /var/log/chef) besides the rabbitmq service.

Any ideas how i can approach this ?

--
Regards,
Alfredo Palhares

Ok right after this,

I came to the solution that the init q command wasn’t doing anything.

/opt/chef-server/embedded/bin/runsvdir-start

Runing this manually, and then chef-server-ctl reconfigure ends up in a successful run.

root@boobierack:/home/masterkorp# chef-server-ctl start
ok: run: bookshelf: (pid 22935) 99s
ok: run: chef-expander: (pid 22892) 101s
ok: run: chef-server-webui: (pid 23121) 90s
ok: run: chef-solr: (pid 22839) 102s
ok: run: erchef: (pid 23296) 86s
ok: run: nginx: (pid 23487) 2s
ok: run: postgresql: (pid 22743) 109s
ok: run: rabbitmq: (pid 21252) 2930s

Everything up !

To solve the runsvdir-start, either reboot on send init 6.


Regards,
Alfredo Palhares

We are successfully running the Ubuntu 11.04 version on Debian Wheezy.

Steffen

On 20/01/14 23:45, Arnold Krille wrote:

Hi,

I did hit the same 'obstacle'. The glib on debian wheezy is not new
enough. But whith wheezy fixed as the main distribution[1], adding a
sources.list-entry for jessy [2] and then updating glib from jessy [3],
it worked.

[1] Put in /etc/apt/apt.conf (for example):
APT::Default-Release "wheezy";

[2] Put in /etc/apt/sources.list.d/debian-jessie.list:
deb Index of /debian jessie main
deb-src Index of /debian jessie main

[3] On a root-console (or with sudo):
apt-get install libc6/jessy
or was it
apt-get install libc6/testing
?

On Mon, 20 Jan 2014 17:42:13 +0100 Alfredo Palhares
masterkorp@masterkorp.net wrote:

Hello chefs,

I wanted to install chef-server on debian, since you do not provide
debian package I tried the Ubuntu one.

wget
https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.10-1.ubuntu.12.04_amd64.deb

sudo dpkg -i --- Smooth here

and on then,

masterkorp@boobierack:~/chef_server$ sudo chef-server-ctl reconfigure
/opt/chef-server/embedded/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6:
version `GLIBC_2.14' not found (required
by /opt/chef-server/embedded/lib/libruby.so.1.9)

I just stopped here, because i cannot be the only one to use debian,
How did you guys did it ?

--
Regards,
Alfredo Palhares