🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by BWare Mon, 21 Aug 2000 00:00
bash-2.03# su news -c ./makedbz -i Can't do dbzagain, No such file or directory b
#47996
Author: BWare
Date: Mon, 21 Aug 2000 00:00
31 lines
1473 bytes
Heyaz,


I just installed inn-2.3 on a testmachine (Solaris 2.7), everything went
fine until I tried to create the history files :(

I copied the active files from my current (running) server and created
new cycbuffs...

So I created the history file (as explained in the INSTALL) and ran
makedbz:
#su news -c ./makedbz -i
Can't do dbzagain, No such file or directory

Checked man pages but couldn't find anything on this message...

Where to look now ?
Any hints ?

---

regardz,
BWare

---
I called my parents the other night, but I forgot about the time
difference.
They're still living in the fifties.
		-- Strange de Jim

Re: bash-2.03# su news -c ./makedbz -i Can't do dbzagain, No such file or directory b
#47998
Author: Russ Allbery
Date: Mon, 21 Aug 2000 00:00
21 lines
1305 bytes
BWare <bware@freeler.nl> writes:

> So I created the history file (as explained in the INSTALL) and ran
> makedbz:
> #su news -c ./makedbz -i
> Can't do dbzagain, No such file or directory

The su there implies that you were doing part of that process as root.  Is
the db directory owned by user news?  Become news, cd to the db directory,
and do:

    touch history
    makedbz -i

and then see if you have history.n.dir, history.n.hash, etc.  If so, you
can rename them to remove the .n part.

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

Re: bash-2.03# su news -c ./makedbz -i Can't do dbzagain, No such file or directory b
#48025
Author: Kjetil Torgrim Homme
Date: Tue, 22 Aug 2000 00:00
24 lines
1536 bytes
[bware@freeler.nl]

>   You were right all along... using `su news -c ../bin/makedbz -i`
>   was the cause of my problems... After I just su-ed to news and ran
>   `makedbz -i` the history.n* files appeared.
>   
>   (I guess su -c on Solaris is broken :\ )

No, you just don't understand how su works :-)

All your parameters to su are passed to news' login shell verbatim.
This means you are running the command

sh -c ../bin/makedbz -i

To sh, -i means interactive shell, so it is no syntax error.  You need
to quote the command:

su news -c "../bin/makedbz -i"


Kjetil T.

Re: bash-2.03# su news -c ./makedbz -i Can't do dbzagain, No such file or directory b
#48029
Author: BWare
Date: Tue, 22 Aug 2000 00:00
50 lines
2334 bytes
Russ Allbery wrote:
> 
> BWare <bware@freeler.nl> writes:
> 
> > So I created the history file (as explained in the INSTALL) and ran
> > makedbz:
> > #su news -c ./makedbz -i
> > Can't do dbzagain, No such file or directory
> 
> The su there implies that you were doing part of that process as root.
Not exactly su <user> -c implies that the command is run as the user
news.

> Is the db directory owned by user news?
It is:

drwxr-xr-x   6 news     news        1536 Aug 21 16:43 bin
drwxrwxr-x   3 news     news         512 Aug 21 19:25 db
drwxr-xr-x   3 news     news        1024 Aug 21 16:44 etc
drwxr-xr-x   2 news     news         512 Aug 21 16:43 lib
drwxr-xr-x   3 news     news         512 Aug 21 18:38 log
drwxr-xr-x   6 news     news         512 Aug 21 16:24 man
drwxr-x---   2 news     news         512 Aug 21 19:23 run
drwxr-xr-x   8 news     news         512 Aug 21 16:24 spool
drwxr-xr-x   2 news     news         512 Aug 21 16:24 tmp

> Become news, cd to the db directory,
> and do:
> 
>     touch history
>     makedbz -i
This is what I did.
 
> and then see if you have history.n.dir, history.n.hash, etc.  If so, you
> can rename them to remove the .n part.
The makedbz retuns the above error message.


---

regardz,
BWare

---
I called my parents the other night, but I forgot about the time
difference.
They're still living in the fifties.
		-- Strange de Jim

Re: bash-2.03# su news -c ./makedbz -i Can't do dbzagain, No such file or directory b
#48031
Author: BWare
Date: Tue, 22 Aug 2000 00:00
49 lines
2317 bytes
Russ Allbery wrote:
> 
> BWare <bware@freeler.nl> writes:
> > Russ Allbery wrote:
> 
> >> > Can't do dbzagain, No such file or directory
> 
> >> Become news, cd to the db directory,
> >> and do:
> 
> >>     touch history
> >>     makedbz -i
> 
> > This is what I did.
> 
> Well, something odd is going on, because makedbz can't produce that error
> message unless it's using an existing history.dir file, and it will only
> do that if -i isn't given, at least as far as I can tell.
> 
> Are there any existing old history files in the db directory?  Does this
> work any better if you delete everything in the directory first before
> running makedbz -i?
Nope,  only an active file and the newsgroups file:
-rw-rw-r--   1 news     news     1342362 Aug 21 16:43 active
-rw-rw-r--   1 news     news           0 Aug 21 16:43 active.times
-rw-rw-r--   1 news     news           0 Aug 21 19:18 history
-rw-rw-r--   1 news     news      150178 Aug 21 16:43 newsgroups


Anyways...
You were right all along... using `su news -c ../bin/makedbz -i` was the
cause of my problems... After I just su-ed to news and ran `makedbz -i`
the history.n* files appeared.

Thanks!

(I guess su -c on Solaris is broken :\ )


---

regardz,
BWare

---
Even if you persuade me, you won't persuade me.
		-- Aristophanes

Re: bash-2.03# su news -c ./makedbz -i Can't do dbzagain, No such file or directory b
#48033
Author: Russ Allbery
Date: Tue, 22 Aug 2000 00:00
25 lines
1476 bytes
BWare <bware@freeler.nl> writes:
> Russ Allbery wrote:

>> > Can't do dbzagain, No such file or directory

>> Become news, cd to the db directory,
>> and do:

>>     touch history
>>     makedbz -i

> This is what I did.

Well, something odd is going on, because makedbz can't produce that error
message unless it's using an existing history.dir file, and it will only
do that if -i isn't given, at least as far as I can tell.

Are there any existing old history files in the db directory?  Does this
work any better if you delete everything in the directory first before
running makedbz -i?

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

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