Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-05-2005, 02:17 PM   #1
MidasKing
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 108
Default [Fixed] First tests and some (many) bugs in ioB2

First tests and some (many) Bugs (perhaps)...

Well, I installed ioB2-release 1 (until yesterday, still using the v20 ) and, after following all instalation process, FAQ, Fixes, etc., I am finding some problems... somebody I could help me?

Using: ioFTPD 5-8-5r
ioBanana version: 2 (release 1) - with no ioAutonuke and no trial/quotas
ioA Version: 2.0.5

I tested some commands with weird results:

1)SITE UPDATE

Dont update sorted MP3 and IMDB symlinks

2)SITE UPDATELOG x:/path/to/dupe.log (SITE UPDATE c:/ioftpd/logs/dupe)

Don't convert old dupe.log file (search.log, created by ioA)

3) SITE REQUEST <release> -> Ok
!REQUEST <release> -> NOT work
SITE REQUEST -> list de requests - OK
!REQUESTS -> show "There'no request at the moment"

4) SITE APPROVE <release>
It functions if new releases not started. With upload have started not work.

5) !latests <count> <section>

<count> and <section> not make difference, or either, the result is the same, list 10 new releases of all the sections.

5) SITE STATS

Show only stats referent section 0...NOT all stats. I have two sections. It's will be changed???

6) !wkup, !mnup, !alup, !wkdn, !mndn, !aldn

nothing work, for me only?... perhaps!!!

7) SITE RESCAN

Not undupe .missing files

8) SITE RULES <section> and !section

Waiting new formatting for rules.cfg

Well... it's all... Any help???

PS.: Sorry for my mad english!!!
.
MidasKing is offline   Reply With Quote
Old 10-05-2005, 02:56 PM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

1) SITE UPDATE only checks the directories mentionned in $sort(update,general). Also I see that you don't run ioAUTONUKE... a few of its settings are used for the symlinks updater though: $anuke(user) and $anuke(mtab). They should point to a real user and a real vfs file.

2) SITE UPDATELOG won't work if the directory specified for $dupe(dupelogs) doesn't exist. The dupe engine won't either in such case.
Another thing.. the parameter of this command is the path to the old dupe.log file (not the new directory).

3) !request whatever needs to know your uid and gid. This is done using the $ioBinfo(ids,handle). For example, set ioBinfo(ids,Harm) "0 0" tells the bot that the user with the handle Harm has the uid 0 and gid 0 on the server.
The handle is the name the bot uses internally to designate you. The bot has to know who you are (a handle corresponds to one or more irc hostmasks) and you also have to be a trusted user.
Regarding !requests, my guess is that the sitebot can't use the SITE REQUEST command.

4) That's interesting. How long ago was the directory created ? SITE APPROVE uses ioFTPD.log to find the real path of the directory.

5) That's indeed a mistake in the help message of the bot. !latests doesn't take any parameter atm.

6) SITE STATS is an internal ioFTPD command. It has never been able to display the stats for several sections at a time.
SITE BSTATS but its output isn't user-friendly. It's not very hard to change that so if it's not going to be changed in ioFTPD 1.0, it'll be in the next release of ioBanana (waiting for confirmation from the devs though).

7) It might be the same problem as with !requests.. The bot needs the flag 1 to be able to do its job correctly.

8) Yeah, I know I'm late for this and I apologize. I'm working in the UK at the moment and I don't have much time to fully document it.

Hope it helps a bit.
Harm is offline   Reply With Quote
Old 10-05-2005, 03:10 PM   #3
zykes
Junior Member
ioFTPD Foundation User
 
Join Date: May 2005
Posts: 26
Default

I can agree to the !latests thing, if i go !latests 5 APPS, then it lists all the latests instead of the 5 latests in "APPS".

The same thing goes for !approve. It doesn't work here either.
zykes is offline   Reply With Quote
Old 10-05-2005, 04:19 PM   #4
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

zykes: Could you actually read the whole thread before replying. I've already explained the !latests issue.

Regarding your !approve problem.. is the bot allowed to issue the SITE APPROVE command ? are you a trusted user (which means your irchost matches one of the trusted hostmasks) ? are you using the command in a defined channel ?
Harm is offline   Reply With Quote
Old 10-05-2005, 04:26 PM   #5
zykes
Junior Member
ioFTPD Foundation User
 
Join Date: May 2005
Posts: 26
Default

ident@*.bb.online.no os yes
zykes is offline   Reply With Quote
Old 10-05-2005, 07:52 PM   #6
MidasKing
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 108
Default

Thanks, Harm, by the fast answer, but...

Quote:
Originally Posted by Harm
1) SITE UPDATE only checks the directories mentionned in $sort(update,general). Also I see that you don't run ioAUTONUKE... a few of its settings are used for the symlinks updater though: $anuke(user) and $anuke(mtab). They should point to a real user and a real vfs file.
I placed the variable user, group and mtab and, then, as reply to command SITE UPDATE the system started to only verify Drive C: e did not make update none.
My settings are:
]###; Default section (do not remove)
set sort(movies,genre,DEFAULT) "D:/FTP/DiVX-1/_Sorted/Genre"
set sort(movies,year,DEFAULT) "D:/FTP/DiVX-1/_Sorted]/Year"
set sort(movies,rating,DEFAULT) "D:/FTP/DiVX-1/_Sorted/Rating"

###; Mp3 by artist, year and genre
set sort(mp3,artist) "H:/FTP/Mp3z/_Sorted/Artist"
set sort(mp3,year) "H:/FTP/Mp3z/_Sorted/Year"
set sort(mp3,genre) "H:/FTP/Mp3z/_Sorted/Genre"
###; Paths to clean
set sort(paths) "D:/FTP/DiVX-1/_Sorted H:/FTP/Mp3z/_Sorted"
###; Paths to update mp3 and movie symlinks
set sort(update,general) "D:/Ftp/DiVX-1 F:/Ftp/DiVX-2 K:/Ftp/DiVX-3 I:/Ftp/DiVX-4/Moviez_BR I:/Ftp/DiVX-4/Moviez_Infantis I:/Ftp/DiVX-4/Moviez_Shows H:/Ftp/Mp3z"


It NOT checked Drives D:, F:,H:, I: and K:, then, he not find nothing to update.

OBS.: When upload a new release, the system creates symlinks correcly.

Quote:
Originally Posted by Harm
2) SITE UPDATELOG won't work if the directory specified for $dupe(dupelogs) doesn't exist. The dupe engine won't either in such case.
Another thing.. the parameter of this command is the path to the old dupe.log file (not the new directory).
The directory specified for $dupe exist and I corrected the command pointing to the old dupelog (seach.log).
But, the format of the search.log (created by ioA) is
127334743562931250|/Appz/Any.release.uploaded.by.any.guy-GROUP
127334743562931500|/DiVX-1/Other.amazing.movie-GROUP

Then, he created ALL symlinks in a same local, called "1" and he deleted the old search.log (this not cause problemas for the SITE SEARCH *string*???)

OBS.: When upload a new release, the system creates the new log correcly.

Quote:
Originally Posted by Harm
3) !request whatever needs to know your uid and gid. This is done using the $ioBinfo(ids,handle). For example, set ioBinfo(ids,Harm) "0 0" tells the bot that the user with the handle Harm has the uid 0 and gid 0 on the server.
The handle is the name the bot uses internally to designate you. The bot has to know who you are (a handle corresponds to one or more irc hostmasks) and you also have to be a trusted user.
I think this settings are correct: I use my handle (MidasKing), same in admins, my UID and GID. The problem is the reply of bot :
|XL|> Current requests:
|XL|> There's no request at the moment

and exists requests hanging (The command SITE REQUESTS show it)

Quote:
Originally Posted by Harm
4) That's interesting. How long ago was the directory created ? SITE APPROVE uses ioFTPD.log to find the real path of the directory.
I go to make more tests...

Quote:
Originally Posted by Harm
5) That's indeed a mistake in the help message of the bot. !latests doesn't take any parameter atm.
Sorry.... My mistake...

Quote:
Originally Posted by Harm
6) SITE STATS is an internal ioFTPD command. It has never been able to display the stats for several sections at a time.
SITE BSTATS but its output isn't user-friendly. It's not very hard to change that so if it's not going to be changed in ioFTPD 1.0, it'll be in the next release of ioBanana (waiting for confirmation from the devs though).
Then, it is possible that in a next version this is contemplated? That is very important for me (for others also, of course!!!).

Quote:
Originally Posted by Harm
7) It might be the same problem as with !requests.. The bot needs the flag 1 to be able to do its job correctly.
Hummm... I think that not. My bot have flag=1M and the command SITE RESCAN is not a bot command, right???


Thanks again, a gread hug and congratulations for the new work...
MidasKing is offline   Reply With Quote
Old 10-05-2005, 08:03 PM   #7
MidasKing
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 108
Default

Complementing...

The file Current_dirs.log and current_dirs.log_tmp exists and they are empty...

This is correct???
MidasKing is offline   Reply With Quote
Old 10-06-2005, 02:10 PM   #8
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

First of all, I made a mistake in my first reply. The whole paragraph 7 was also related to the !wkup, !wkdn, !whateverstat problem... and this made me skip the SITE RESCAN thing.
For SITE RESCAN, it's not unduping the .missing files because there's no need for it. ioB2 release 1 doesn't do file dupechecking.
Case 7 closed.

1) Let's have a look to the sample configuration file.
Code:
###; Paths to update mp3 and movie symlinks
set sort(update,general) "/REQUESTS"
This variable is a list of virtual paths to check.
Case 1 closed.

2) The old dupe.log is supposed to be your former ioBanana dupelog, not ioA's searchlog. It deletes the file because the old dupelog shouldn't stay (it'll no longer be used).
Case 2 closed.

3) It's your handle, but does the bot know that you (on irc) and this handle are the same person. If you're using telnet to chat the bot (which is highly insecure), it's probably not. Add your irchost to your account on the bot using the .+host MidasKing MidasKing!midas@your.cool.host.name command.

ioBanana expects the format of the requestfile to be as follow:
Code:
Request_Line = " [%##] [%-10user] -> %request"
4) Please tell me as soon as you have the results of these new tests.

5) Case 5 closed.

6) As I've written, it has always been like this before. And (as I've written again), it'll make it to the next release if it's not integrated into ioFTPD itself.
Case 6 closed.
Harm is offline   Reply With Quote
Old 10-06-2005, 06:59 PM   #9
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by Harm
6) SITE STATS is an internal ioFTPD command. It has never been able to display the stats for several sections at a time.
SITE BSTATS but its output isn't user-friendly. It's not very hard to change that so if it's not going to be changed in ioFTPD 1.0, it'll be in the next release of ioBanana (waiting for confirmation from the devs though).
many appologies harm, i totally missed this yesterday. if SITE BSTATS isn't that user friendly, i'm inclined to change it, but i can't confirm what it will change to just yet. i know that doesn't help all that much, except to confirm that SITE BSTATS might indeed change.
_panic_ is offline   Reply With Quote
Old 10-07-2005, 02:49 PM   #10
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Actually, SITE BSTATS is an ioBanana site command. If you could change the SITE STATS command so it supports multiple sections at a time, I'm sure the users would be happy.
Harm is offline   Reply With Quote
Old 10-07-2005, 05:06 PM   #11
MidasKing
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 108
Default

Case 1 closed. definitively

Quote:
Originally Posted by Harm
2) The old dupe.log is supposed to be your former ioBanana dupelog, not ioA's searchlog. It deletes the file because the old dupelog shouldn't stay (it'll no longer be used).
Then, how to make to create new ioB2 dupelog? It's possible to adapt the code to form new dupelog from the existing physical base? Or we must look "alternative" solutions, like editing search.log to use site updatelog with no problems?

Case 2 closed. and reopen??

Quote:
Originally Posted by Harm
3) It's your handle, but does the bot know that you (on irc) and this handle are the same person. If you're using telnet to chat the bot (which is highly insecure), it's probably not. Add your irchost to your account on the bot using the .+host MidasKing MidasKing!midas@your.cool.host.name command.
I found the source of the problem: Request_Line = " [%##] [%-10user] -> %request" (in ioA), had a space less.

Case 3 definitively closed.
Quote:
Originally Posted by Harm
4) Please tell me as soon as you have the results of these new tests.
Well, SITE APPROVE <release> and !APPROVE, after some tests and verification of the configurations, NOT function...

Case 4 still open.

Case 5 closed
About case 5: the text in !help <|XL|> !latests [count] [section] : shows the last [count] releases uploaded in [section] (defaults to 10 releases in all sections). to induces in errors. It must be changed to: !latests : shows the last 10 releases uploaded in all sections).

My 10 cents

And... new tests... then new cases hehehe

SITE CLOSE and SITE CLOSESERVICE answer with: command not understood...

Until the moment, is this!!!
MidasKing is offline   Reply With Quote
Old 10-08-2005, 09:54 AM   #12
MidasKing
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 108
Default

Hummmm!!!

ioB2 DON'T force send .SFV first?????????????

If "yes"... I don't understand!!!!!!!!!
MidasKing is offline   Reply With Quote
Old 10-08-2005, 12:08 PM   #13
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Quote:
Originally Posted by MidasKing
Then, how to make to create new ioB2 dupelog? It's possible to adapt the code to form new dupelog from the existing physical base? Or we must look "alternative" solutions, like editing search.log to use site updatelog with no problems?
I think it's possible to use ioA searchirc command to regenerate a dupelog but it's a bit tricky. I'll study ioA searchlog format and implement it for the next release.

Quote:
Originally Posted by MidasKing
Well, SITE APPROVE <release> and !APPROVE, after some tests and verification of the configurations, NOT function...
Ok, I'll do some more tests on my own.

Quote:
Originally Posted by MidasKing
SITE CLOSE and SITE CLOSESERVICE answer with: command not understood...
You have to install ioCLOSE (http://www.inicom.net/pages/en.ioftpd-scripts.php?id=60) which is a separated script.

While I'm at it, I suggest you install ioCOMPARE (http://www.inicom.net/pages/en.ioftp...pts.php?id=128) and ioSTATS (http://www.inicom.net/pages/en.ioftp...ts.php?id=132).

And indeed, it doesn't force sfv first.
Harm is offline   Reply With Quote
Old 10-08-2005, 06:46 PM   #14
MidasKing
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 108
Default

Quote:
Originally Posted by Harm
And indeed, it doesn't force sfv first.
Hummm! This isn't good!!!



Well, Harm, we will be waiting, anxious, ioB2-R2 that, certainly, will be full of new features...

A great hug and good luck!!!
MidasKing is offline   Reply With Quote
Old 10-08-2005, 10:26 PM   #15
MidasKing
Senior Member
ioFTPD Foundation User
 
Join Date: Nov 2003
Posts: 108
Default

Another problem... (maybe a bug?!?!)

ioBanana NOT create symlinks if some of the variables (opening date, screens, etc) will not be available (NA)
MidasKing is offline   Reply With Quote
Reply

Tags
request, rolleyes, site, upload, work

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:28 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)