Calendar: v1.5.4 - missing file alert after app installation

Created on 13 Sep 2017  路  16Comments  路  Source: nextcloud/calendar

Expected behavior

All required files should be delivered with a new app release or checksums should only be generated for shipped files.

Actual behavior

After I've upgrade the calendar app to v1.5.4 a missing file alert was displayed. I checked the directory and indeed a .gitignore file doesn't exist in the root directory of the calendar app. I downloaded the file from the repository, stored it in the directory and kicked-off a new file/system consistency check which results in a "All checks passed".

Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.

Results
=======
- calendar
    - FILE_MISSING
        - .gitignore

Raw output
==========
Array
(
    [calendar] => Array
        (
            [FILE_MISSING] => Array
                (
                    [.gitignore] => Array
                        (
                            [expected] => 2ebfa9d965d970eb2f3356f80cbff785c90c9a0d7634b406e49cd4e311826eb4abb482d8be75557cff491837881af2795fc4bd3a8e8d42b24c56d3b53b9b5dee
                            [current] => 
                        )

                )

        )

)

Steps to reproduce

  1. update the Calendar app
  2. wait until the file/system consistency check has been run.
  3. check result

Environment

Server Configuration

OS: Linux 3.16.46
Web server: Apache2 2.4.26
Database: MariaDB 10.0.32
PHP version: 5.6.29
Nextcloud version: 12.0.2
Calendar app: 1.5.4

Client Configuration

Browser: Mozilla Firefox 55.0.3
Operating system: Windows 7

1 - to develop bug

Most helpful comment

I copied the .gitignore file from the repository into ./calendar as a temporary solution to remove the message from the top of the window (integrity check finishes now with success)

As @Aersaud also mentioned take the RAW file

All 16 comments

But u can still use 1.5.4, right?

I just updated as well and don't see this issue. The mentioned file doesn't exist on my server and still I don't have this error message. Could it be a migration issue or something due to installing test versions earlier?

My changes to the makefile caused this, but if the calendar is just working fine despite that error I see no reason for a 1.5.5.
We will just fix it with 1.6.0

Same, I didn't get the message, but IIRC the integry checks are done by cron.

We will just fix it with 1.6.0

@georgehrke Hmm. Maybe before, since : https://nextcloud.com/blog/help-test-nextcloud-12.0.3/ 馃檲

@georgehrke The app works as expected, except that the integrity check line is shown at the top of the Nextcloud window.

@georgehrke The app works as expected, except that the integrity check line is shown at the top of the Nextcloud window.

Aye, this does not look cool and less technical people may get worried and suspicious. Not a great upgrade experience.

agreed on the statement above

I copied the .gitignore file from the repository into ./calendar as a temporary solution to remove the message from the top of the window (integrity check finishes now with success)

As @Aersaud also mentioned take the RAW file

curled the .gitignore file from this repo into the calendar folder, but now getting an invalid hash error on the file instead of the "missing" error

curled the RAW file as @orenwf did above using curl -LJO . All security checks are now passing.

Hi, I have the same problem like @orenwf. Copying the .gitignore file from here to the calendar folder will bring an invalid hash instaed of the "missing" error. What do you (@Aersaud) mean with "curl -LJO"? I can only use ftp to upload the file to the server, as it is hosted at a hosting provider.
Thanks Axel

Ok, now it works for me. I installed curl on my wndows 7 an then I run the following command:

"curl -LJO https://raw.githubusercontent.com/nextcloud/calendar/master/.gitignore" to load the file to my local PC.
"https://raw.githubusercontent.com/nextcloud/calendar/master/.gitignore" ist the RAW url oft the .gitignore file. There are buttons "Raw" "Blame" "History" in github. You need "Raw" to see the url of .gitignore
Then I uploaded .gitignore via ftp to the hosted webspace in the calendar directory.
After this you have to tell nextcloud to recheck the files.

Axel

@Aersaud many thanks! Your 'curl -LJO' solution also worked for me.

@axelrathey, this workaround using curl works for me as well - thanks!

Calendar 1.5.5 fixes this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ad1rie1 picture ad1rie1  路  3Comments

ml94 picture ml94  路  3Comments

brylie picture brylie  路  3Comments

mauritslamers picture mauritslamers  路  4Comments

cloud2018 picture cloud2018  路  3Comments