CSNM-Carl Posted September 24, 2007 Share Posted September 24, 2007 For some strange reason the Nominet module on our WHMCS has suddenly stopped working. We have been using it for a while now without any problems. Nominet are sending the response back that the emails are not being PGP signed, I've changed the applications@ address in WHMCS to my own and the emails being sent are blank. 1. Nothing has changed on the server 2. We have changed nothing in WHMCS 3. We can successfully create a file in Nominet/tmp folder as 'apache' and subsequently signed it with our key (also as the apache user). I'm at a loss at what it could be...? Any ideas at all? Thanks In Advance. C 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 24, 2007 Share Posted September 24, 2007 I'm at a loss at what it could be...? Any ideas at all? Yep, you've changed something on your server - software or permissions If you're getting blank emails then its failing to sign it, so not creating the .asc file to include in the email. There is a later version of the Nominet module which will include the original unsigned if the signing fails, it might be worth asking Matt for that update. In order to debug your current issue, I'd replace the gpg executable with a shell script which writes out the parameters passed, the user calling it etc, that shoudl provide the clues on whats wrong. 0 Quote Link to comment Share on other sites More sharing options...
CSNM-Carl Posted September 24, 2007 Author Share Posted September 24, 2007 Thanks for the reply, seriously though nothing has changed on the server. I'll ask Matt for the new module and do some further tests. Many Thanks, C 0 Quote Link to comment Share on other sites More sharing options...
CSNM-Carl Posted September 27, 2007 Author Share Posted September 27, 2007 I'm still no further forward with this, I've got the updated module. PHP seems to have the appropriate permissions to use the various PHP functions that are required for signing the email, and gpg itself works + has access to the right key (with the correct password) I agree that something must have changed on the server unless it's some strange bug in WHMCS (could be possible, but seems unlikely). I already know the blank email signifies that the signed email isn't generated properly, what I need to know is why it isn't generating. The lack of an error log detailing this doesn't help either. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 28, 2007 Share Posted September 28, 2007 I already know the blank email signifies that the signed email isn't generated properly, what I need to know is why it isn't generating. If you have the new module, then there is no "blank email" it attaches the unsigned version if the signing fails. i expect its going to be a permissions issue ... 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 Hi, We've started to have problems with this too, I had it all working up until we were doing final tests and it stopped sending the signed emails. Running the test from the command line creates the signed file fine, I have the new module so at least were getting the unsigned copy to manually send for now. 0 Quote Link to comment Share on other sites More sharing options...
CSNM-Carl Posted September 28, 2007 Author Share Posted September 28, 2007 Hi, We've started to have problems with this too, I had it all working up until we were doing final tests and it stopped sending the signed emails. Running the test from the command line creates the signed file fine, I have the new module so at least were getting the unsigned copy to manually send for now. Interesting.. perhaps it is WHMCS then? 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 Am not sure it's WHMCS as it was working then suddenly stopped prior to trying the new version of the module. 0 Quote Link to comment Share on other sites More sharing options...
CSNM-Carl Posted September 28, 2007 Author Share Posted September 28, 2007 Mine stopped working using the old module, new module I still have the same problem. 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 Hi, We're exactly the same, just suddenly stopped working now does not work under either module version. 0 Quote Link to comment Share on other sites More sharing options...
CSNM-Carl Posted September 28, 2007 Author Share Posted September 28, 2007 Yep, we have exactly the same problem. Running the test from the command line creates the signed file fine too. We haven't changed anything on the server and the permissions are fine. Matt - any ideas? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted September 28, 2007 WHMCS CEO Share Posted September 28, 2007 As othellotech has said, it's going to be a permissions issue. It won't be WHMCS as nothing has changed in that. Matt 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 28, 2007 Share Posted September 28, 2007 just suddenly stopped working now does not work under either module version. So you need to examine exactly what you changed between it working and stopping on your server - what software you updated etc 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 Hi, Thats just it nothing has been changed at all on the server between having it working and then it stopping. 0 Quote Link to comment Share on other sites More sharing options...
CSNM-Carl Posted September 28, 2007 Author Share Posted September 28, 2007 Hi, Thats just it nothing has been changed at all on the server between having it working and then it stopping. Ditto, we haven't changed anything to the server. 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 Hi, Ok, I have just added a passphrase to the key (modernbill did not work with a passphrase set) If I try to run the following from the command line I get the error below: echo {mypassphraseinthesebrackets} | gpg --no-tty --passphrase-fd 0 --clearsign ./tmp/nominettest.txt gpg: no default secret key: bad passphrase gpg: ./tmp/nominettest.txt: clearsign failed: bad passphrase 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 28, 2007 Share Posted September 28, 2007 Hi, Thats just it nothing has been changed at all on the server between having it working and then it stopping. You've not run yum ? You've made sure no cron jobs wget anything ? You've not allowed fantastico or cpanel to run an update ? Seriously *something* on your setup has changed, the modules working fine. 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 Hi Rob, I forget about fantastico, yeah that auto updates! lol 0 Quote Link to comment Share on other sites More sharing options...
CSNM-Carl Posted September 28, 2007 Author Share Posted September 28, 2007 Hi, Thats just it nothing has been changed at all on the server between having it working and then it stopping. You've not run yum ? You've made sure no cron jobs wget anything ? You've not allowed fantastico or cpanel to run an update ? Seriously *something* on your setup has changed, the modules working fine. *nothing* has changed with our setup/server, I really wish you would stop saying that. I've been through everything, permissions are fine, I can generate manually all fine... We have been using it for weeks without problems and on Monday it just stopped working. 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 I too could generate manually fine until I added the passphrase back to the key, then started to get: gpg: no default secret key: bad passphrase gpg: ./tmp/nominettest.txt: clearsign failed: bad passphrase 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 28, 2007 Share Posted September 28, 2007 I too could generate manually fine until I added the passphrase back to the key, then started to get: gpg: no default secret key: bad passphrase gpg: ./tmp/nominettest.txt: clearsign failed: bad passphrase thats missing the default section of the config for that user - see the other threads 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 28, 2007 Share Posted September 28, 2007 Seriously *something* on your setup has changed, the modules working fine. *nothing* has changed with our setup/server, I really wish you would stop saying that. 20 years software development tells me that never does software just "stop" working without something to trigger it despite many many many attempts at users claiming otherwise. And I'm still using the module exactly as i have been since its development, if it stopped on monday, try finding every filemodifies Sunday and Monday ... The problem you are seeing is permissions based, so something *has* changed... can you share the output from... find /bin/ -type f -mtime -7 -print find /sbin/ -type f -mtime -7 -print find /usr/bin/ -type f -mtime -7 -print ps auxf | grep httpd find /root/ -type f -mtime -7 -print find /home/nobody/ -type f -mtime -7 -print find /home/apache/ -type f -mtime -7 -print 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 I too could generate manually fine until I added the passphrase back to the key, then started to get: gpg: no default secret key: bad passphrase gpg: ./tmp/nominettest.txt: clearsign failed: bad passphrase thats missing the default section of the config for that user - see the other threads I have searched the forum for other threads that cover the missing config but cannot find them? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 28, 2007 Share Posted September 28, 2007 was sure the long "not quite how to" thread had it but anyway .. the user you are running thw whmcs processes as (usually apache) and therefore the user you shoudl be testing it from the command line as, needs a gnupg.conf file, and if you have multiple keys you will need a default-key line on the config file. 0 Quote Link to comment Share on other sites More sharing options...
DigitalEnigma Posted September 28, 2007 Share Posted September 28, 2007 Hi, Ok, I now have it signing the test file from the command line fine again... Still getting the unsigned emails when using WHMCS! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.