[Dancer-users] unusual logging error

Matt Williams matt at crowdtilt.com
Thu Nov 3 18:21:43 CET 2011


I'm using ubic to manage by starman daemon and cannot seem to get my app to
log to a file. I am trying to log to /var/log/internal-api.log and have set
the permissions to 777 for troubleshooting purposes.

Manual testing on the command line verifies this odd behavior:
plackup -E production -s Starman --workers 5 -p 5000 -a bin/app.pl

An 'strace -fv' of the above command results in the following snippet:

stat64("/var/log", {st_dev=makedev(252, 0), st_ino=3670214,
st_mode=S_IFDIR|0755, st_nlink=14, st_uid=0, st_gid=0, st_blksize=4096,
st_blocks=8, st_size=4096, st_atime=2011/11/03-09:41:41,
st_mtime=2011/11/03-09:38:12, st_ctime=2011/11/03-09:38:12}) = 0
open("/var/log/internal-api.log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE,
0666) = 5
_llseek(5, 0, [0], SEEK_END)            = 0
ioctl(5, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfdcba68) = -1 ENOTTY
(Inappropriate ioctl for device)
_llseek(5, 0, [0], SEEK_CUR)            = 0

*Note the Inappropriate ioctl for device

Following is my production.yml file.

# only log warning and error messsages
log: 'warning'
# log message to a file in logs/
logger: 'file'
log_path: '/var/log'
log_file: 'internal-api.log'
# don't consider warnings critical
warnings: 0
# hide errors
show_errors: 0
# cache route resolution for maximum performance
route_cache: 1

Any ideas?

Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20111103/a6bf773c/attachment.htm>


More information about the Dancer-users mailing list