# Unable to launch fully containerized Rstudio

**URL:** <https://discourse.openondemand.org/t/unable-to-launch-fully-containerized-rstudio/948>\
**Category:** Get Help\
**Tags:** question\
**Created:** [June 3, 2020, 3:34pm UTC](https://discourse.openondemand.org/t/unable-to-launch-fully-containerized-rstudio/948 "2020-06-03T15:34:23Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![dugan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@dugan](https://discourse.openondemand.org/u/dugan)\
**Post date:** [February 25, 2021, 10:25pm UTC](https://discourse.openondemand.org/t/unable-to-launch-fully-containerized-rstudio/948/20 "2021-02-25T22:25:13Z")

</div>

@mcuma, I have not been able to get 1.4 working in a way that is suitable for users yet. The problem you identified happens because it wants to create a sqlite database in that directory.  
There is a new commandline option “–database-config-file path\_to\_config\_file”, and the directive  
to put in that config file to change the location of the database is:

directory=“some\_directory”

With these changes to script.sh.erb the server will start without error but when I try to connect I get the dreaded rstudio login screen. If I enter my username and the “passwd” from the connection.yml file I almost get in. This process added “AppUri” to the end of the url and I get a “page not found” error. If I remove that bit from the url in the address bar and type return I do get in.

The real problem here is that they added some extra “security” features in 1.4. In particular they  
added a csrf-token to the login screen. We need to figure out what the value is and pass that in along with the username and passwd in order to get past the login screen. I don’t know how to do  
this automatically. This is where I’m stuck. I added this line to view.html.erb:

I still get the login screen when I connect but I can just look at the page source and see what  
csrf-token is set to and then manually add a line to connection.yml:

csrfToken: …

then when I connect I get in without hitting the login screen.

So that’s where I’m at.

---

_[View the full topic](https://discourse.openondemand.org/t/unable-to-launch-fully-containerized-rstudio/948)._
