# Nextcloud hangs on/stuck on : CAN\_INSTALL file missing after upgrade

**URL:** <https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768>\
**Category:** ℹ️ Support\
**Tags:** tls, linux, nc16\
**Created:** [June 30, 2019, 8:18pm UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768 "2019-06-30T20:18:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![klotterbooke](https://help.nextcloud.com/letter_avatar/klotterbooke/32/5_5575768a8748004e209b776fc1b2916d.png) [@klotterbooke](https://help.nextcloud.com/u/klotterbooke)\
**Post date:** [June 30, 2019, 8:18pm UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/1 "2019-06-30T20:18:42Z")

</div>

Hello there,

Since i upgraded my ubuntu-system and upgraded nextcloud i get the following message in my browser pointed to my nextcloud instance:  
`"It looks like you are trying to reinstall your Nextcloud. However the file CAN_INSTALL is missing from your config directory. Please create the file CAN_INSTALL in your config folder to continue."`

If i create the file in /var/www/nextcloud/config i get the same message.  
If i shut down the apache daemon I still get the same message!  
If i move the whole nextcloud folder i still get the same message.

It began with a certificate that wasnt valid anymore. Tried to run certbot but that didnt work because it had to reach port 80 which wasn’t open because i want it to listen on secure port 443. So i tried to upgrade nextcloud and after that ubuntu and now I’m stuck. I searched the whole internet for this sentence but im running in circles now. Can somebody please help me?

Would be great!

Maarten

Nextcloud version: Nextcloud 16.0.1  
Operating system and version: Ubuntu 18.04  
Apache/2.4.29 (Ubuntu)  
PHP version: PHP 7.2.19-0ubuntu0.18.04.1 (cli)

---

<div class="post-metadata">

**Author:** ![Archehandoro](https://help.nextcloud.com/user_avatar/help.nextcloud.com/archehandoro/32/16439_2.png) [@Archehandoro](https://help.nextcloud.com/u/Archehandoro)\
**Post date:** [July 11, 2019, 4:11pm UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/2 "2019-07-11T16:11:52Z")

</div>

Did you give www-data:www-data ownership to the CAN\_INSTALL file in your /var/www/html/config (or the path where your config folder is) folder? I just did and that made it work for me 🙂

---

<div class="post-metadata">

**Author:** ![soe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/soe/32/16632_2.png) [@soe](https://help.nextcloud.com/u/soe)\
**Post date:** [July 21, 2019, 7:02pm UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/3 "2019-07-21T19:02:08Z")

</div>

@Archehandoro I’ve got the same problem. Where may I find the CAN\_INSTALL file if it’s not in the nextcloud config folder? 🤔  
thx

---

<div class="post-metadata">

**Author:** ![Archehandoro](https://help.nextcloud.com/user_avatar/help.nextcloud.com/archehandoro/32/16439_2.png) [@Archehandoro](https://help.nextcloud.com/u/Archehandoro)\
**Post date:** [July 22, 2019, 8:04am UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/4 "2019-07-22T08:04:52Z")

</div>

You must create the file. A simple: `touch CAN INSTALL` will do 🙂

---

<div class="post-metadata">

**Author:** ![anon75456558](https://help.nextcloud.com/letter_avatar/anon75456558/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon75456558](https://help.nextcloud.com/u/anon75456558)\
**Post date:** [September 27, 2020, 4:19pm UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/6 "2020-09-27T16:19:56Z")

</div>

Tried using touch, but it just takes me to re-install Nextcloud completely as opposed to finishing the upgrade process. See [Error updating NextcloudPi from 20.0.0beta4 to RC2 due to Dashboard](https://help.nextcloud.com/t/error-updating-nextcloudpi-from-20-0-0beta4-to-rc2-due-to-dashboard/93374)

---

<div class="post-metadata">

**Author:** ![erik09](https://help.nextcloud.com/user_avatar/help.nextcloud.com/erik09/32/17304_2.png) [@erik09](https://help.nextcloud.com/u/erik09)\
**Post date:** [September 27, 2020, 7:25pm UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/7 "2020-09-27T19:25:35Z")

</div>

For me the issue was that the hard drive where nextcloud is installed was full and hence the config.php was not written correctly. I freed up space, restored the config.php from a backup and everything was running again.

---

<div class="post-metadata">

**Author:** ![anon75456558](https://help.nextcloud.com/letter_avatar/anon75456558/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon75456558](https://help.nextcloud.com/u/anon75456558)\
**Post date:** [September 27, 2020, 7:38pm UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/8 "2020-09-27T19:38:08Z")

</div>

Yes, I found this same problem. Cheers!

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 10:01am UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/9 "2024-12-04T10:01:05Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 11, 2024, 3:14pm UTC](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768/10 "2024-12-11T15:14:55Z")

</div>


