Open acatighera opened 6 years ago
+1
+1
+1 Bump. Same issue here.
For whomever lands here again at some point in the future then the issue for us was that the Rails user under linux (nobody) is a nologin account and as such there is no env variable for GPG to use for the home directory, the fix was to add this line to the initialisation code when decrypting.
GPGME::Engine.home_dir="/home/nobody/.gnupg" unless Rails.env=='development'
Here is the key that fails but I have tried many others (even ones not generated by me), none seem to work. Here is the import result:
The strange thing is that on my Macbook everything works fine. However, on an ubuntu server it seems to crap out. The only thing I can think to attribute it to is the version of GPGME. On my macbook it is
2.2.4
and on the ubuntu server it is1.4.20
. Is there an easy way to require 2.x? Would that even fix the issue? Thank you for the assistance, it is much appreciated!