Upgrading from v0.18.1.1 to v0.18.2.2 gives "thread_resource_error"
Hello All, 

I'm running Monerod on BTCPay server through the docker implementation. 

Version 18.1.1 works well, but upgrading to 18.2.2 gives the following errors:

Monerod gives:

> 2023-07-07 18:54:50.004 I Monero 'Fluorine Fermi' (v0.18.2.2-release)
> 2023-07-07 18:54:50.004 I Initializing cryptonote protocol...
> 2023-07-07 18:54:50.004 I Cryptonote protocol initialized OK
> 2023-07-07 18:54:50.005 I Initializing core...
> 2023-07-07 18:54:50.005 I Loading blockchain from folder /home/monero/.bitmonero/lmdb ...
> 2023-07-07 18:54:50.044 I Stopping cryptonote protocol...
> 2023-07-07 18:54:50.044 I Cryptonote protocol stopped successfully
> 2023-07-07 18:54:50.045 E Exception in main! boost::thread_resource_error: Resource temporarily unavailable
> 

Monero Wallet:

> 2023-07-07 18:50:21.741 W Loading wallet...
> 2023-07-07 18:50:21.935 E dbr. THROW EXCEPTION: tools::error::wallet_internal_error
> 2023-07-07 18:50:21.935 E Failed to initialize ringdb: Failed to open rings database file '/home/monero': Permission denied
> 2023-07-07 18:50:23.969 W Loaded wallet keys file, with public address: 4AsYt5GTLHNFEWd6h1ZMnAFRfvBha1i7iGdcsFCCnZ6f2t3VZ9oTjhZ6SqR9gD9vQ3PPaVNc1M941Pu3YBYn5scYALETVsc
> 2023-07-07 18:50:24.333 E Initial refresh failed: boost::thread_resource_error: Resource temporarily unavailable
> 2023-07-07 18:50:24.335 E Failed to query mining status: No connection to daemon
> 2023-07-07 18:50:24.335 I Binding on 0.0.0.0 (IPv4):18082
> 2023-07-07 18:50:24.759 W Starting wallet RPC server
> 2023-07-07 18:50:24.759 W Stopped wallet RPC server
> 2023-07-07 18:50:24.759 W Saving wallet...
> 2023-07-07 18:50:25.093 W Successfully saved
> 

wondering if anyone has any insights on what could be causing these issues? 
I'm assuming this:

> 2023-07-07 18:54:50.045 E Exception in main! boost::thread_resource_error: Resource temporarily unavailable

but I really have no idea where to look to start with this. 