🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
16 messages
16 total messages Started by it Sun, 03 Aug 2003 14:17
Parse Error
#66386
Author: it
Date: Sun, 03 Aug 2003 14:17
17 lines
1236 bytes
Every hour, in the /var/log/news/news.err file I see this entry.

<rnews: /etc/news/inn.conf:20: parse error: saw string, expecting
semicolon or newline>

Can anyone tell me what it means?

Thank you.

Also, while I have you here.   

Is it possible to set up INN2 and NNTPCache to run on the same
machine?

Thank you.

Re: Parse Error
#66382
Author: Russ Allbery
Date: Sun, 03 Aug 2003 17:58
16 lines
1603 bytes
it <it@me.com> writes:

> Every hour, in the /var/log/news/news.err file I see this entry.

> <rnews: /etc/news/inn.conf:20: parse error: saw string, expecting
> semicolon or newline>

> Can anyone tell me what it means?

It means you have a syntax error on line 20 of your inn.conf file.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Parse Error
#66381
Author: it
Date: Sun, 03 Aug 2003 18:11
27 lines
1563 bytes
On Sun, 03 Aug 2003 10:58:18 -0700, Russ Allbery <rra@stanford.edu>
wrote:

>it <it@me.com> writes:
>
>> Every hour, in the /var/log/news/news.err file I see this entry.
>
>> <rnews: /etc/news/inn.conf:20: parse error: saw string, expecting
>> semicolon or newline>
>
>> Can anyone tell me what it means?
>
>It means you have a syntax error on line 20 of your inn.conf file.


That's what I thought as well...

But here it is:

mta:                    /usr/sbin/sendmail -oi -oem %s

I have looked at it 6 ways from sunday..  And I can't see the error...




Re: Parse Error
#66383
Author: Russ Allbery
Date: Sun, 03 Aug 2003 18:22
19 lines
1529 bytes
it <it@me.com> writes:

> That's what I thought as well...

> But here it is:

> mta:                    /usr/sbin/sendmail -oi -oem %s

You need to enclose values that contain spaces in double quotes.  So this
should be:

mta:   "/usr/sbin/sendmail -oi -oem %s"

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Parse Error
#66384
Author: it
Date: Sun, 03 Aug 2003 18:44
23 lines
1780 bytes
On Sun, 03 Aug 2003 10:58:18 -0700, Russ Allbery <rra@stanford.edu>
wrote:

>it <it@me.com> writes:
>
>> Every hour, in the /var/log/news/news.err file I see this entry.
>
>> <rnews: /etc/news/inn.conf:20: parse error: saw string, expecting
>> semicolon or newline>
>
>> Can anyone tell me what it means?
>
>It means you have a syntax error on line 20 of your inn.conf file.


Yesterday I was upgrading my Debian Box and inadvertently tried to
update INN to 2.4.x.  This failed.  However many files were installed.
I think REMOVED INN2 and re-installed 2.3.x which went back in fine.
I saved /etc/news dir so all my conf files were not affected.  But I
am wondering if a binary file (rnews??) or something was replaced and
not switched back upon re-install of 2.3.x

Re: Parse Error
#66385
Author: it
Date: Sun, 03 Aug 2003 18:54
24 lines
1623 bytes
On Sun, 03 Aug 2003 11:22:47 -0700, Russ Allbery <rra@stanford.edu>
wrote:

>it <it@me.com> writes:
>
>> That's what I thought as well...
>
>> But here it is:
>
>> mta:                    /usr/sbin/sendmail -oi -oem %s
>
>You need to enclose values that contain spaces in double quotes.  So this
>should be:
>
>mta:   "/usr/sbin/sendmail -oi -oem %s"


Thank you ever so much. Russ.

When I made the change you suggested and I shut down and then started
INN2 again.  I got this:

/usr/lib/news/bin/rc.news: line 1: -oi: command not found
Re: Parse Error
#66387
Author: Russ Allbery
Date: Sun, 03 Aug 2003 19:15
15 lines
1799 bytes
it <it@me.com> writes:

> When I made the change you suggested and I shut down and then started
> INN2 again.  I got this:

> /usr/lib/news/bin/rc.news: line 1: -oi: command not found

I think something is more seriously broken.  It sounds like you're mixing
bits and pieces of INN 2.3 and INN 2.4.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Parse Error
#66388
Author: it
Date: Sun, 03 Aug 2003 19:50
20 lines
1732 bytes
On Sun, 03 Aug 2003 12:15:12 -0700, Russ Allbery <rra@stanford.edu>
wrote:

>it <it@me.com> writes:
>
>> When I made the change you suggested and I shut down and then started
>> INN2 again.  I got this:
>
>> /usr/lib/news/bin/rc.news: line 1: -oi: command not found
>
>I think something is more seriously broken.  It sounds like you're mixing
>bits and pieces of INN 2.3 and INN 2.4.


That's what I was afraid of...  :^(

OK  I guess the best thing would be to remove everything, check to
insure that all is removed and then re-install 2.3.x

Re: Parse Error
#66394
Author: pbs
Date: Mon, 04 Aug 2003 09:17
39 lines
2705 bytes
it wrote:
> On Sun, 03 Aug 2003 11:22:47 -0700, Russ Allbery <rra@stanford.edu>
> wrote:
> 
> 
>>it <it@me.com> writes:
>>
>>
>>>That's what I thought as well...
>>
>>>But here it is:
>>
>>>mta:                    /usr/sbin/sendmail -oi -oem %s
>>
>>You need to enclose values that contain spaces in double quotes.  So this
>>should be:
>>
>>mta:   "/usr/sbin/sendmail -oi -oem %s"

I am runing inn-2.3.2-5
My man -S 5 inn.conf says:
    [snip]
    <name>: <value>

        (Any amount of whitespace can be put after the colon and
        is optional.)  Everything after the colon and optional
        whitespace up to the end of the line is taken as the
        value.  Multi-word values should not be put in quotes; if
        they are, the quotes will be taken as part of the value,
        not as delimiters
    [snip]

The line 20 in my file is mat:etc...  is *without* quotes.
The first line of the file is:
##  $Id: inn.conf.in,v 1.41.2.1 2000/07/17 06:46:17 rra Exp $
All the others down to line 20 are either "# lines" or blank.
it@me.com are lines 1-19 in you file naything but comments or blank?

Re: Parse Error
#66396
Author: pbs
Date: Mon, 04 Aug 2003 09:32
39 lines
2539 bytes
Russ Allbery wrote:
> it <it@me.com> writes:
> 
> 
>>That's what I thought as well...
> 
> 
>>But here it is:
> 
> 
>>mta:                    /usr/sbin/sendmail -oi -oem %s
> 
> 
> You need to enclose values that contain spaces in double quotes.  So this
> should be:
> 
> mta:   "/usr/sbin/sendmail -oi -oem %s"
> 

I am runing inn-2.3.2-5
My man -S 5 inn.conf says:
    [snip]
    <name>: <value>

        (Any amount of whitespace can be put after the colon and
        is optional.)  Everything after the colon and optional
        whitespace up to the end of the line is taken as the
        value.  Multi-word values should not be put in quotes; if
        they are, the quotes will be taken as part of the value,
        not as delimiters
    [snip]

The line 20 in my file is mat: etc...  ,is *without* quotes.
The first line of the file is:
    ##  $Id: inn.conf.in,v 1.41.2.1 2000/07/17 06:46:17 rra Exp $
All the others down to line 20 are either "# lines" or blank.
it@me.com are lines 1-19 in you file anything but comments or blank?

Re: Parse Error
#66395
Author: pbs
Date: Mon, 04 Aug 2003 09:37
38 lines
2541 bytes
Russ Allbery wrote:
> it <it@me.com> writes:
> 
> 
>>That's what I thought as well...
> 
> 
>>But here it is:
> 
> 
>>mta:                    /usr/sbin/sendmail -oi -oem %s
> 
> 
> You need to enclose values that contain spaces in double quotes.  So this
> should be:
> 
> mta:   "/usr/sbin/sendmail -oi -oem %s"

I am runing inn-2.3.2-5
My man -S 5 inn.conf says:
    [snip]
    <name>: <value>

        (Any amount of whitespace can be put after the colon and
        is optional.)  Everything after the colon and optional
        whitespace up to the end of the line is taken as the
        value.  Multi-word values should not be put in quotes; if
        they are, the quotes will be taken as part of the value,
        not as delimiters
    [snip]

The line 20 in my file is mat: etc...  ,is *without* quotes.
The first line of the file is:
    ##  $Id: inn.conf.in,v 1.41.2.1 2000/07/17 06:46:17 rra Exp $
All the others down to line 20 are either "# lines" or blank.
it@me.com are lines 1-19 in you file anything but comments or blank?

Re: Parse Error
#66401
Author: Russ Allbery
Date: Mon, 04 Aug 2003 17:37
18 lines
1958 bytes
pbs <pnews@lomarline.freeserve.co.uk> writes:

>>> You need to enclose values that contain spaces in double quotes.  So
>>> this should be:
>>> 
>>> mta:   "/usr/sbin/sendmail -oi -oem %s"

> I am runing inn-2.3.2-5

This was a change between INN 2.3.x and INN 2.4.0.  It shouldn't be quoted
in INN 2.3.x and should be in INN 2.4.0.  innupgrade (run as part of make
update) will take care of fixing older inn.conf files for you.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Parse Error
#66403
Author: it
Date: Mon, 04 Aug 2003 17:58
23 lines
1934 bytes
On Mon, 04 Aug 2003 10:37:56 -0700, Russ Allbery <rra@stanford.edu>
wrote:

>pbs <pnews@lomarline.freeserve.co.uk> writes:
>
>>>> You need to enclose values that contain spaces in double quotes.  So
>>>> this should be:
>>>> 
>>>> mta:   "/usr/sbin/sendmail -oi -oem %s"
>
>> I am runing inn-2.3.2-5
>
>This was a change between INN 2.3.x and INN 2.4.0.  It shouldn't be quoted
>in INN 2.3.x and should be in INN 2.4.0.  innupgrade (run as part of make
>update) will take care of fixing older inn.conf files for you.


What would be the best way to fix this bastardized version that I have
created?  I have tried an APT-GET REMOVE then INSTALL with no luck. 

I still get the Parse Error and the ^M problem with my STATS.

Re: Parse Error
#66406
Author: it
Date: Mon, 04 Aug 2003 18:40
87 lines
3293 bytes
On Mon, 04 Aug 2003 21:37:17 +1200, pbs
<pnews@lomarline.freeserve.co.uk> wrote:

>Russ Allbery wrote:
>> it <it@me.com> writes:
>> 
>> 
>>>That's what I thought as well...
>> 
>> 
>>>But here it is:
>> 
>> 
>>>mta:                    /usr/sbin/sendmail -oi -oem %s
>> 
>> 
>> You need to enclose values that contain spaces in double quotes.  So this
>> should be:
>> 
>> mta:   "/usr/sbin/sendmail -oi -oem %s"
>
>I am runing inn-2.3.2-5
>My man -S 5 inn.conf says:
>    [snip]
>    <name>: <value>
>
>        (Any amount of whitespace can be put after the colon and
>        is optional.)  Everything after the colon and optional
>        whitespace up to the end of the line is taken as the
>        value.  Multi-word values should not be put in quotes; if
>        they are, the quotes will be taken as part of the value,
>        not as delimiters
>    [snip]
>
>The line 20 in my file is mat: etc...  ,is *without* quotes.
>The first line of the file is:
>    ##  $Id: inn.conf.in,v 1.41.2.1 2000/07/17 06:46:17 rra Exp $
>All the others down to line 20 are either "# lines" or blank.
>it@me.com are lines 1-19 in you file anything but comments or blank?
>


Here are the first 20 lines of my inn.conf.  Each # or ## is a single
line.  Agent really screws up the formatting.



##  $Id: inn.conf.in,v 1.41.2.1 2000/07/17 06:46:17 rra Exp $

##

##  inn.conf -- INN configuration data

##

##  Format:

##      <parameter>:<whitespace><value>

##

##  Blank values are allowed for certain parameters.

##

##  See the inn.conf(5) man page for a full description of each of
these

##  options.  This sample file is divided into two sections; first,
there

##  are the parameters that must be set (or should be set in nearly
all

##  cases), and then all parameters are given with their defaults for

##  reference in the same order and with the same organization as the

##  inn.conf(5) documentation.

# The following parameters are most likely to need setting, although
the

# defaults generated by configure may be reasonable.

mta:                    /usr/sbin/sendmail -oi -oem %s
Re: Parse Error
#66409
Author: pbs
Date: Tue, 05 Aug 2003 01:16
54 lines
3938 bytes
it wrote:
> On Mon, 04 Aug 2003 10:37:56 -0700, Russ Allbery <rra@stanford.edu>
> wrote:
> 
> 
>>pbs <pnews@lomarline.freeserve.co.uk> writes:
>>
>>
>>>>>You need to enclose values that contain spaces in double quotes.  So
>>>>>this should be:
>>>>>
>>>>>mta:   "/usr/sbin/sendmail -oi -oem %s"
>>
>>>I am runing inn-2.3.2-5
>>
>>This was a change between INN 2.3.x and INN 2.4.0.  It shouldn't be quoted
>>in INN 2.3.x and should be in INN 2.4.0.  innupgrade (run as part of make
>>update) will take care of fixing older inn.conf files for you.
> 
> 
> What would be the best way to fix this bastardized version that I have
> created?  I have tried an APT-GET REMOVE then INSTALL with no luck. 

I looked at your other posting on this. I cut and pasted the lines you
posted from your inn.conf. It is identical in the first 20 lines to
mine which means that it is an inn.conf 2.3 version.

This suggests that even if you fix line 20 the rest of the file will
be wrong.

Presumably the "correct" inn.conf for 2.4 will have a different
version number embbeded in the Id line from the 2.3 one of  "1.41.2.1"

Denis Healy (a retired British politician) one said:
"If you are in a hole stop digging".

As you seem to have a problem with the upgrade in at least one
file, I think you should remove the application completly and start
again. If you were an expert like Russ Allbery then you would
be able to fix it. But if like me you do not have that much
experiance of inn it is easier to start from scratch because all the
howtos etc are built on that assumption. In the words of the Irish
country man when asked how to get to Dublin from the other side of
the country: "If I was going there, I wouldn't start from here".

You might like to keep old copies of the files you have changed as
they will hold details you will need for a new installation.
The most often changed for a specific leaf site are: inn.conf,
newsfeeds, readers.conf, storage.conf.

"ls -ltr" will give you a listing of all the files with the most
recent at the bottom. That way you can see which the files you have
changed.
Re: Parse Error
#66410
Author: it
Date: Tue, 05 Aug 2003 08:06
74 lines
4092 bytes
On Tue, 05 Aug 2003 13:16:06 +1200, pbs
<pnews@lomarline.freeserve.co.uk> wrote:

>it wrote:
>> On Mon, 04 Aug 2003 10:37:56 -0700, Russ Allbery <rra@stanford.edu>
>> wrote:
>> 
>> 
>>>pbs <pnews@lomarline.freeserve.co.uk> writes:
>>>
>>>
>>>>>>You need to enclose values that contain spaces in double quotes.  So
>>>>>>this should be:
>>>>>>
>>>>>>mta:   "/usr/sbin/sendmail -oi -oem %s"
>>>
>>>>I am runing inn-2.3.2-5
>>>
>>>This was a change between INN 2.3.x and INN 2.4.0.  It shouldn't be quoted
>>>in INN 2.3.x and should be in INN 2.4.0.  innupgrade (run as part of make
>>>update) will take care of fixing older inn.conf files for you.
>> 
>> 
>> What would be the best way to fix this bastardized version that I have
>> created?  I have tried an APT-GET REMOVE then INSTALL with no luck. 
>
>I looked at your other posting on this. I cut and pasted the lines you
>posted from your inn.conf. It is identical in the first 20 lines to
>mine which means that it is an inn.conf 2.3 version.
>
>This suggests that even if you fix line 20 the rest of the file will
>be wrong.
>
>Presumably the "correct" inn.conf for 2.4 will have a different
>version number embbeded in the Id line from the 2.3 one of  "1.41.2.1"
>
>Denis Healy (a retired British politician) one said:
>"If you are in a hole stop digging".
>
>As you seem to have a problem with the upgrade in at least one
>file, I think you should remove the application completly and start
>again. If you were an expert like Russ Allbery then you would
>be able to fix it. But if like me you do not have that much
>experiance of inn it is easier to start from scratch because all the
>howtos etc are built on that assumption. In the words of the Irish
>country man when asked how to get to Dublin from the other side of
>the country: "If I was going there, I wouldn't start from here".
>
>You might like to keep old copies of the files you have changed as
>they will hold details you will need for a new installation.
>The most often changed for a specific leaf site are: inn.conf,
>newsfeeds, readers.conf, storage.conf.
>
>"ls -ltr" will give you a listing of all the files with the most
>recent at the bottom. That way you can see which the files you have
>changed.


Thank you very much for the info..

Many thanks to Russ as well.

What I did was I restored a back-up of my LINUX box that had INN 2.3x
and copied over the backed up /usr/lib/news to the bastardized setup.
Now it's working fine.  The rnews file was the one that was still
messed up.

But I still have that ^M issue.  I think that if I install NNTPCache
as a gateway to my INN, that will fix the problem.

If you have any hints on doing that, that would be awesome.

In any case, thanx to you both once again.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads