Travis Decrypting command not working


#1

I am trying to decrypt a file within Travis, and i have redone it twice now, and i Keep getting this error:

im like 99% sure i followed the exact instructions at https://docs.travis-ci.com/user/encrypting-files/


#2

Where do you see this?


#3

this error is within my build log


#4

Please include the log URL. Thanks.


#5

https://travis-ci.com/burdoto/KalUtils/builds/97088448


#6

In https://travis-ci.com/burdoto/KalUtils/builds/97088448#L425-L428, you see that your encypted key and iv are not decrypted. Did you follow the instructions in https://docs.travis-ci.com/user/encrypting-files#automated-encryption?


#7

im sorry i dont understand what youre trying to say with you see that your encypted key and iv are not decrypted
i followed the instructions, i have the openssl command before install, just like the travis encrypt-file --add command has added it


#8

During that command’s execution, you should see the message:

storing secure env variables for decryption

which would have stored the environment variables needed for decrypting the file. Did you see the message?


#9

i am not sure. there are no environment variables (beside my usernames and passwords) set within the travis repo.


#10

Do you see it if you rerun the command?


#11

@BanzaiMan grafik

but they did not get added to the travis repo

EDIT: i have noticed that i was logged in on travis.COM instead of ORG, so i changed that, but that did not help it either


#12

What did you see when you ran travis encrypt-file --com GPGKey.gpg --add?


#13

grafik


#14

…now i have the variables in the travis repo, but now the decrypt command fails again…

https://api.travis-ci.com/v3/job/171374857/log.txt


#15

Hmm. The command appears to be failing still. Could you try adding the -r flag to specify (even if you are in the root of your repo) to specify the repository (e.g., -r OWNER/REPO)?


#16

@banzaiman do i need to say anything about this?


#17

The cases are wrong. It’s KalUtils, right?


#18

@BanzaiMan

the resulting log: https://api.travis-ci.com/v3/job/171596477/log.txt

(still fails)

EDIT: i have removed all variables and extra code and files this time before pushing the new encrypted file


#19

Do you have access to a Linux box (or a Mac)? If so, could you try the same command there?


#21

@banzaiman update: unfortunately i am unable to get my hands on a linux machine.