PDA

View Full Version : Files get deleted after upload


Thorrie
05-04-2009, 07:10 PM
I have been trying to get ioFTPD to work. I have ioFTPD v6.9.3 installed with ioNiNJA.Alpha.v0.8.0.4-2009-01-24. All works fine except that when I upload files they get deleted right away. Even sfv files get deleted. I'm sure it's something I did wrong in the config files but I just cant find what. Can someone help me out?

Dir's get created fine but files get deleted right after they are uploaden.

I hope someone can help me out.

grtz

Yil
05-04-2009, 09:21 PM
Look at the OnUploadComplete event in the .ini file. If that event fails because it has an invalid path or if the script generates a runtime error (which often ends up being recorded in logs\SystemError.log) then the file is considered "bad" and deleted...

Thorrie
05-05-2009, 01:11 AM
Thanx, there is something in the log indeed.

In the error log I find
05-05-2009 00:11:11 "..\scripts\ioNiNJA\ioNiNJA.itcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
can't read "ioNJ(load_cfg_startup)": no such variable
while executing
"if { !$ioNJ(load_cfg_startup) } {
if {[catch {source "../scripts/ioNiNJA/ioNiNJA.cfg"} error]} {
iputs $error
return
}

if {[catch {source "../..."
(file "..\scripts\ioNiNJA\ioNiNJA.itcl" line 4)
------------------------------------------------------------------

And lines 4 to 21 of ioNiNJA.itcl are if { !$ioNJ(load_cfg_startup) } {
if {[catch {source "../scripts/ioNiNJA/ioNiNJA.cfg"} error]} {
iputs $error
return
}

if {[catch {source "../scripts/ioNiNJA/themes/$ioNJ(themefile)"} error]} {
iputs $error
return
}
}

if {[regexp -nocase $ioNJ(skipdirs) $pwd]} {
return
}


source ../scripts/ioninja/misc/ninjalib.tcl

Doesn't seem wrong to me... :S

So now I'm stuck again.

razoor
05-05-2009, 05:44 AM
just reinstall ioNiNJA.
You have prolly just made a misstake when installing it.
So install it without changing annything in the script, and then change one option at the time.

and check this option.
# Force sfv to be uploaded first, before accepting any files, files uploaded will be deleted
set ioNJ(force_sfv_first) 0

Probably not whats causing this atm. But you never know.

Yil
05-05-2009, 02:59 PM
Make sure you installed the init.itcl file from ioNinja into the /scripts dir.

Thorrie
05-06-2009, 09:54 AM
Yil ... thank you.. that was the problem.

Works fine now ! :)