Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: users

Problem starting dbmail-timsieved

 

 

DBMail users RSS feed   Index | Next | Previous | View Threaded


marc at electronics-design

Jun 18, 2009, 2:43 AM

Post #1 of 10 (524 views)
Permalink
Problem starting dbmail-timsieved

Hi,

Although I did not change my config file, now dbmail-timsieved does not
start anymore.
Version: 2.2.11
It says:
Jun 18 11:40:57 gamma dbmail-timsieved[10118]: FATAL:[config]
config.c,GetDBParams(+263): wrong value for sqlport in config file
failed failed!


The database is on a non-default port, and I'm using postgres.

Strangely enough dbmail-imapd and dbmail-pop3d and dbmail-smtp start normal.

Any thoughts?

Marc
_______________________________________________
DBmail mailing list
DBmail[at]dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Jun 18, 2009, 3:15 AM

Post #2 of 10 (494 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

Marc Dirix wrote:
> Hi,
>
> Although I did not change my config file, now dbmail-timsieved does not
> start anymore.
> Version: 2.2.11
> It says:
> Jun 18 11:40:57 gamma dbmail-timsieved[10118]: FATAL:[config]
> config.c,GetDBParams(+263): wrong value for sqlport in config file
> failed failed!
>
>
> The database is on a non-default port, and I'm using postgres.
>
> Strangely enough dbmail-imapd and dbmail-pop3d and dbmail-smtp start normal.
>
> Any thoughts?

Increase the log level.


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail[at]dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


marc at electronics-design

Jun 18, 2009, 6:21 AM

Post #3 of 10 (490 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

Hi Paul,

I am a bit out of it, this is a level TRACE_STDERR of 5, is that not the
highest value?

root[at]gamma:/var/src/dbmail# dbmail-timsieved
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+262): server will create [2] children
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+275): children will make max. [100]
connections
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+288): timeout [300] seconds
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+293): no value for TIMEOUT in config file
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+300): login_timeout [60] seconds
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+305): no value for SOCKET in config file
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+308): socket []
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+320): binding to PORT [2000]
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+341): binding to IP [127.0.0.1]
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+348): no value for BACKLOG in config
file. Using default value [16]
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+362): not resolving client IP
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+371): no value for SIEVE_BEFORE_SMTP
in config file
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+376): Disabling SIEVE-before-SMTP
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+388): effective user shall be [dbmail]
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+400): effective group shall be [dbmail]
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+412): will maintain minimum of [2]
spare children in reserve
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+424): will maintain maximum of [4]
spare children in reserve
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: Debug:[serverparent]
serverparent.c,LoadServerConfig(+436): will allow maximum of [10] children
Jun 18 12:39:37 gamma dbmail-timsieved[5934]: FATAL:[config]
config.c,GetDBParams(+263): wrong value for sqlport in config file


Marc


_______________________________________________
DBmail mailing list
DBmail[at]dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Jun 18, 2009, 8:10 AM

Post #4 of 10 (490 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

Marc Dirix wrote:

> Jun 18 12:39:37 gamma dbmail-timsieved[5934]: FATAL:[config]
> config.c,GetDBParams(+263): wrong value for sqlport in config file


This means the value specified for sqlport cannot be parsed into a 'long
long unsigned int'.

Something *must* have changed on your system.

--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail[at]dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


marc at electronics-design

Jun 18, 2009, 9:41 AM

Post #5 of 10 (494 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

Paul J Stevens schreef:
> Marc Dirix wrote:
>
>
>> Jun 18 12:39:37 gamma dbmail-timsieved[5934]: FATAL:[config]
>> config.c,GetDBParams(+263): wrong value for sqlport in config file
>>
>
>
> This means the value specified for sqlport cannot be parsed into a 'long
> long unsigned int'.
>
> Something *must* have changed on your system.
>
>
Additionally,

In dbmail.conf I have:

sqlport = 5434

Regards,

Marc


marc at electronics-design

Jun 18, 2009, 9:41 AM

Post #6 of 10 (491 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

>
> This means the value specified for sqlport cannot be parsed into a 'long
> long unsigned int'.
>
> Something *must* have changed on your system.
>
>
I did do an debian upgrade, and reinstalled dbmail from the nfg server.
(first tried a downgrade to a manual compiled 2.2.10 which introduced
the problem first).

How can my system not know a long long unsigned int?
And is that not an exceptionally large number for a port-number?

Regards,

Marc Dirix


paul at nfg

Jun 18, 2009, 10:18 AM

Post #7 of 10 (490 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

Marc Dirix wrote:
>
>>
>> This means the value specified for sqlport cannot be parsed into a 'long
>> long unsigned int'.
>>
>> Something *must* have changed on your system.
>>
>>
> I did do an debian upgrade, and reinstalled dbmail from the nfg server.
> (first tried a downgrade to a manual compiled 2.2.10 which introduced
> the problem first).

Are you perhaps then starting the wrong daemon, or one looking at the
wrong dbmail.conf?

Try:

strace -o /tmp/trace.txt -ff /usr/sbin/dbmail-timsieved
grep dbmail.conf /tmp/trace.txt

or something similar.


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail[at]dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


marc at electronics-design

Jun 18, 2009, 11:43 AM

Post #8 of 10 (490 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

> Are you perhaps then starting the wrong daemon, or one looking at the
> wrong dbmail.conf?
>
> Try:
>
> strace -o /tmp/trace.txt -ff /usr/sbin/dbmail-timsieved
> grep dbmail.conf /tmp/trace.txt
>
> or something similar.
>
>
>
I already tried that. There is only one daemon in the path.
dbmail-timsieved -V gives 2.2.11
Also the right configfile /etc/dbmail/dbmail.conf

Furthermore, as of now also dbmail-pop3d and dbmail-lmtp are not working
anymore (because I restarted them).

As a short-term sollution I have used rinetd to map the standard
postgresql port to the one I use, and start the daemons without the
sqlport setting which seems to be running ok.

Regards,

Marc


paul at nfg

Jun 18, 2009, 12:42 PM

Post #9 of 10 (490 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

Marc Dirix wrote:

>> strace -o /tmp/trace.txt -ff /usr/sbin/dbmail-timsieved

Please do try to provide the lines from a trace leading up to the exit.
They should be interesting.

--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail[at]dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


marc at electronics-design

Jun 18, 2009, 1:54 PM

Post #10 of 10 (490 views)
Permalink
Re: Problem starting dbmail-timsieved [In reply to]

Attached the trace.txt


I also tried some output tests:

If in config.c I put
printf("%s\n",port_string);
in line 263, it writes "5434" to the command line before the error.

Then second try, line 262, I write
printf("%d\n",strtoul(port_string, NULL, 10));
which also writes "5434" to the command line, so the parsing by strtoul
does not seem to be the problem.

Now, why does errno get filled with some value, while strtoul does the
job as expected?

If I set
errno=0; in line 260 of config.c, dbmail-timesieved starts as expected.

I'm not sure this is the right fix in the right place, as I don't
understand why errno is not redefined in strtoul.

Please confirm this.

Regards,

Marc
Attachments: trace.txt.25501 (23.2 KB)

DBMail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.