You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Delfino Gustavo <Gu...@zf.com> on 2018/04/24 12:57:07 UTC

CouchDB/Erlang Crash on startup.

Hi all,

Suddenly my CouchDB 2.1.1 (under Windows 7) is not starting up. It seems to be crashing even before it has the opportunity to write anything to the couch.log file. I do get an erl_crash.dump file that is constantly being recreated as the service tries to restart. The dump file quite large (about 600k) so I made a gist of it instead of posting directly: 

https://gist.github.com/gdelfino/93694bfa0b1b92caa25a279b8467042e

Any advice?

Regards,

Gustavo Delfino


RE: CouchDB/Erlang Crash on startup.

Posted by Delfino Gustavo <Gu...@zf.com>.
Thank you Joan. It is now up and running!

There permissions were fine and reinstalling didn't help. However, the log file was just too big (almost 100GB):

103 729 004 497 bytes (Size)
103 729 004 544 (Size on disk)

After getting rid of the old couch.log CouchDB started OK.

I should probably look into adding a log rotation solution (any advice?). Also, I guess that there should be a more useful error message for this. 

I was not aware of a 100G log file limit. This HD has plenty of free space and is formatted with NTFS. I am reading that the maximum file size for NTFS should be much higher than that.
In order to get rid of the old log file, I had to move it to another directory. I first tried to rename it, but I couldn't as Windows gave this error:

Error 0x80070299: The requested operation could not be completed due to a file system limitation.

Regards,

Gustavo

-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org] 
Sent: Tuesday, April 24, 2018 3:07 PM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

Check where you have logs logging to. That path may not exist, or CouchDB may have lost write access to it.

If that fails you can try a reinstall.

-Joan

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 1:11:38 PM
Subject: RE: CouchDB/Erlang Crash on startup.

I renamed hosts to host.old and now it continues to crash, but the error messages are reduced to:

kernel-poll not supported; "K" parameter ignored [os_mon] win32 supervisor port (win32sysinfo): Erlang has closed {"Kernel pid terminated",application_controller,"{application_terminated,couch_log,shutdown}"}

Crash dump is being written to: erl_crash.dump...done Kernel pid terminated (application_controller) ({application_terminated,couch_log,shutdown})

Any other idea? I could try reinstalling CouchDB

Regards,

Gustavo


-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org]
Sent: Tuesday, April 24, 2018 12:12 PM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

And what happens if you remove/rename that file temporarily?

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 11:48:46 AM
Subject: RE: CouchDB/Erlang Crash on startup.

I get this

kernel-poll not supported; "K" parameter ignored
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",92]}
(...similar line repeats a few hundred times...)
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",1081]}
[os_mon] win32 supervisor port (win32sysinfo): Erlang has closed {"Kernel pid terminated",application_controller,"{application_terminated,couch_log,shutdown}"}

I don't see anything suspicious in the c:/Windows/System32/drivers/etc/hosts file. In fact it has a 2013 modification date.

Regards,

Gustavo

-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org]
Sent: Tuesday, April 24, 2018 11:32 AM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

What happens if you run C:\CouchDB\bin\couchdb.cmd from an Administrator command prompt?

-Joan

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 8:57:07 AM
Subject: CouchDB/Erlang Crash on startup.

Hi all,

Suddenly my CouchDB 2.1.1 (under Windows 7) is not starting up. It seems to be crashing even before it has the opportunity to write anything to the couch.log file. I do get an erl_crash.dump file that is constantly being recreated as the service tries to restart. The dump file quite large (about 600k) so I made a gist of it instead of posting directly: 

https://gist.github.com/gdelfino/93694bfa0b1b92caa25a279b8467042e

Any advice?

Regards,

Gustavo Delfino





Re: CouchDB/Erlang Crash on startup.

Posted by Joan Touzet <wo...@apache.org>.
Check where you have logs logging to. That path may not exist, or CouchDB may have lost write access to it.

If that fails you can try a reinstall.

-Joan

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 1:11:38 PM
Subject: RE: CouchDB/Erlang Crash on startup.

I renamed hosts to host.old and now it continues to crash, but the error messages are reduced to:

kernel-poll not supported; "K" parameter ignored
[os_mon] win32 supervisor port (win32sysinfo): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_terminated,couch_log,shutdown}"}

Crash dump is being written to: erl_crash.dump...done
Kernel pid terminated (application_controller) ({application_terminated,couch_log,shutdown})

Any other idea? I could try reinstalling CouchDB

Regards,

Gustavo


-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org] 
Sent: Tuesday, April 24, 2018 12:12 PM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

And what happens if you remove/rename that file temporarily?

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 11:48:46 AM
Subject: RE: CouchDB/Erlang Crash on startup.

I get this

kernel-poll not supported; "K" parameter ignored
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",92]}
(...similar line repeats a few hundred times...)
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",1081]}
[os_mon] win32 supervisor port (win32sysinfo): Erlang has closed {"Kernel pid terminated",application_controller,"{application_terminated,couch_log,shutdown}"}

I don't see anything suspicious in the c:/Windows/System32/drivers/etc/hosts file. In fact it has a 2013 modification date.

Regards,

Gustavo

-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org]
Sent: Tuesday, April 24, 2018 11:32 AM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

What happens if you run C:\CouchDB\bin\couchdb.cmd from an Administrator command prompt?

-Joan

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 8:57:07 AM
Subject: CouchDB/Erlang Crash on startup.

Hi all,

Suddenly my CouchDB 2.1.1 (under Windows 7) is not starting up. It seems to be crashing even before it has the opportunity to write anything to the couch.log file. I do get an erl_crash.dump file that is constantly being recreated as the service tries to restart. The dump file quite large (about 600k) so I made a gist of it instead of posting directly: 

https://gist.github.com/gdelfino/93694bfa0b1b92caa25a279b8467042e

Any advice?

Regards,

Gustavo Delfino




RE: CouchDB/Erlang Crash on startup.

Posted by Delfino Gustavo <Gu...@zf.com>.
I renamed hosts to host.old and now it continues to crash, but the error messages are reduced to:

kernel-poll not supported; "K" parameter ignored
[os_mon] win32 supervisor port (win32sysinfo): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_terminated,couch_log,shutdown}"}

Crash dump is being written to: erl_crash.dump...done
Kernel pid terminated (application_controller) ({application_terminated,couch_log,shutdown})

Any other idea? I could try reinstalling CouchDB

Regards,

Gustavo


-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org] 
Sent: Tuesday, April 24, 2018 12:12 PM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

And what happens if you remove/rename that file temporarily?

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 11:48:46 AM
Subject: RE: CouchDB/Erlang Crash on startup.

I get this

kernel-poll not supported; "K" parameter ignored
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",92]}
(...similar line repeats a few hundred times...)
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",1081]}
[os_mon] win32 supervisor port (win32sysinfo): Erlang has closed {"Kernel pid terminated",application_controller,"{application_terminated,couch_log,shutdown}"}

I don't see anything suspicious in the c:/Windows/System32/drivers/etc/hosts file. In fact it has a 2013 modification date.

Regards,

Gustavo

-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org]
Sent: Tuesday, April 24, 2018 11:32 AM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

What happens if you run C:\CouchDB\bin\couchdb.cmd from an Administrator command prompt?

-Joan

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 8:57:07 AM
Subject: CouchDB/Erlang Crash on startup.

Hi all,

Suddenly my CouchDB 2.1.1 (under Windows 7) is not starting up. It seems to be crashing even before it has the opportunity to write anything to the couch.log file. I do get an erl_crash.dump file that is constantly being recreated as the service tries to restart. The dump file quite large (about 600k) so I made a gist of it instead of posting directly: 

https://gist.github.com/gdelfino/93694bfa0b1b92caa25a279b8467042e

Any advice?

Regards,

Gustavo Delfino




Re: CouchDB/Erlang Crash on startup.

Posted by Joan Touzet <wo...@apache.org>.
And what happens if you remove/rename that file temporarily?

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 11:48:46 AM
Subject: RE: CouchDB/Erlang Crash on startup.

I get this

kernel-poll not supported; "K" parameter ignored
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",92]}
(...similar line repeats a few hundred times...)
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",1081]}
[os_mon] win32 supervisor port (win32sysinfo): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_terminated,couch_log,shutdown}"}

I don't see anything suspicious in the c:/Windows/System32/drivers/etc/hosts file. In fact it has a 2013 modification date.

Regards,

Gustavo

-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org] 
Sent: Tuesday, April 24, 2018 11:32 AM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

What happens if you run C:\CouchDB\bin\couchdb.cmd from an Administrator command prompt?

-Joan

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 8:57:07 AM
Subject: CouchDB/Erlang Crash on startup.

Hi all,

Suddenly my CouchDB 2.1.1 (under Windows 7) is not starting up. It seems to be crashing even before it has the opportunity to write anything to the couch.log file. I do get an erl_crash.dump file that is constantly being recreated as the service tries to restart. The dump file quite large (about 600k) so I made a gist of it instead of posting directly: 

https://gist.github.com/gdelfino/93694bfa0b1b92caa25a279b8467042e

Any advice?

Regards,

Gustavo Delfino



RE: CouchDB/Erlang Crash on startup.

Posted by Delfino Gustavo <Gu...@zf.com>.
I get this

kernel-poll not supported; "K" parameter ignored
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",92]}
(...similar line repeats a few hundred times...)
{error_logger,{{2018,4,24},{11,42,11}},"inet_parse:~p:~p: erroneous line, SKIPPED~n",["c:/Windows/System32/drivers/etc/hosts",1081]}
[os_mon] win32 supervisor port (win32sysinfo): Erlang has closed
{"Kernel pid terminated",application_controller,"{application_terminated,couch_log,shutdown}"}

I don't see anything suspicious in the c:/Windows/System32/drivers/etc/hosts file. In fact it has a 2013 modification date.

Regards,

Gustavo

-----Original Message-----
From: Joan Touzet [mailto:wohali@apache.org] 
Sent: Tuesday, April 24, 2018 11:32 AM
To: user@couchdb.apache.org
Subject: Re: CouchDB/Erlang Crash on startup.

What happens if you run C:\CouchDB\bin\couchdb.cmd from an Administrator command prompt?

-Joan

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 8:57:07 AM
Subject: CouchDB/Erlang Crash on startup.

Hi all,

Suddenly my CouchDB 2.1.1 (under Windows 7) is not starting up. It seems to be crashing even before it has the opportunity to write anything to the couch.log file. I do get an erl_crash.dump file that is constantly being recreated as the service tries to restart. The dump file quite large (about 600k) so I made a gist of it instead of posting directly: 

https://gist.github.com/gdelfino/93694bfa0b1b92caa25a279b8467042e

Any advice?

Regards,

Gustavo Delfino



Re: CouchDB/Erlang Crash on startup.

Posted by Joan Touzet <wo...@apache.org>.
What happens if you run C:\CouchDB\bin\couchdb.cmd from an Administrator command prompt?

-Joan

----- Original Message -----
From: "Delfino Gustavo" <Gu...@zf.com>
To: user@couchdb.apache.org
Sent: Tuesday, April 24, 2018 8:57:07 AM
Subject: CouchDB/Erlang Crash on startup.

Hi all,

Suddenly my CouchDB 2.1.1 (under Windows 7) is not starting up. It seems to be crashing even before it has the opportunity to write anything to the couch.log file. I do get an erl_crash.dump file that is constantly being recreated as the service tries to restart. The dump file quite large (about 600k) so I made a gist of it instead of posting directly: 

https://gist.github.com/gdelfino/93694bfa0b1b92caa25a279b8467042e

Any advice?

Regards,

Gustavo Delfino