View Full Version : NEWDATE error
Saiph
12-13-2010, 01:17 AM
first time i get this error after 1 week of no errors
nxDebug.log
12-12-2010 00:00:05 - Script : ..\scripts\nxTools\nxUtilities.tcl
12-12-2010 00:00:05 - args : NEWDATE
12-12-2010 00:00:05 - user : can't read "user": no such variable
12-12-2010 00:00:05 - group : can't read "group": no such variable
12-12-2010 00:00:05 - groups : can't read "groups": no such variable
12-12-2010 00:00:05 - flags : can't read "flags": no such variable
12-12-2010 00:00:05 - path : can't read "path": no such variable
12-12-2010 00:00:05 - pwd : can't read "pwd": no such variable
any ideas ?
See if you run it manually via "site newdate" if it works fine...
Scheduler functions don't run under a user account and thus all the normal ioFTPD provided TCL variables aren't defined. nxTools solves this by activating a user account and loading a vfs file to resolve paths via the variables:
set misc(MountUser) "sitebot"
set misc(MountFile) "../etc/admin.vfs"
Change those to a valid user in nxTools.cfg and the problem should go away...
Saiph
12-13-2010, 10:27 AM
See if you run it manually via "site newdate" if it works fine...
Scheduler functions don't run under a user account and thus all the normal ioFTPD provided TCL variables aren't defined. nxTools solves this by activating a user account and loading a vfs file to resolve paths via the variables:
set misc(MountUser) "sitebot"
set misc(MountFile) "../etc/admin.vfs"
Change those to a valid user in nxTools.cfg and the problem should go away...
it works fine, sometimes it announces the newdate 2 times, creating the current and the new day.
irc announce
[12:00 am] <*********> NEWDATE created for /O-DAY/1212
[12:00 am] <*********> NEWDATE created for /O-DAY/1213
Saiph
12-13-2010, 02:54 PM
that worked thanks Yil :)
Saiph
12-22-2010, 07:49 PM
ok i got another question to ask, what would cause the newdate announce 1 day late but create the newdate without announce
example : today is the 22nd the newdate announce it created the 22nd but makes the 23nd without announce when it should be announcing the 23rd
current setting
set newdate(Default) {
{O-Days {New O-Days} {/O-Days/%M%D} {L:/FTPserver/O-Days/%M%D} {c:/ioFTPD/site/Today-O-Days} True 0 0 0 777}
{O-Days {Close O-Days} {/O-Days/%M%D} {L:/FTPserver/O-Days/%M%D} {c:/ioFTPD/site/Yesterday-O-Days} False 1 0 0 755}
The Close 0-Days line should read .. False -1 0 0 755 (as in close yesterday) and not False 1 0 0 755 which is close tomorrow...
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.