Google Pubsub Error: The Keyfile is not a Valid File

The error came during authentication of pubsub subscriber. The error log is misleading and point to a problm with the service account key file. However, the source code to process the logic is as follows:

# Verify that the keyfile argument is a file.

def verify_keyfile_exists! keyfile
    exists = ::File.file? keyfile
    raise "The keyfile '#{keyfile}' is not a valid file." unless exists

It means if file is not present, raise the exception.


Just check if your key file path is valid.

Written with StackEdit.

Java Fix: Applications Blocked by Security Settings for Windows 7

  • Are you seeing following errors?

  1. Java applications are blocked by your security settings.
  2. Missing Application-Name manifest attribute
  3. Missing required Permissions manifest attribute in main jar

  • Starting with Java 8, there is no medium risk setting in Security tab under Java
  • You will keep getting this error till you revert to older Java (suggested Java 7, it has hit end of life though).
  • Install both 32-bit and 64-bit versions. Why? Because browsers are still 32-bit, even on a 64-bit machine, 64-bit OS