Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

When RAILS_ENV=test Read-only file system @ rb_sysopen - /app/tmp/development_secret.txt" #20

Unanswered
michaelcohenunsw asked this question in Q&A
Discussion options

Hi,

This isn't specifically a lambdakiq issue. It is more of a non-production Rails annoyance. We are using RAILS_ENV=test and FUNCTION_DIR=/app in our AWS Lambda docker image.

The lambdakiq background job for sending mail fails with error: Read-only file system @ rb_sysopen - /app/tmp/development_secret.txt".

However, lambdakiq background jobs for promoting and demoting Shrine file uploads work fine. Is the difference here because eager loading = false for RAILS_ENV=test? Would both generally fail when RAILS_ENV=test or is there a workaround possible without renaming the RAILS_ENV to something other than "test"?

You must be logged in to vote

Replies: 1 comment

Comment options

I have no idea what might be trying to write to that file. Would this be as simple as tracking down the code that writes to that file and making that one fix to either not write the file or to write it to /tmp?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /