Ufw.service is not loaded properly: Exec format error

Thanks for the help.

I think I have managed to fix it… the file was written at: /lib/systemd/system/ufw.service
and the exact same file was also available at: /etc/systemd/system/multi-user.target.wants/ufw.service not sure if they have been symlinked…

The formatting as well as few details were wrong. Corrected them, restarted ufw few time times, rebooted machine and everything seems to be working fine at least as of now.

However, I am now facing another issue w.r.t unable to login to roundcube and getting error message:

504 Gateway Time-out

The server didn’t respond in time.

I am not sure if this new error is related to this ufw issue that I had, so I have opened a new case here - assuming they are 2 different issue with 2 different root cause.

Would appreciate if you can pls have a look and help me out as it is the production server that is taking the hit.

Many Thanks,
Rav