Rails DB Timeout Error: Too long with no output (exceeded 10m0s) when using set_config.

When using rails, if you use a DB load on one of the commands that are run as part of the command for set_config [enter key press] -- this will not be handled correctly by less.

Due to the default environment variable for PAGER being less, the enter key is not handled so the output prints set_config ;0;0t and the second part is not interpreted as an enter key press so the system does not continue.

As CircleCI is set to stop when no output is seen for 10 minutes by default, the error seen is: Error: Too long with no output (exceeded 10m0s) as the output was waiting for user input.

To be able to resolve this, you can override the program being used by PAGER using the code snippet given below:

jobs:
    build:
        docker:
          - image: MY_APP_IMAGE
            environment:
              PAGER: cat

Once this has been set the enter keypress is handled correctly and the config is able to complete without hanging.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.