Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

what is tmp-unverified-download-quarantine directory?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
36 posts
  • 1
  • 2
  • Next
Author
Message
yzg
Guru
Guru
Posts: 500
Joined: Sat Jun 18, 2005 11:56 am

what is tmp-unverified-download-quarantine directory?

  • Quote

Post by yzg » Thu Jul 19, 2018 10:30 am

I noticed that emerge --sync command is doing a new behavior. It stops in the middle of updating and does the verification on /usr/portage/.tmp-unverified-download-quarantine and then continue.
The directory name has the two scariest words: unverified and quarantine inside portage directory.

Code: Select all

total size is 218.90M  speedup is 19.96
 * Manifest timestamp: 2018-07-19 09:38:44 UTC
 * Valid OpenPGP signature found:
 * - primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
 * - subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
 * - timestamp: 2018-07-19 09:38:44 UTC
 * Verifying /usr/portage/.tmp-unverified-download-quarantine ...                                            [ ok ]
sending incremental file list
Manifest
Manifest.files.gz
app-admin/Manifest.gz
Is this a new change?
Top
kurly
Apprentice
Apprentice
Posts: 260
Joined: Mon Apr 02, 2012 4:47 pm

  • Quote

Post by kurly » Sun Jul 22, 2018 12:34 am

Yes, and there is a news item. It's nothing to be concerned about.
Top
ryszardzonk
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Thu Dec 18, 2003 5:25 pm
Location: Rzeszów, POLAND

  • Quote

Post by ryszardzonk » Wed Jul 25, 2018 11:40 am

How about if it keeps saying Operation not permitted?

rsync: link "/mnt/4tb/portage/.tmp-unverified-download-quarantine/metadata/md5-cache/dev-ruby/rspec-expectations-3.7.0" => /mnt/4tb/portage/metadata/md5-cache/dev-ruby/rspec-expectations-3.7.0 failed: Operation not permitted (1)

Does not seem like the feature is properly used...
Sky is not the limit...
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3079
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

  • Quote

Post by Chiitoo » Wed Jul 25, 2018 12:13 pm

ryszardzonk,

I got that too.

Also found this: Bug 661834 - =sys-apps/portage-2.3.43: synced files owned by root
Kindest of regardses.
Top
ryszardzonk
Apprentice
Apprentice
User avatar
Posts: 225
Joined: Thu Dec 18, 2003 5:25 pm
Location: Rzeszów, POLAND

  • Quote

Post by ryszardzonk » Wed Jul 25, 2018 1:42 pm

@Chiitoo

I am already at portage-2.3.43-r1 and still receive this error. Maybe it has to do with "-rsync-verify" flag I set some time ago when sync verification was first introduced. I'll check and if I find any think I sure will post it in in the bug report.
Sky is not the limit...
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3079
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

  • Quote

Post by Chiitoo » Wed Jul 25, 2018 2:32 pm

Yeah, the bug is still open, only referenced by the commits there, so probably not fully fixed. :]
Kindest of regardses.
Top
Dragonlord
Guru
Guru
User avatar
Posts: 447
Joined: Sun Aug 22, 2004 11:57 am
Location: Switzerland

  • Quote

Post by Dragonlord » Mon Dec 31, 2018 2:37 am

What about this process taking hours and "NOT" finishing? Emerge is broken with this new action in place. Can it be disabled somehow?
DragonDreams: Leader and Head Programmer
Top
bunder
Bodhisattva
Bodhisattva
Posts: 5956
Joined: Sat Apr 10, 2004 5:13 am

  • Quote

Post by bunder » Mon Dec 31, 2018 3:09 am

https://www.gentoo.org/support/news-ite ... ation.html

i was adversed to this at first as well, but i turned it back on recently and haven't noticed much issues past the initial sync... i just synced now and it only took a minute give or take.
Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
banned from #gentoo since sept 2017
Top
Dragonlord
Guru
Guru
User avatar
Posts: 447
Joined: Sun Aug 22, 2004 11:57 am
Location: Switzerland

  • Quote

Post by Dragonlord » Fri Jan 04, 2019 2:04 pm

This feature should be disabled by default. Sitting up to 2 hours through an emerge sync is NOT acceptable by any stretch of the imagination.
DragonDreams: Leader and Head Programmer
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jan 04, 2019 2:20 pm

Dragonlord,

Hours?

Even a Raspberry Pi doesn't take hours.
This suggests you are using low end hardware or there is something wrong with your setup.

Your sync goes into /usr/portage/.tmp-unverified-download-quarantine until the cryptographic signatures have been verified.
This intermediate step ensures a broken sync does not leave you with an inconsistent tree, as used to happen.
Its a good thing. There is a USE flag to turn off this behaviour if you really want to but better to fix your issue.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Dragonlord
Guru
Guru
User avatar
Posts: 447
Joined: Sun Aug 22, 2004 11:57 am
Location: Switzerland

  • Quote

Post by Dragonlord » Fri Jan 04, 2019 3:37 pm

NeddySeagoon wrote:Dragonlord,

Hours?

Even a Raspberry Pi doesn't take hours.
This suggests you are using low end hardware or there is something wrong with your setup.

Your sync goes into /usr/portage/.tmp-unverified-download-quarantine until the cryptographic signatures have been verified.
This intermediate step ensures a broken sync does not leave you with an inconsistent tree, as used to happen.
Its a good thing. There is a USE flag to turn off this behaviour if you really want to but better to fix your issue.
I'm doing high-end game deving. I'm certain my hardware is not low-tier. Without this feature enabled a sync take less than a minute. With this feature enabled it runs for ages.
DragonDreams: Leader and Head Programmer
Top
tholin
Apprentice
Apprentice
Posts: 213
Joined: Sat Oct 04, 2008 11:44 am

  • Quote

Post by tholin » Fri Jan 04, 2019 5:38 pm

If rsync-verify gets stuck it is probably trying to refresh the keys and fail for some reason. Assuming the portage repo is at /usr/portage try running "gemato verify -K /usr/share/openpgp-keys/gentoo-release.asc /usr/portage" and check the output for where it gets stuck.
Top
Dragonlord
Guru
Guru
User avatar
Posts: 447
Joined: Sun Aug 22, 2004 11:57 am
Location: Switzerland

  • Quote

Post by Dragonlord » Sat Jan 05, 2019 3:25 pm

I did some updates recently (which included a forced portage update) and the timing did improve but is in my opinion still too high. Here the command from you run today after the latest update:

Code: Select all

gemato verify -K /usr/share/openpgp-keys/gentoo-release.asc /usr/portage  2>&1 | ts '[%H:%M:%S]'
[16:07:03] INFO:root:Refreshing keys...
[16:07:04] INFO:root:Keys refreshed.
[16:07:04] INFO:root:Manifest timestamp: 2019-01-04 13:38:40 UTC
[16:07:04] INFO:root:Valid OpenPGP signature found:
[16:07:04] INFO:root:- primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
[16:07:04] INFO:root:- subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
[16:07:04] INFO:root:- timestamp: 2019-01-04 13:38:40 UTC
[16:07:04] INFO:root:Verifying /usr/portage...
[16:21:12] INFO:root:/usr/portage verified in 847.86 seconds
That's nearly a quarter hour. I will keep this feature disabled as this is still too high.
DragonDreams: Leader and Head Programmer
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jan 05, 2019 3:33 pm

Dragonlord,

That command verified the entire tree.
During updates, its only the subset that is fetched that is checked.

You don't have the portage repo in tmpfs I suppose, so the whole thing is fetched every time?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Dragonlord
Guru
Guru
User avatar
Posts: 447
Joined: Sun Aug 22, 2004 11:57 am
Location: Switzerland

  • Quote

Post by Dragonlord » Sat Jan 05, 2019 9:38 pm

NeddySeagoon wrote:Dragonlord,

That command verified the entire tree.
During updates, its only the subset that is fetched that is checked.

You don't have the portage repo in tmpfs I suppose, so the whole thing is fetched every time?
Portage never had been in tmpfs as far as I know. The tree is updated with rsync so that does already partial updates. And no, the test time is always the same if I run the command of yours multiple times in a row without touching the repository.
DragonDreams: Leader and Head Programmer
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56108
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jan 05, 2019 10:30 pm

Dragonlord,

The

Code: Select all

gemato verify -K /usr/share/openpgp-keys/gentoo-release.asc /usr/portage  2>&1 | ts '[%H:%M:%S]' 
command checks the entire repository, every time.
To be able to reproduce this, I had to install moreutils, to get the ts command, so I don't think I gave you the command above.

On my Gen 7 HP Microserver, with a Neo N36L Dual-Core Processor, which is fairly low end hardware, and tree timestamp: 2018-11-23 02:08:47 UTC I get.

Code: Select all

Eccles_2 ~ # gemato verify -K /usr/share/openpgp-keys/gentoo-release.asc /usr/portage  2>&1 | ts '[%H:%M:%S]'
[22:13:01] INFO:root:Refreshing keys...
[22:13:04] INFO:root:Keys refreshed.
[22:13:04] INFO:root:Manifest timestamp: 2018-11-23 02:08:47 UTC
[22:13:04] INFO:root:Valid OpenPGP signature found:
[22:13:04] INFO:root:- primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
[22:13:04] INFO:root:- subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
[22:13:04] INFO:root:- timestamp: 2018-11-23 02:08:47 UTC
[22:13:04] INFO:root:Verifying /usr/portage...
[22:17:11] INFO:root:/usr/portage verified in 247.06 seconds
With emerge --sync

Code: Select all

[22:19:23] sent 513.39K bytes  received 39.79M bytes  848.50K bytes/sec
[22:19:23] total size is 220.29M  speedup is 5.47
[22:19:23]  * Manifest timestamp: 2019-01-05 02:08:38 UTC
[22:19:23]  * Valid OpenPGP signature found:
[22:19:23]  * - primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
[22:19:23]  * - subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
[22:19:23]  * - timestamp: 2019-01-05 02:08:38 UTC
[22:20:52]  * Verifying /usr/portage/.tmp-unverified-download-quarantine ...        [ ok ]
[22:21:23] === Sync completed for gentoo
[22:21:23] q: Updating ebuild cache for /usr/portage ... 
[22:21:23] q: Finished 36211 entries in 0.468768 seconds
The verify time was 31 seconds for the delta (about 6 week) vs 247.06 seconds for the entire (old) tree.

What else is your system doing at the same time?
What CPU governor do you do have in use?
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
asaparov
n00b
n00b
Posts: 7
Joined: Fri Nov 04, 2016 4:40 am

  • Quote

Post by asaparov » Fri May 24, 2019 11:10 pm

I've noticed emerge --sync on one of my machines takes a lot longer than the others, and almost all of the time is spent in Verifying /usr/portage/.tmp-unverified-download-quarantine.
It takes about a couple minutes to finish this step, whereas running

Code: Select all

gemato verify -K /usr/share/openpgp-keys/gentoo-release.asc /usr/portage
finishes in 26 seconds. Shouldn't emerge --sync only verify a small subset of the tree? If so, why would it be taking so much longer? My other machines go through this step fairly quickly.

I'm using the performance governor.

emerge --info: https://pastebin.com/WaavzvzK
Top
j.hauser
n00b
n00b
Posts: 3
Joined: Wed Aug 21, 2019 5:57 pm

  • Quote

Post by j.hauser » Wed Aug 21, 2019 6:24 pm

I'm having the same problem as reported by asaparov: Portage verification via emerge --sync is very slow, calling gemato directly is much faster (roughly 14 minutes vs. 1 minute). I've noticed that emerge --sync causes almost no CPU load during verification while iotop reports a DISK READ around 500-700 k/s caused by emerge --sync (no other processes causing any noticeable DISK READ). On the other hand,

Code: Select all

gemato verify -K /usr/share/openpgp-keys/gentoo-release.asc /usr/portage
causes not DISK READ and a high CPU load on one core.

I've explicitly set

Code: Select all

sync-allow-hardlinks = yes
sync-rsync-verify-metamanifest = yes
in the file /etc/portage/repos.conf/gentoo.conf.

I assume that there must be something wrong with my/our setup(s).
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Wed Aug 21, 2019 6:43 pm

I assume that there must be something wrong with my/our setup(s).
No! Most probably, nothing is wrong with your setup!

There is something wrong with the developers and the algorithms they choose.

'emerge --sync' creates a subdirectory '/usr/portage/.tmp-unverified-download-quarantine'. After that, it creates 140.000 (one-hundred-forty-thousand) links in it. And everybody wonders why "emerge --sync" gets slower and slower... On my desktop machine (/usr/portage is mounted via NFS), that slows down 'emerge -sync' from 30 seconds to over 8 minutes!!!

That's ridiculous!
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Wed Aug 21, 2019 7:35 pm

set sync-allow-hardlinks = no to do away with .tmp-unverified-download-quarantine nonsense
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
skellr
Veteran
Veteran
User avatar
Posts: 1037
Joined: Sat Jun 18, 2005 1:34 am
Location: The Village, Portmeirion

  • Quote

Post by skellr » Wed Aug 21, 2019 7:55 pm

Les go back to where rsync would partially update the repository and not throw an error. You could just be free to update whatever and not be inconvenienced. No need to find out what went wrong.

Yeah, ignorance is bliss.
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Wed Aug 21, 2019 8:24 pm

sync-allow-hardlinks = no doesn't do away with verification, it simply stops the .tmp-unverified-download-quarantine dir and all the hardlinks within it, from being created, in other words it behaves the way emerge/rsync used to behave
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
skellr
Veteran
Veteran
User avatar
Posts: 1037
Joined: Sat Jun 18, 2005 1:34 am
Location: The Village, Portmeirion

  • Quote

Post by skellr » Wed Aug 21, 2019 8:38 pm

Anon-E-moose wrote:sync-allow-hardlinks = no doesn't do away with verification, it simply stops the .tmp-unverified-download-quarantine dir from being created, in other words it behaves the way emerge/rsync used to behave
It was just a comment on the thread as a whole. I did post right after you but, it wasn't meant explicitly for you. Seems like people were complaining about an inconvenience without understanding why it was happening, or why the implementation was implemented. Just a bunch of whining going on that gave the urge to slap someone. :)
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Wed Aug 21, 2019 8:48 pm

Seems like people were complaining about an inconvenience without understanding why it was happening,
I do understand what developers tried to achieve.

There are better ways to do this - and there's no need to create 140.000 hard links in /usr/portage/.

Developers just chose the wrong tools and algorithms. It would be much better and faster to do this in memory or on a tmpfs.
Top
skellr
Veteran
Veteran
User avatar
Posts: 1037
Joined: Sat Jun 18, 2005 1:34 am
Location: The Village, Portmeirion

  • Quote

Post by skellr » Wed Aug 21, 2019 9:07 pm

mike155 wrote:
Seems like people were complaining about an inconvenience without understanding why it was happening,
I do understand what developers tried to achieve.

There are better ways to do this - and there's no need to create 140.000 hard links in /usr/portage/.

Developers just chose the wrong tools and algorithms. It would be much better and faster to do this in memory or on a tmpfs.
Not everyone had that much to spare, some old pentium desktop, rasbery pi, or whatever embeded device... Not that easy.
Top
Post Reply

36 posts
  • 1
  • 2
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic