Code: Select all
ERROR:dbus.proxies:Introspect error on :1.68:/org/fedoraproject/FirewallD1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Commenting out the section of the script that uses firewall-cmd allows the script to run, but I don't like that it's not checking to make sure the rule is in place, in case somehow the rule got removed (accidentally or maliciously).
I initially thought the problem was that the script, and thus firewall-cmd, wasn't being run as root, however when it freezes, the processes are still there, and I can see that they are all run as root.
Is there something I can change that will allow firewall-cmd to function when called from a cron job? Does it have something to do with either the permissions of the script or dbus security policy? I can't seem to find any other references to this problem.
Thanks,
Jeff