🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
18 messages
18 total messages Started by Muttley Sun, 02 Mar 2003 23:16
Help with INN message
#64242
Author: Muttley
Date: Sun, 02 Mar 2003 23:16
14 lines
1083 bytes
Hello,

Please could someone offer me guidance on what the following error
message could be caused by?

/usr/lib/news/bin/nntpsend: line 1: at: No such file or directory

I get this message every time I start or stop INN and also in various
emailed INN reports.

Thank you

Re: Help with INN message
#64236
Author: Russ Allbery
Date: Sun, 02 Mar 2003 23:28
15 lines
1507 bytes
Muttley <Use-Author-Supplied-Address-Header@[127.1]> writes:

> Please could someone offer me guidance on what the following error
> message could be caused by?

> /usr/lib/news/bin/nntpsend: line 1: at: No such file or directory

What does the beginning of /usr/lib/news/bin/nntpsend look like?

-- 
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: Help with INN message
#64240
Author: Muttley
Date: Mon, 03 Mar 2003 00:55
24 lines
1602 bytes
In article <yl8yvxnyac.fsf@windlord.stanford.edu>
Russ Allbery <rra@stanford.edu> wrote:
>
> Muttley <Use-Author-Supplied-Address-Header@[127.1]> writes:
>
> > Please could someone offer me guidance on what the following error
> > message could be caused by?
>
> > /usr/lib/news/bin/nntpsend: line 1: at: No such file or directory
>
> What does the beginning of /usr/lib/news/bin/nntpsend look like?

Thanks for your reply.  The beginning is pasted below:

#! /bin/sh
. /usr/lib/news/lib/innshellvars

The error message isn't unique to nntpsend though, I also get it when
I start or stop INN for example:

Command: service innd stop
/etc/init.d/innd: line 1: at: No such file or directory
Re: Help with INN message
#64243
Author: Russ Allbery
Date: Mon, 03 Mar 2003 01:46
21 lines
1720 bytes
Muttley <Use-Author-Address-Header@[127.1]> writes:

> Thanks for your reply.  The beginning is pasted below:

> #! /bin/sh
> . /usr/lib/news/lib/innshellvars

> The error message isn't unique to nntpsend though, I also get it when
> I start or stop INN for example:

> Command: service innd stop
> /etc/init.d/innd: line 1: at: No such file or directory

Sounds like there's something wrong with /bin/sh on your system.

-- 
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: Help with INN message
#64246
Author: Muttley
Date: Mon, 03 Mar 2003 10:31
31 lines
1903 bytes
In article <yl4r6lmdbv.fsf@windlord.stanford.edu>
Russ Allbery <rra@stanford.edu> wrote:
>
> Muttley <Use-Author-Address-Header@[127.1]> writes:
>
> > Thanks for your reply.  The beginning is pasted below:
>
> > #! /bin/sh
> > . /usr/lib/news/lib/innshellvars
>
> > The error message isn't unique to nntpsend though, I also get it when
> > I start or stop INN for example:
>
> > Command: service innd stop
> > /etc/init.d/innd: line 1: at: No such file or directory
>
> Sounds like there's something wrong with /bin/sh on your system.

I can't help feeling it must be something I'm causing.  I have
installed INN from source to a Solaris platform and also from RPM to
a Red Hat box, and seen the same messages on both platforms.

If it was a problem with bash, then I would expect to see the same
message from every script that uses it, but this doesn't seem to be
the case, I've never got in relation to anything but INN.




Re: Help with INN message
#64248
Author: Russ Allbery
Date: Mon, 03 Mar 2003 17:42
29 lines
2307 bytes
Muttley <Use-Author-Address-Header@[127.1]> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> Muttley <Use-Author-Address-Header@[127.1]> writes:

>>> The error message isn't unique to nntpsend though, I also get it when
>>> I start or stop INN for example:

>>> Command: service innd stop
>>> /etc/init.d/innd: line 1: at: No such file or directory

>> Sounds like there's something wrong with /bin/sh on your system.

> I can't help feeling it must be something I'm causing.  I have installed
> INN from source to a Solaris platform and also from RPM to a Red Hat
> box, and seen the same messages on both platforms.

> If it was a problem with bash, then I would expect to see the same
> message from every script that uses it, but this doesn't seem to be the
> case, I've never got in relation to anything but INN.

Well, you're also getting the error message from /etc/init.d/innd, which
doesn't come with INN.

-- 
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: Help with INN message
#64250
Author: Kai Henningsen
Date: Mon, 03 Mar 2003 18:14
37 lines
2659 bytes
rra@stanford.edu (Russ Allbery)  wrote on 03.03.03 in <ylk7fgs5xh.fsf@windlord.stanford.edu>:

> Muttley <Use-Author-Address-Header@[127.1]> writes:
> > Russ Allbery <rra@stanford.edu> wrote:
> >> Muttley <Use-Author-Address-Header@[127.1]> writes:
>
> >>> The error message isn't unique to nntpsend though, I also get it when
> >>> I start or stop INN for example:
>
> >>> Command: service innd stop
> >>> /etc/init.d/innd: line 1: at: No such file or directory
>
> >> Sounds like there's something wrong with /bin/sh on your system.
>
> > I can't help feeling it must be something I'm causing.  I have installed
> > INN from source to a Solaris platform and also from RPM to a Red Hat
> > box, and seen the same messages on both platforms.
>
> > If it was a problem with bash, then I would expect to see the same
> > message from every script that uses it, but this doesn't seem to be the
> > case, I've never got in relation to anything but INN.
>
> Well, you're also getting the error message from /etc/init.d/innd, which
> doesn't come with INN.

I'd suggest using strace (or whatever the equivalent may be on other  
systems - truss, for example - anything that can trace system calls) on  
one of these things, looking for the exact context of the error message.

But I really suspect something with .bashrc or similar.

Kai
-- 
http://www.westfalen.de/private/khms/
"... by God I *KNOW* what this network is for, and you can't have it."
  - Russ Allbery (rra@stanford.edu)
Re: Help with INN message
#64251
Author: Muttley
Date: Mon, 03 Mar 2003 19:05
47 lines
2575 bytes
In article <ylk7fgs5xh.fsf@windlord.stanford.edu>
Russ Allbery <rra@stanford.edu> wrote:
>
> Muttley <Use-Author-Address-Header@[127.1]> writes:
> > Russ Allbery <rra@stanford.edu> wrote:
> >> Muttley <Use-Author-Address-Header@[127.1]> writes:
>
> >>> The error message isn't unique to nntpsend though, I also get it when
> >>> I start or stop INN for example:
>
> >>> Command: service innd stop
> >>> /etc/init.d/innd: line 1: at: No such file or directory
>
> >> Sounds like there's something wrong with /bin/sh on your system.
>
> > I can't help feeling it must be something I'm causing.  I have installed
> > INN from source to a Solaris platform and also from RPM to a Red Hat
> > box, and seen the same messages on both platforms.
>
> > If it was a problem with bash, then I would expect to see the same
> > message from every script that uses it, but this doesn't seem to be the
> > case, I've never got in relation to anything but INN.
>
> Well, you're also getting the error message from /etc/init.d/innd, which
> doesn't come with INN.

Agree with you, it's not part of INN.  It's very strange though that
the problem seems to be so localised to INN related scripts.  Perhaps
it is something to do with the news account that I have created?
There may be something it lacks access to that other system accounts
dont have a problem with.

Thanks for your patience, I appreciate this isn't strictly an INN
problem.











Re: Help with INN message
#64257
Author: Jeffrey M. Vinocur
Date: Tue, 04 Mar 2003 16:31
17 lines
1569 bytes
In article <200303031031.h23AVipa016923@www.aarg.net>,
Muttley  <Use-Author-Address-Header@[127.1]> wrote:
>
>If it was a problem with bash, then I would expect to see the same
>message from every script that uses it, but this doesn't seem to be
>the case, I've never got in relation to anything but INN.

Yeah, a bit odd.

Can you try chopping out parts of the script to see what the
minimal script that causes the problem is?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Help with INN message
#64261
Author: Muttley
Date: Wed, 05 Mar 2003 01:45
28 lines
1961 bytes
In article <b42kdi$uql$1@puck.litech.org>
jeff@litech.org (Jeffrey M. Vinocur) wrote:
>
> In article <200303031031.h23AVipa016923@www.aarg.net>,
> Muttley  <Use-Author-Address-Header@[127.1]> wrote:
> >
> >If it was a problem with bash, then I would expect to see the same
> >message from every script that uses it, but this doesn't seem to be
> >the case, I've never got in relation to anything but INN.
>
> Yeah, a bit odd.
>
> Can you try chopping out parts of the script to see what the
> minimal script that causes the problem is?

Hi Jeffrey,

I've been trying what you suggested using nntpsend as a guniea-pig.
The line that seems to cause the problem is:
. /usr/lib/news/lib/innshellvars

Of course, that opens up a whole new trail to follow as I assume the
error is related to something in that file.  I will try tomorrow to
eleminate components of innshallvars to see if I can narrow the cause
of the error.

Re: Help with INN message
#64268
Author: Muttley
Date: Wed, 05 Mar 2003 10:19
55 lines
2688 bytes
In article <200303050145.h251jLFS028759@www.aarg.net>
Muttley <Use-Author-Supplied-Address-Header@[127.1]> wrote:
>
>
> In article <b42kdi$uql$1@puck.litech.org>
> jeff@litech.org (Jeffrey M. Vinocur) wrote:
> >
> > In article <200303031031.h23AVipa016923@www.aarg.net>,
> > Muttley  <Use-Author-Address-Header@[127.1]> wrote:
> > >
> > >If it was a problem with bash, then I would expect to see the same
> > >message from every script that uses it, but this doesn't seem to be
> > >the case, I've never got in relation to anything but INN.
> >
> > Yeah, a bit odd.
> >
> > Can you try chopping out parts of the script to see what the
> > minimal script that causes the problem is?
>
> Hi Jeffrey,
>
> I've been trying what you suggested using nntpsend as a guniea-pig.
> The line that seems to cause the problem is:
>  /usr/lib/news/lib/innshellvars
>
> Of course, that opens up a whole new trail to follow as I assume the
> error is related to something in that file.  I will try tomorrow to
> eleminate components of innshallvars to see if I can narrow the cause
> of the error.

Seem to have located the source of the problem, although I'm not
entirely convinced about my "fix" for it.  The line in
/usr/lib/news/lib/innshellvars that seems to cause the problem is:

eval '/usr/lib/news/bin/innconfval -s'

Replacing the single quotes (') with a double quotes (") seems to
resolve it.  Hence, the new line now reads:

eval "/usr/lib/news/bin/innconfval -s"

I tried to find a man page for eval to check the proper syntax, but
there doesn't appear to be one on my system.










Re: Help with INN message
#64269
Author: Muttley
Date: Wed, 05 Mar 2003 11:50
49 lines
3027 bytes
In article <200303051019.h25AJKmH022648@www.aarg.net>
Muttley <Use-Author-Address-Header@[127.1]> wrote:

> > Hi Jeffrey,
> >
> > I've been trying what you suggested using nntpsend as a guniea-pig.
> > The line that seems to cause the problem is:
> >  /usr/lib/news/lib/innshellvars
> >
> > Of course, that opens up a whole new trail to follow as I assume the
> > error is related to something in that file.  I will try tomorrow to
> > eleminate components of innshallvars to see if I can narrow the cause
> > of the error.
>
> Seem to have located the source of the problem, although I'm not
> entirely convinced about my "fix" for it.  The line in
> /usr/lib/news/lib/innshellvars that seems to cause the problem is:
>
> eval '/usr/lib/news/bin/innconfval -s'
>
> Replacing the single quotes (') with a double quotes (") seems to
> resolve it.  Hence, the new line now reads:
>
> eval "/usr/lib/news/bin/innconfval -s"
>
> I tried to find a man page for eval to check the proper syntax, but
> there doesn't appear to be one on my system.

Oops!!  Major bad idea there - everything put back to how it was.
Obviously, there is a significant difference between a ` character
and a ' or " in eval terms.  :)

After some more digging, I'm back to the basic inn.conf parameters;
the root of the problem seems to lie there.  I have resolved the
issue I had, but I broke the golden rule and changed more than one
parameter within inn.conf so I'm not entirely convinced which one was
the root cause.  My primary suspect though is the COMPLAINTS
parameter.

I had configured this to abuse<at>mydomain<dot>com as a means to
avoid UCE by means of scraping.  I have now changed this to
abuse@mydomain.com and that seems to have resolved things.  I had
assumed this parameter was a freeform type, but perhaps that isn't
the case.



Re: Help with INN message
#64272
Author: Muttley
Date: Wed, 05 Mar 2003 13:25
21 lines
2047 bytes
In article <200303051150.h25BoTSM028106@www.aarg.net>
Muttley <Use-Author-Address-Header@[127.1]> wrote:

> I had configured this to abuse<at>mydomain<dot>com as a means to
> avoid UCE by means of scraping.  I have now changed this to
> abuse@mydomain.com and that seems to have resolved things.  I had
> assumed this parameter was a freeform type, but perhaps that isn't
> the case.

Sorry to keep answering myself - bad protocol I know.

Just wanted to confirm that this definately was the problem:  I have
just changed the COMPLAINTS parameter on my Solaris platform and it
immediately resolved the issue without even restarting INN.

I guess it's rare for anyone to try and put an invalid email address
in the field so the problem hasn't manifested previously.  Might be
worth a line in the Installation Guide though to make people aware
that this field requires a correctly formatted entry.
Re: Help with INN message
#64271
Author: Jeffrey M. Vinocur
Date: Wed, 05 Mar 2003 16:44
24 lines
1733 bytes
In article <200303051150.h25BoTSM028106@www.aarg.net>,
Muttley  <Use-Author-Address-Header@[127.1]> wrote:
>
>Oops!!  Major bad idea there - everything put back to how it was.
>Obviously, there is a significant difference between a ` character
>and a ' or " in eval terms.  :)

Indeed.


>I had configured this to abuse<at>mydomain<dot>com 

Ho ho.  Good catch.

Looks like print_string() in lib/innconf.c needs to be more
careful.  Russ, I've lost track of whether this is something
that's going to fall out of your parser changes, or if we should
fix it.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Help with INN message
#64276
Author: Russ Allbery
Date: Wed, 05 Mar 2003 17:58
23 lines
2008 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> Muttley  <Use-Author-Address-Header@[127.1]> wrote:

>> I had configured this to abuse<at>mydomain<dot>com 

> Ho ho.  Good catch.

> Looks like print_string() in lib/innconf.c needs to be more
> careful.  Russ, I've lost track of whether this is something
> that's going to fall out of your parser changes, or if we should
> fix it.

Looks like it's fixed already in 2.4-to-be.  INN 2.3 does this work in
frontends/innconfval.c, which currently only quotes values that contain
spaces.  That's obviously insufficient.  I'll look at making it do the
same thing that INN 2.4 will do.

-- 
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: Help with INN message
#64285
Author: Russ Allbery
Date: Thu, 06 Mar 2003 00:31
45 lines
2721 bytes
Russ Allbery <rra@stanford.edu> writes:

> Looks like it's fixed already in 2.4-to-be.  INN 2.3 does this work in
> frontends/innconfval.c, which currently only quotes values that contain
> spaces.  That's obviously insufficient.  I'll look at making it do the
> same thing that INN 2.4 will do.

Fixed thusly:

--- inn/frontends/innconfval.c	2002/02/16 19:49:27	1.17.2.1
+++ inn/frontends/innconfval.c	2003/03/06 00:30:52
@@ -35,14 +35,22 @@ char *upit(char *v)
 void
 printit(char *v, const char *val)
 {
+    const char *letter;
+
     switch (format) {
 	case 0: printf("%s\n", val); break;
 	case 1:   /* sh */
 	    v = upit(v);
-	    if ((strchr(val, ' ') == NULL) && *val)
-	    	printf("%s=%s; export %s;\n", v, val, v);
-	    else
-	    	printf("%s=\"%s\"; export %s;\n", v, val, v);
+            printf("%s='", v);
+            for (letter = val; letter != NULL && *letter != '\0'; letter++) {
+                if (*letter == '\'')
+                    fputs("'\\''", stdout);
+                else if (*letter == '\\')
+                    fputs("\\\\", stdout);
+                else
+                    fputc(*letter, stdout);
+            }
+            printf("'; export %s;\n", v);
 	    break;
 	case 2:   /* csh */
 	    if ((strchr(val, ' ') == NULL) && *val)

-- 
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: Help with INN message
#64291
Author: Ilariu Raducan
Date: Thu, 06 Mar 2003 17:51
32 lines
2097 bytes
Is there a space between #! and /bin/sh ?
It shouldn't be


"Muttley" <Use-Author-Address-Header@[127.1]> wrote in message
news:200303030055.h230tGDD021942@www.aarg.net...
>
> In article <yl8yvxnyac.fsf@windlord.stanford.edu>
> Russ Allbery <rra@stanford.edu> wrote:
> >
> > Muttley <Use-Author-Supplied-Address-Header@[127.1]> writes:
> >
> > > Please could someone offer me guidance on what the following error
> > > message could be caused by?
> >
> > > /usr/lib/news/bin/nntpsend: line 1: at: No such file or directory
> >
> > What does the beginning of /usr/lib/news/bin/nntpsend look like?
>
> Thanks for your reply.  The beginning is pasted below:
>
> #! /bin/sh
>  /usr/lib/news/lib/innshellvars
>
> The error message isn't unique to nntpsend though, I also get it when
> I start or stop INN for example:
>
> Command: service innd stop
> /etc/init.d/innd: line 1: at: No such file or directory


Re: Help with INN message
#64292
Author: Russ Allbery
Date: Thu, 06 Mar 2003 18:10
15 lines
1624 bytes
Ilariu Raducan <ilariu@yahoo.com> writes:

> Is there a space between #! and /bin/sh ?
> It shouldn't be

Actually, it's (very slightly) more portable to put a space there than it
is to not put a space there, although every system that required the space
has probably been turned off long ago.

-- 
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.
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