Skip Menu |

This queue is for tickets about the Smolder CPAN distribution.

Report information
The Basics
Id: 49107
Status: resolved
Priority: 0/
Queue: Smolder

People
Owner: Nobody in particular
Requestors: MARKSTOS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.40
Fixed in: (no value)



Subject: log error: "Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/local/lib/perl5/5.8.8/mach/Socket.pm line 373"
I tried Smolder again today after not testing it for a long time. I'm glad to see it's on CPAN now, and has options for a SQLite backend and built-in web server. The first thing I did after it appeared to install successfully was just to run the smolder binary. It appeared to do nothing and then exit, so I had it log to a file: ./smolder --log_file t.log It logs this: Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at /usr/local/lib/perl5/5.8.8/mach/Socket.pm line 373 ## I suspect there's a much more high level diagnostic it could be giving me, essentially that there's some more setup to do before I can try it out.
On Fri Aug 28 17:29:11 2009, MARKSTOS wrote: Show quoted text
> I tried Smolder again today after not testing it for a long time. I'm > glad to see it's on CPAN now, and has options for a SQLite backend and > built-in web server. > > The first thing I did after it appeared to install successfully was just > to run the smolder binary. > > It appeared to do nothing and then exit, so I had it log to a file: > > ./smolder --log_file t.log > > It logs this: > > Bad arg length for Socket::pack_sockaddr_in, length is 0, should be 4 at > /usr/local/lib/perl5/5.8.8/mach/Socket.pm line 373 > > ## > > I suspect there's a much more high level diagnostic it could be giving > me, essentially that there's some more setup to do before I can try it
out. Show quoted text
>
The workaround for this was to edit "Smolder/Conf.pm" and set a valid value for the HostName. I realize the intent to read these values from a smolder.conf, but a sample one is not provided in the distribution, and there is no "README" or "INSTALL" file to get started, and "Smolder::Manual" makes no mention of "smolder.conf"
This is fixed in git master and should be available in 1.41. I tried to make this less possible by first looking at $ENV{HOSTNAME} then $ENV{HOST} and then finally falling back to 'localdomain.localhost' for the default hostname (if none is provided).