Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

files integrity error .rnd files created after upgrade on Arch Linux #12726

Closed
doronbehar opened this issue Nov 29, 2018 · 10 comments
Closed

files integrity error .rnd files created after upgrade on Arch Linux #12726

doronbehar opened this issue Nov 29, 2018 · 10 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info

Comments

@doronbehar
Copy link

Hey guys, I hope it's O.K I've discarded the issue template. I just wanted to let you know that after the last upgrade to 14.0.4, here on an Arch Linux server, I got file integrity errors about files which are not present upstream:

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
=======
- core
	- EXTRA_FILE
		- .rnd
		- ocs/.rnd

Raw output
==========
Array
(
    [core] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [.rnd] => Array
                        (
                            [expected] => 
                            [current] => 942ab53d1cb685de5dc8632dccbf58638023b66d77d1fa6bfac30a8e8084de89eeea9c35f6271b6dcd9fcc561c3241b581d3f55955d32a7b10e5930948a540ac
                        )

                    [ocs/.rnd] => Array
                        (
                            [expected] => 
                            [current] => c005aa2d18a7e8e929e1206fdac113f58e0cf0751dbb8ac1dbffc675b33683baaf7e00c1ccc57860f7d8c6739a306c8fa0ef0783df1fafa8dd1fc45a254af992
                        )

                )

        )

)

I fixed the issue by just deleted these .rnd files but it happened to me on previous upgrades as well and as far as I can remember I've encountered similar errors here on the issue tracker.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #9795 (Upgrade error), #7723 (Integrity Error when upgrading to 13.0.beta4), #1123 (Integrity check failes after upgrading to Nextcloud10), #151 (ERRORS/WARNINGS after Upgrade OC 9.0.2. to NC 9.0.5 "Some files have not passed the integrity check"), and #9751 (File integrity check failed after upgrade from NC 13.0.3 RC1 to RC2).

@ChristophWurst ChristophWurst added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Nov 29, 2018
@ChristophWurst
Copy link
Member

I hope it's O.K I've discarded the issue template

well, now I have no idea about your setup.

How did you install Nextcloud? Via the "official" Arch package or a Nextcloud tarball?

I use Arch btw.

@doronbehar
Copy link
Author

Via the the official package. I use the package upgrade hook suggested in the WiKi - https://wiki.archlinux.org/index.php/Nextcloud#Pacman_hook

Since the official package doesn't contain these .rnd files, my suspicion is that this occ command is the main suspect.

Shall I write all the info requested in the issue template? This is not a crash so there are not many interesting things to find in the logs.. I suppose occ has a verbosity flag? Perhaps I can mimic the version update and run it again with a verbose flag and write here it's output?

@ChristophWurst
Copy link
Member

occ does not create these files.

Do you use putty or similar? Ref https://www.openssl.org/docs/man1.1.0/apps/rand.html https://www.howtogeek.com/forum/topic/what-the-heck-is-an-rnd-file

@doronbehar
Copy link
Author

Interesting.. I've rebooted my machine and I've checked perhaps if my Apache server is creating these files and I could only notice they didn't got recreated.

@ChristophWurst
Copy link
Member

Okay, thanks for your feedback. I'm closing this ticket now.

Should you see those files again, feel free to reopen.

@ghost
Copy link

ghost commented Jan 11, 2019

I see this .rnd file as well. I deleted it ran the upgrade and came back. I was on NC15 upgraded to NC15.0.1

@j-ed
Copy link
Contributor

j-ed commented Jan 11, 2019

Have you seen/read this explanation: https://file.org/extension/rnd
It is created and used by e.g. OpenSSL (binary libcrypto.so.1.1 matches).

@MorrisJobke
Copy link
Member

Okay, thanks for your feedback. I'm closing this ticket now.

Closing as per this ^

@kaistian
Copy link

Do you use putty or similar? Ref https://www.openssl.org/docs/man1.1.0/apps/rand.html https://www.howtogeek.com/forum/topic/what-the-heck-is-an-rnd-file

It has nothing to do with Putty, Apache is creating them because of Nextcloud and/or its apps

sysdig -c spy_file "RW /var/www/owncloud/.rnd"
21:51:34.280607365 /usr/sbin/apach(28597) W 1024B /var/www/owncloud/.rnd

sysdig -c spy_file "RW /var/www/owncloud/ocs/.rnd"
19:59:33.963325783 /usr/sbin/apach(13663) W 1024B /var/www/owncloud/ocs/.rnd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap needs info
Projects
None yet
Development

No branches or pull requests

6 participants