# Reinstall error but not trying to reinstall

**URL:** <https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906>\
**Category:** ℹ️ Support\
**Created:** [July 19, 2019, 9:04pm UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906 "2019-07-19T21:04:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![SupperDad](https://help.nextcloud.com/letter_avatar/supperdad/32/5_5575768a8748004e209b776fc1b2916d.png) [@SupperDad](https://help.nextcloud.com/u/SupperDad)\
**Post date:** [July 19, 2019, 9:04pm UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/1 "2019-07-19T21:04:28Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can ❤

Nextcloud version _(eg, 12.0.2)_: 16.something  
Operating system and version _(eg, Ubuntu 17.04)_: FreeNAS 11.2-U5  
Apache or nginx version _(eg, Apache 2.4.25)_: Apache 2.4.39  
PHP version _(eg, 7.1)_: 7.3

The issue you are facing:

I successfully installed NextCloud 16, created a couple of users and sync’d up a couple of computers. All looked fine. That was 2 days ago. Today, NextCloud does not appear to be running and when I try to connect via the web console I get this: “Error. 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.”

So far as I know, I am _not_ trying to reinstall NextCloud. If I create this CAN\_INSTALL file (via “touch”), the web interface connection wants to go through the initial installation process again (e.g., asks me to create an admin account for the database, etc).

I have no idea why this is happening, or if I did something to inadvertently cause a reinstall process to start. Obviously, I don’t want to go through all that work again.

Please advise.

Thx.

Is this the first time you’ve seen this error? _(Y/N)_: Y

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [July 21, 2019, 5:37pm UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/2 "2019-07-21T17:37:57Z")

</div>

In the Nextcloud root a directory named “ **config** ” should exist, in which the **config.php** file of your instance can be found. Make sure that the directory and the file exist and can be accessed/loaded by Nextcloud.

---

<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, 6:54pm UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/3 "2019-07-21T18:54:51Z")

</div>

Same problem here! Came back from vacation and got the same error message like @SupperDad .

Linux nextcloudpi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux  
Nextcloud version 16.0.2.1

@j-ed Which permissions should be set for config.php? These are mine: -rw-r-----

This thread seams to discuss the same problem: [Nextcloud hangs on/stuck on : CAN\_INSTALL file missing after upgrade](https://help.nextcloud.com/t/nextcloud-hangs-on-stuck-on-can-install-file-missing-after-upgrade/55768)

Regards  
soe

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [July 21, 2019, 8:06pm UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/4 "2019-07-21T20:06:18Z")

</div>

**0640** should be ok, as long as the file is owned by the user under which the web server is running.

---

<div class="post-metadata">

**Author:** ![SupperDad](https://help.nextcloud.com/letter_avatar/supperdad/32/5_5575768a8748004e209b776fc1b2916d.png) [@SupperDad](https://help.nextcloud.com/u/SupperDad)\
**Post date:** [July 21, 2019, 10:12pm UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/5 "2019-07-21T22:12:52Z")

</div>

Thx, but I don’t think permissions are the issue here (though I could easily be mistaken). httpd runs as user www, and the config directory and config/config.php file both have www:www ownership, with the config.php file having 640 permissions. All directories above this are either owned by user www or have 755 permissions. As I said originally, if I create this CAN\_INSTALL file in the config directory, via “touch”, then attempting to log in to the NextCloud web interface causes it to go through the initial setup procedure, asking for a mysql admin account and password to be created, etc. Is this supposed to happen, even though I already went through this process when setting up NextCloud initially? Any suggestions most welcome.

---

<div class="post-metadata">

**Author:** ![SupperDad](https://help.nextcloud.com/letter_avatar/supperdad/32/5_5575768a8748004e209b776fc1b2916d.png) [@SupperDad](https://help.nextcloud.com/u/SupperDad)\
**Post date:** [July 25, 2019, 8:23pm UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/6 "2019-07-25T20:23:12Z")

</div>

I believe I found the problem, though I’m not 100% sure of this. I think the problem was a mismatch between the GID of the mysql user created in the jail and the GID of the FreeNAS mysql user (my attempt to make them the same during the original install did not succeed, but I didn’t detect this at the time). Whether or not this was the problem, I just went through the process of “reinstalling” NextCloud, being more careful with the mysql user GIDs, and everything is working fine now. Thx for the help.

---

<div class="post-metadata">

**Author:** ![Dmitry\_Ivanov](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dmitry_ivanov/32/27189_2.png) [@Dmitry\_Ivanov](https://help.nextcloud.com/u/Dmitry_Ivanov)\
**Post date:** [July 17, 2020, 11:05am UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/7 "2020-07-17T11:05:44Z")

</div>

I think something happened during update in my case, just seen this error.  
Config.php was broken and I decided to replace it with backed up last month.  
Server runs update again and all seems fine.

---

<div class="post-metadata">

**Author:** ![Irdi](https://help.nextcloud.com/user_avatar/help.nextcloud.com/irdi/32/50042_2.png) [@Irdi](https://help.nextcloud.com/u/Irdi)\
**Post date:** [December 21, 2022, 11:19am UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/8 "2022-12-21T11:19:13Z")

</div>

Happened to me after i had my server in maintenance mode on and decided to to turn it off. The config files just reseted itself. I had to restore the config.php from a backup and it worked just fine. Always have backups!

---

<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:07am UTC](https://help.nextcloud.com/t/reinstall-error-but-not-trying-to-reinstall/56906/9 "2024-12-04T10:07:53Z")

</div>


