Don't know if this matters in Lua or not, but Looking at line 97 in sauth.lua, I could see is that it lacks a space after luci.sys.uptime().
08.08.2012, в 6:05, Adam Gensler <[email protected]> написал(а): > Hm...doesn't seem atime related, as the atime value seems to be derived from > luci.sys.uptime. > > Its unclear why the atime value is nil. Looking in /tmp/luci-sessions shows > the files in there. However, the files therein do not contain the atime > value. I believe they should but I haven't spent much time with luci to know > where to look to submit a patch. > > I'll keep digging. > > p.s. luci 8897 works just fine. > > > On 8/7/12 7:41 PM, Adam Gensler wrote: >> Hi all, >> >> I just built a fresh image. I'm unable to log in to luci after >> authenticating, it states: >> >> ***quote** >> /usr/lib/lua/luci/dispatcher.lua:449: Failed to execute function >> dispatcher target for entry '/'. >> The called action terminated with an exception: >> /usr/lib/lua/luci/dispatcher.lua:449: Failed to execute firstchild >> dispatcher target for entry '/admin'. >> The called action terminated with an exception: >> /usr/lib/lua/luci/sauth.lua:97: attempt to perform arithmetic on field >> 'atime' (a nil value) >> stack traceback: >> [C]: in function 'assert' >> /usr/lib/lua/luci/dispatcher.lua:449: in function 'dispatch' >> /usr/lib/lua/luci/dispatcher.lua:195: in function >> </usr/lib/lua/luci/dispatcher.lua:194> >> ***end quote*** >> >> Presumably this is because the file system gets mounted, by default, >> with noatime: >> >> ***quote*** >> root@alix:~# mount >> rootfs on / type rootfs (rw) >> /dev/root on /rom type squashfs (ro,relatime) >> none on /proc type proc (rw,noatime) >> sysfs on /sys type sysfs (rw,noatime) >> tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) >> tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755) >> devpts on /dev/pts type devpts (rw,noatime,mode=600) >> root on /tmp/root type tmpfs (rw,noatime,mode=755) >> overlayfs:/tmp/root on /tmp/root type overlayfs >> (ro,noatime,lowerdir=/,upperdir=/tmp/root) >> debugfs on /sys/kernel/debug type debugfs (rw,relatime) >> /dev/mtdblock1 on /overlay type jffs2 (rw,noatime) >> overlayfs:/overlay on / type overlayfs >> (rw,noatime,lowerdir=/,upperdir=/overlay) >> }}} >> ***end quote*** >> >> This happened both with ext2 and squashfs on an alix 2d13 using the >> newest openwrt trunk, r33035, and the newest luci, 8899. Based on the >> Luci timeline, there was specifically a change made to make the >> authentication tokens work differently in 8899: >> >> http://luci.subsignal.org/trac/changeset/8899 >> >> The failure happens both in IE8 on WindowsXP and Safari 6.0 on OSX 10.8. >> >> Adam
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
