in reply to Re: Perl temporarily unavailable error
in thread Perl temporarily unavailable error

Figured out the issue. Plack session use Storable by default. Looking at the documentation I found. if you share your files across NFS, you might wish to use other forms of locking by using modules such as LockFile::Simple which lock a file using a filesystem entry, instead of locking the file descriptor. I am using a NFS, so that was causing the issue. I switched to a different method and that has worked. I did look at trying the database way but I couldn't get anything to work.
use Plack::Session::Store::DBI; $self->plugin('SessionStore' => Plack::Session::Store::DBI->new( dbh => DBI->connect(connection stuff), table_name => 'my_session_table', )); #my table CREATE TABLE my_sessions_table (id VARCHAR(100) PRIMARY KEY,session_da +ta TEXT);
I did not receive any errors. What am I doing incorrectly.

Replies are listed 'Best First'.
Re^3: Perl temporarily unavailable error
by jcb (Parson) on Sep 01, 2020 at 23:20 UTC

    You should have said that you were using NFS. Locking on NFS is hit-or-miss at times and we would have told you to suspect that as a likely cause and try running with the session store on a local disk. If you are using a load balancer, all you need to do is arrange for load balancing to be deterministic, either by session token (ideal) or client address, and then each worker only needs to care about its user's sessions.

      I didn't know either. So I was puzzled at the error. I found out the network admin made a switch and I wasn't part of the planning.