Answers.Body: <p>So I figured out the real problem is that I created a build using <code>mysql_ram_disk</code> instead of <code>mysql_dsn</code> in <code>amp config</code>- meaning the mysql database is in RAM, and of course disappears when I turn off my laptop :) . </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-11T21:05:12.350Z
Answers.LastActivityDate: 2019-09-11T21:05:12.350Z
Answers.UserDisplayName: Joe McLaughlin
Body: <p>After running <code>amp config</code> and <code>amp test</code>, I successfully created a <code>drupal-clean</code> build using <code>buildkit</code> and <code>civibuild</code> on <code>localhost:7979</code>, and added a bunch of extensions, etc. </p>
  
  <p>I turned off my Ubuntu 19.04 laptop, and booted up the next day. However, at <code>localhost:7979</code> I received a lock error message. So I reran <code>amp test</code> to check everything, and the test passed. <code>amp test</code> also uses <code>localhost:7979</code>. </p>
  
  <p>Now, at <code>localhost:7979</code> I see </p>
  
  <pre><code>Error: Expected GET or POST value 'exampleData=foozball' Error: Failed to write /home/joe/.amp/canary/data/DSEGrMDEi4ocNQRuBOo4IbE2e73MaT8M/example.txt Error: Failed to remove /home/joe/.amp/canary/data/DSEGrMDEi4ocNQRuBOo4IbE2e73MaT8M/example.txt
  </code></pre>
  
  <p>I ran <code>curl http://localhost:7979/index.php</code> and get the same result as immediately above. </p>
  
  <p>I ran <code>sudo lsof -i :7979</code> and get this result: </p>
  
  <pre><code>COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
  apache2 16634     root    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16635 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16636 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16637 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16638 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16639 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16716 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  </code></pre>
  
  <p>In the results above, the first process is running as <code>root</code>, not <code>www-data</code>. Do I just need to kill that process? Something else?</p>
  
  <p>Thanks for any guidance! </p>
  
Tags: <civicrm-buildkit><civibuild>
Title: Can I use localhost:7979 for amp test and one or more different builds created with buildkit?
ThreadText: # Can I use localhost:7979 for amp test and one or more different builds created with buildkit?
  
  (Asked by: username_0 on 2019-09-10)
  
  After running `amp config` and `amp test`, I successfully created a `drupal-clean` build using `buildkit` and `civibuild` on `localhost:7979`, and added a bunch of extensions, etc.
  
  I turned off my Ubuntu 19.04 laptop, and booted up the next day. However, at `localhost:7979` I received a lock error message. So I reran `amp test` to check everything, and the test passed. `amp test` also uses `localhost:7979`.
  
  Now, at `localhost:7979` I see
  
  ```
  Error: Expected GET or POST value 'exampleData=foozball' Error: Failed to write /home/joe/.amp/canary/data/DSEGrMDEi4ocNQRuBOo4IbE2e73MaT8M/example.txt Error: Failed to remove /home/joe/.amp/canary/data/DSEGrMDEi4ocNQRuBOo4IbE2e73MaT8M/example.txt
  
  ```
  
  I ran `curl http://localhost:7979/index.php` and get the same result as immediately above.
  
  I ran `sudo lsof -i :7979` and get this result:
  
  ```
  COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
  apache2 16634     root    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16635 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16636 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16637 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16638 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16639 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  apache2 16716 www-data    7u  IPv4 507012      0t0  TCP localhost:7979 (LISTEN)
  
  ```
  
  In the results above, the first process is running as `root`, not `www-data`. Do I just need to kill that process? Something else?
  
  Thanks for any guidance!
  
  **Tags:** civicrm-buildkit, civibuild
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-09-11. Score: 2
  
  So I figured out the real problem is that I created a build using `mysql_ram_disk` instead of `mysql_dsn` in `amp config`- meaning the mysql database is in RAM, and of course disappears when I turn off my laptop :) .
  
  
  ---
  
  