Couch database growing.. Can't compact


#1

I am trying to run a compact on the chef database and the instructions
on the Wiki are not working… It looks like couchdb isn’t running at
the advertised port. However, netstat doesn’t show it either.

What am I missing? Doesn’t chef-server utilize that port to
communicate with the database?

I run this command…

curl -H “Content-Type: application/json” -X POST

http://localhost:5984/chef/_compact

I get -> curl: (7) couldn’t connect to host

Thanks

Randy

From: Adam Jacob [mailto:adam@opscode.com]
Sent: Friday, February 03, 2012 11:40 PM
To: chef@lists.opscode.com
Subject: [chef] Re: remote_directory & notifies

Nice memory, Peter. :slight_smile:

Adam


Opscode, Inc.

Adam Jacob, Chief Customer Officer

T: (206) 619-7151 E: adam@opscode.com

On Feb 3, 2012, at 4:00 PM, Peter Struijk wrote:

This used to be a bug: http://tickets.opscode.com/browse/CHEF-2354

On Fri, Feb 3, 2012 at 3:51 PM, Max Gorbul max@gorbul.net wrote:

Jason,

 

I have create a repo to test remote_directory resource. It work

like expected. Flag file is created only when folder is created/updated.

https://github.com/mhorbul/remote-directory-notification

 

--max

 

On Fri, Feb 3, 2012 at 3:38 PM, Adam Jacob <adam@opscode.com>

wrote:

Have you filed a bug?

Adam

---
Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 <tel:%28206%29%20619-7151>  E:

adam@opscode.com

On Feb 3, 2012, at 2:24 PM, Jason J. W. Williams wrote:

> As an FYI to everyone, remote_directory will fire its

“notifies”
> clauses EVERY time the recipe runs, not just when files in the
source
> directory change.
>
> -J
>
> On Wed, Feb 1, 2012 at 2:34 PM, Max Gorbul max@gorbul.net
wrote:
>> it won’t notify subscribers if there are no differences
between source and
>> target dirs/files
>>
>> --max
>>
>>
>> On Wed, Feb 1, 2012 at 11:59 AM, Jason J. W. Williams
>> jasonjwwilliams@gmail.com wrote:
>>>
>>> If one uses a remote_directory directive, and none of the
files are
>>> different between the source and target dirs, will any of
the notifies
>>> attached to the remote_directory block be fired? Thank you
in advance!
>>>
>>> -J
>>
>>


#2

Is there a couchdb process running?

On 4 February 2012 19:11, Van Fossan,Randy vanfossr@oclc.org wrote:

I am trying to run a compact on the chef database and the instructions on
the Wiki are not working… It looks like couchdb isn’t running at the
advertised port. However, netstat doesn’t show it either.

What am I missing? Doesn’t chef-server utilize that port to communicate
with the database?

I run this command…

curl -H “Content-Type: application/json” -X POST

http://localhost:5984/chef/_compact

I get -> curl: (7) couldn’t connect to host

Thanks

Randy

From: Adam Jacob [mailto:adam@opscode.com]
Sent: Friday, February 03, 2012 11:40 PM
To: chef@lists.opscode.com
Subject: [chef] Re: remote_directory & notifies

Nice memory, Peter. :slight_smile:

Adam


Opscode, Inc.

Adam Jacob, Chief Customer Officer

T: (206) 619-7151 E: adam@opscode.com

On Feb 3, 2012, at 4:00 PM, Peter Struijk wrote:

This used to be a bug: http://tickets.opscode.com/browse/CHEF-2354

On Fri, Feb 3, 2012 at 3:51 PM, Max Gorbul max@gorbul.net wrote:

Jason,

I have create a repo to test remote_directory resource. It work like
expected. Flag file is created only when folder is created/updated.

https://github.com/mhorbul/remote-directory-notification

–max

On Fri, Feb 3, 2012 at 3:38 PM, Adam Jacob adam@opscode.com wrote:

Have you filed a bug?

Adam


Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com

On Feb 3, 2012, at 2:24 PM, Jason J. W. Williams wrote:

As an FYI to everyone, remote_directory will fire its "notifies"
clauses EVERY time the recipe runs, not just when files in the source
directory change.

-J

On Wed, Feb 1, 2012 at 2:34 PM, Max Gorbul max@gorbul.net wrote:

it won’t notify subscribers if there are no differences between source
and
target dirs/files

–max

On Wed, Feb 1, 2012 at 11:59 AM, Jason J. W. Williams
jasonjwwilliams@gmail.com wrote:

If one uses a remote_directory directive, and none of the files are
different between the source and target dirs, will any of the notifies
attached to the remote_directory block be fired? Thank you in advance!

-J


#3

Thanks AJ, that was it… I thought the couchdb daemon had to be running to support chef-server. Anyway, restarting it soved the problem (momentarily)… I just need to find out why it crashes…

It looks like it crashes right after issuing the compact command…

service couchdb status

   couchdb dead but subsys locked

Nothing in var/log/couchdb/couch.log or /var/log/messages about the process dying.

Thanks
Randy

-----Original Message-----
From: AJ Christensen [mailto:aj@junglist.gen.nz]
Sent: Saturday, February 04, 2012 1:16 AM
To: chef@lists.opscode.com
Subject: [chef] Re: Couch database growing… Can’t compact

Is there a couchdb process running?

On 4 February 2012 19:11, Van Fossan,Randy vanfossr@oclc.org wrote:

I am trying to run a compact on the chef database and the instructions
on the Wiki are not working… It looks like couchdb isn’t running at
the advertised port. However, netstat doesn’t show it either.

What am I missing? Doesn’t chef-server utilize that port to
communicate with the database?

I run this command…

curl -H “Content-Type: application/json” -X POST

http://localhost:5984/chef/_compact

I get -> curl: (7) couldn’t connect to host

Thanks

Randy

From: Adam Jacob [mailto:adam@opscode.com]
Sent: Friday, February 03, 2012 11:40 PM
To: chef@lists.opscode.com
Subject: [chef] Re: remote_directory & notifies

Nice memory, Peter. :slight_smile:

Adam


Opscode, Inc.

Adam Jacob, Chief Customer Officer

T: (206) 619-7151 E: adam@opscode.com

On Feb 3, 2012, at 4:00 PM, Peter Struijk wrote:

This used to be a bug: http://tickets.opscode.com/browse/CHEF-2354

On Fri, Feb 3, 2012 at 3:51 PM, Max Gorbul max@gorbul.net wrote:

Jason,

I have create a repo to test remote_directory resource. It work like
expected. Flag file is created only when folder is created/updated.

https://github.com/mhorbul/remote-directory-notification

–max

On Fri, Feb 3, 2012 at 3:38 PM, Adam Jacob adam@opscode.com wrote:

Have you filed a bug?

Adam


Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E: adam@opscode.com

On Feb 3, 2012, at 2:24 PM, Jason J. W. Williams wrote:

As an FYI to everyone, remote_directory will fire its "notifies"
clauses EVERY time the recipe runs, not just when files in the source
directory change.

-J

On Wed, Feb 1, 2012 at 2:34 PM, Max Gorbul max@gorbul.net wrote:

it won’t notify subscribers if there are no differences between
source and target dirs/files

–max

On Wed, Feb 1, 2012 at 11:59 AM, Jason J. W. Williams
jasonjwwilliams@gmail.com wrote:

If one uses a remote_directory directive, and none of the files are
different between the source and target dirs, will any of the
notifies attached to the remote_directory block be fired? Thank you in advance!

-J