Answers.Body: <blockquote>
    <p>rmdir(/app/b4mhz722nsjh4/storage/runtime/compiled_templates/f1): Input/output error</p>
  </blockquote>
  
  <p>If Craft or PHP tries to delete a folder that doesn't exist, it won't fail, but will gracefully continue execution.</p>
  
  <p>That error is an underlying operating system error that suggests there might be some probably with your disk:</p>
  
  <p><a href="https://askubuntu.com/questions/325343/unable-to-delete-file-rm-cannot-remove-input-output-error">https://askubuntu.com/questions/325343/unable-to-delete-file-rm-cannot-remove-input-output-error</a></p>
  
  <p><a href="https://askubuntu.com/questions/74105/how-do-you-repair-an-input-output-error-in-an-ntfs-partition">https://askubuntu.com/questions/74105/how-do-you-repair-an-input-output-error-in-an-ntfs-partition</a></p>
  
  <p>Craft attempts to clear the compiled templates folder at the end of an update, so the good news is, for all practical purposes, the update probably completed successfully.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-13T19:21:50.690Z
Answers.LastActivityDate: 2020-01-13T19:21:50.690Z
Answers.UserDisplayName: Brad Bell
Body: <p>I was attempting to upgrade my Craft CMS from 3.0 to 3.3.19 on my production site. I had tested this out on several dev environments and worked with no issue. However, when doing it live I ran into a yii/exception</p>
  
  <blockquote>
    <p>Exception: rmdir(/app/b4mhz722nsjh4/storage/runtime/compiled_templates/f1): Input/output error (/app/b4mhz722nsjh4/vendor/yiisoft/yii2/helpers/BaseFileHelper.php:399)</p>
  </blockquote>
  
  <p>I checked the <code>storage/runtime</code> folder and I noticed there was no <code>f1</code> directory so I'm guessing it stopped the upgrade with this exception when it tried to remove a directory that didn't exist. The runtime folder is git ignored and I believe they're temporary files anyway. I couldn't find any info as to why it would be trying to delete a directory that doesn't exist.</p>
  
  <p>My question is was this just a freak bug? Any help in the right direction would be appreciated.</p>
  
  <p>One thing to note is I had tried the setup initially (after updating my composer JSON and lock file with the new updated packages) and tried the setup from my siteurl but ran into a CORS error because our control panel base URL is actually different. And ran into this migration error when trying again from the correct domain. I'm wondering if that may have caused issues.  </p>
  
  <p>Would like to try the upgrade again but wanted a little more clarity if possible on why I ran into that migration issue. </p>
  
Tags: <craft3><migration><upgrades>
Title: Flush Compiled Templates Migration File breaks Craft Migration Setup from 3.0 to 3.3
ThreadText: # Flush Compiled Templates Migration File breaks Craft Migration Setup from 3.0 to 3.3
  
  (Asked by: username_0 on 2020-01-13)
  
  I was attempting to upgrade my Craft CMS from 3.0 to 3.3.19 on my production site. I had tested this out on several dev environments and worked with no issue. However, when doing it live I ran into a yii/exception
  
  > Exception: rmdir(/app/b4mhz722nsjh4/storage/runtime/compiled\_templates/f1): Input/output error (/app/b4mhz722nsjh4/vendor/yiisoft/yii2/helpers/BaseFileHelper.php:399)
  
  I checked the `storage/runtime` folder and I noticed there was no `f1` directory so I'm guessing it stopped the upgrade with this exception when it tried to remove a directory that didn't exist. The runtime folder is git ignored and I believe they're temporary files anyway. I couldn't find any info as to why it would be trying to delete a directory that doesn't exist.
  
  My question is was this just a freak bug? Any help in the right direction would be appreciated.
  
  One thing to note is I had tried the setup initially (after updating my composer JSON and lock file with the new updated packages) and tried the setup from my siteurl but ran into a CORS error because our control panel base URL is actually different. And ran into this migration error when trying again from the correct domain. I'm wondering if that may have caused issues.
  
  Would like to try the upgrade again but wanted a little more clarity if possible on why I ran into that migration issue.
  
  **Tags:** craft3, migration, upgrades
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-01-13. Score: 1
  
  > rmdir(/app/b4mhz722nsjh4/storage/runtime/compiled\_templates/f1): Input/output error
  
  If Craft or PHP tries to delete a folder that doesn't exist, it won't fail, but will gracefully continue execution.
  
  That error is an underlying operating system error that suggests there might be some probably with your disk:
  
  <https://askubuntu.com/questions/325343/unable-to-delete-file-rm-cannot-remove-input-output-error>
  
  <https://askubuntu.com/questions/74105/how-do-you-repair-an-input-output-error-in-an-ntfs-partition>
  
  Craft attempts to clear the compiled templates folder at the end of an update, so the good news is, for all practical purposes, the update probably completed successfully.
  
  
  ---
  
  