Closed hellweiss closed 10 years ago
This is because Unix syslog does not usually run on "unix sockets", ironically enough -- unlike the way it does in Linux.
This particular version is not well opted for Unix because I wrote it on the Linux environment. But the one I am running on SmartOS is. It also includes individual dataset replication. I will push the patch after testing. Meanwhile I will see if I can patch up the loggers.
Implemented and tested on SmartOS. Closing. I assume, should work on other Unixes as well, if not file an issue with full error details.
./bzman -c tank0 Traceback (most recent call last): File "./bzman", line 781, in
main()
File "./bzman", line 755, in main
checksize()
File "./bzman", line 263, in checksize
if not findpools():
File "./bzman", line 198, in findpools
logger('getting pools list')
File "./bzman", line 133, in logger
syslog = logging.handlers.SysLogHandler('/dev/log', 'syslog')
File "/usr/lib/python2.6/logging/handlers.py", line 715, in init
self._connect_unixsocket(address)
File "/usr/lib/python2.6/logging/handlers.py", line 730, in _connect_unixsocket
self.socket.connect(address)
File "", line 1, in connect
socket.error: [Errno 95] Socket operation on non-socket