Update to nc18.04 file missing 3rdparty/.gitignore

Nextcloud version: 18.0.4
Operating system and version: FreeBSD 12.1-RELEASE-p4
Apache or nginx version: nginx/1.18.0
PHP version: 7.3.17

I just updated from nc18.03 to nc18.04 via portmaster and now I am facing the following integrity problem. The file 3rdparty/.gitignore appears to be missing.
I also don’t know how serious this error is, as everything seems to be working fine.

=======
- core
	- FILE_MISSING
		- 3rdparty/.gitignore

Raw output
==========
Array
(
    [core] => Array
        (
            [FILE_MISSING] => Array
                (
                    [3rdparty/.gitignore] => Array
                        (
                            [expected] => 2cd4ef94f5838ceb021a585949768e7a7ca10ddd96148b60470f590305dc697aeac9f50137630492b6d3e5dad545274145b24d7e6321accff33805df44f7c2e9
                            [current] => 
                        )

                )

        )

)

Check the content of the directory:
sudo ls -la /var/www/nextcloud/3rdparty

Check if the mentioned file is indeed missing. If it is existing, check the ownership

The file is really missing. Is there a way to get the file?

/usr/local/www/nextcloud/3rdparty $ sudo ls -la
total 287
drwxr-xr-x  33 root  wheel      39 Apr 24 03:56 .
drwxr-xr-x  15 root  wheel      29 Apr 24 03:23 ..
-rw-r--r--   1 root  wheel     178 Apr 22 21:24 autoload.php
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 aws
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 bantu
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 christophwurst
drwxr-xr-x   2 root  wheel      12 Apr 24 03:23 composer
-rw-r--r--   1 root  wheel    1366 Apr 22 21:24 composer.json
-rw-r--r--   1 root  wheel  146679 Apr 22 21:24 composer.lock
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 deepdiver
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 deepdiver1975
drwxr-xr-x  12 root  wheel      12 Apr 24 03:23 doctrine
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 egulias
drwxr-xr-x   7 root  wheel       7 Apr 24 03:23 guzzlehttp
drwxr-xr-x   4 root  wheel       4 Apr 24 03:23 icewind
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 interfasys
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 jeremeamia
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 justinrainbow
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 leafo
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 league
-rw-r--r--   1 root  wheel     543 Apr 22 21:24 LICENSE INFO
drwxr-xr-x   4 root  wheel       4 Apr 24 03:23 microsoft
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 mtdowling
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 nikic
-rw-r--r--   1 root  wheel     881 Apr 22 21:24 patches.txt
drwxr-xr-x   4 root  wheel       4 Apr 24 03:23 patchwork
drwxr-xr-x   6 root  wheel       6 Apr 24 03:23 pear
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 php-opencloud
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 phpseclib
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 pimple
drwxr-xr-x   5 root  wheel       5 Apr 24 03:23 psr
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 punic
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 ralouphie
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 react
-rw-r--r--   1 root  wheel     267 Apr 22 21:24 README.md
drwxr-xr-x   8 root  wheel       8 Apr 24 03:23 sabre
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 stecman
drwxr-xr-x   3 root  wheel       3 Apr 24 03:23 swiftmailer
drwxr-xr-x  17 root  wheel      17 Apr 24 03:23 symfony

Same issue for me as well. I have the same listings in my 3rd Party directory as well.

Same issue, and same file listing.

I upgrade nextcloud via pkg, if that helps.

Here is the solution!

  1. Download the official Nextcloud 18.0.4 archive to your local HDD: https://download.nextcloud.com/server/releases/nextcloud-18.0.4.zip

  2. Make sure that you have enabled “Show hidden files” in your file browser

  3. Extract the ZIP file that you had downloaded in step 1

  4. Go to the folder where you extracted files. You will find the “.gitignore” file in “nextcloud/3rdparty”

  5. Copy the “.gitignore” file to your Nextcloud server to: “/var/www/nextcloud/3rdparty” or to “/usr/local/www/nextcloud/3rdparty”, depending on your server OS

  6. Change the owner (user and group) of copied file to “www” or “www-data”, depending on your server OS (I using FreeBSD and its “www” in my case)

  7. Go back to your Nextcloud web interface, go to the page where you can see that error message, and click on “Rescan” (last linked word in the red error message/text)

Viola!

Sorry for my bad english.

2 Likes

Thanks, this worked for me.

1 Like

Yup. This worked! Thanks!

1 Like

Its pointing to a very sloppy release when meta data from git is required - .gitignore is nothing but meta data uses for source management and/or build processes!
Dont understand why this even should be checked for and scratching my head why someone built this into a required file???

utter stupid and point to sloppiness!!!

Not impressed!

Thanks for the heads up though - downloading and copying along with permission of the .gitignore sorted the warning/error.

But still think this is a wreally, wreally bad sign of quality! This meta data dont belong and should be removed from the build and checks!