Page 1 of 1

One Repository is Corrupted. Cannot Validate [Solved].

Posted: Wed Aug 02, 2017 16:07
by albfneto
In my main Sabayon installation, today, 08-03-2017, one of my entropy repositories (sabayonlinux.org) seems corrupted and cannot validated....

I use Sabayonlinux.org, Sabayon Limbo and 3 Community repos (Community, Mudler and KDE-Unstable.

this is the overall error in the "# equo up" command:

Code: Select all

$ sudo equo up☛ Repositório sabayonlinux.org está corrompido. Não é possível validar
☛ SystemDatabaseError()
╠  @@ Sincronização de repositórios ...
╠   # mudler Repository
╠   # URL do Repositório: http://mirror1.mirror.garr.it/mirrors/sabayonlinux/community/mudler/standard/mudler/database/amd64/5 [bz2]
╠   # Diretório local da base de dados: /var/lib/entropy/client/database/amd64/mudler/standard/amd64/5
╠   # API do repositório: 2
╠   #  (1/1) Verificando URL: http://mirror1.mirror.garr.it/mirrors/sabayonlinux╠   # URL Selecionada: http://mirror1.mirror.garr.it/mirrors/sabayonlinux/community/mudler/standard/mudler/database/amd64/5 [bz2]
╠       Atenção: Todos os repositórios atualizados..
╠   # kde-unstable Repository
╠   # URL do Repositório: http://mirror1.mirror.garr.it/mirrors/sabayonlinux/community/kde-unstable/standard/kde-unstable/database/amd64/5 [bz2]
╠   # Diretório local da base de dados: /var/lib/entropy/client/database/amd64/kde-unstable/standard/amd64/5
╠   # API do repositório: 2
╠   #  (1/1) Verificando URL: http://mirror1.mirror.garr.it/mirrors/sabayonlinux╠   # URL Selecionada: http://mirror1.mirror.garr.it/mirrors/sabayonlinux/community/kde-unstable/standard/kde-unstable/database/amd64/5 [bz2]
╠       Atenção: Todos os repositórios atualizados..
╠   # community Repository
╠   # URL do Repositório: http://mirror1.mirror.garr.it/mirrors/sabayonlinux/community/community/standard/community/database/amd64/5 [bz2]
╠   # Diretório local da base de dados: /var/lib/entropy/client/database/amd64/community/standard/amd64/5
╠   # API do repositório: 2
╠   #  (1/1) Verificando URL: http://mirror1.mirror.garr.it/mirrors/sabayonlinux╠   # URL Selecionada: http://mirror1.mirror.garr.it/mirrors/sabayonlinux/community/community/standard/community/database/amd64/5 [bz2]
╠       Atenção: Todos os repositórios atualizados..
╠   # Sabayon Limbo Testing Repository, do not mix with sabayon-weekly, use with sabayonlinux.org
╠   # URL do Repositório: http://pkg.sabayon.org/standard/sabayon-limbo/database/amd64/5 [bz2]
╠   # URL do Repositório: http://pkg.repo.sabayon.org/standard/sabayon-limbo/database/amd64/5 [bz2]
╠   # Diretório local da base de dados: /var/lib/entropy/client/database/amd64/sabayon-limbo/standard/amd64/5
╠   # API do repositório: 3
╠   #  (1/2) Verificando URL: http://pkg.sabayon.org/standard/sabayon-limbo/data╠   # URL Selecionada: http://pkg.sabayon.org/standard/sabayon-limbo/database/amd64/5 [bz2]
╠       Atenção: Todos os repositórios atualizados..
╠   # Sabayon Linux Official Repository
╠   # URL do Repositório: http://pkg.sabayon.org/standard/sabayonlinux.org/database/amd64/5 [bz2]
╠   # URL do Repositório: http://pkg.repo.sabayon.org/standard/sabayonlinux.org/database/amd64/5 [bz2]
╠   # Diretório local da base de dados: /var/lib/entropy/client/database/amd64/sabayonlinux.org/standard/amd64/5
╠   # API do repositório: 2
╠   #  (1/2) Verificando URL: http://pkg.sabayon.org/standard/sabayonlinux.org/d╠   # URL Selecionada: http://pkg.sabayon.org/standard/sabayonlinux.org/database/amd64/5 [bz2]
☢ Oi, sou o Repórter dos Bugs. Desculpe. Seu Programa travou. Bem, você sabe, aconteceu alguma merda... rs!
☢ Mas há algo que você poderia fazer para ajudar a me tornar uma aplicação melhor.
☢ -- POR FAVOR, NÃO REPORTE A MESMA COISA MAIS DE UMA VEZ--
☢ Agora estou mostrando o que acontece. Não entre em pânico, estou aqui para ajudá-lo.
Traceback (most recent call last):
  File "/usr/bin/equo", line 15, in <module>
    main()
  File "/usr/lib/entropy/client/solo/main.py", line 332, in main
    exit_st = func(*func_args)
  File "/usr/lib/entropy/client/solo/commands/command.py", line 406, in _call_exclusive
    return func(client)
  File "/usr/lib/entropy/client/solo/commands/update.py", line 115, in _update
    rc = self._normal_update(entropy_client)
  File "/usr/lib/entropy/client/solo/commands/update.py", line 236, in _normal_update
    rc = repo_intf.sync()
  File "/usr/lib/entropy/lib/entropy/client/interfaces/repository.py", line 327, in sync
    rc = self._run_sync()
  File "/usr/lib/entropy/lib/entropy/client/interfaces/repository.py", line 146, in _run_sync
    self._entropy, repo, self.force, self._gpg_feature)
  File "/usr/lib/entropy/lib/entropy/client/interfaces/db.py", line 2764, in update
    return updater.update()
  File "/usr/lib/entropy/lib/entropy/client/interfaces/db.py", line 2034, in update
    updatable = self._is_repository_updatable(revision)
  File "/usr/lib/entropy/lib/entropy/client/interfaces/db.py", line 385, in _is_repository_updatable
    self._repository_id)
  File "/usr/lib/entropy/lib/entropy/client/interfaces/db.py", line 2778, in revision
    with codecs.open(fname, "r", encoding=enc) as f:
  File "/usr/lib64/python2.7/codecs.py", line 896, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 117] Structure needs cleaning: u'/var/lib/entropy/client/database/amd64/sabayonlinux.org/standard/amd64/5/packages.db.revision'

Frame open in /usr/lib64/python2.7/codecs.py at line 896
	            filename = u'/var/lib/entropy/client/database/amd64/sabayonlinux.org/standard/amd64/5/packages.db.revision'
	                mode = 'rb'
	           buffering = 1
	              errors = 'strict'
	            encoding = 'UTF-8'

Re: One Repository is Corrupted. Cannot Validate [Solved].

Posted: Wed Aug 02, 2017 21:19
by albfneto
SOLVED.
They are errors in the filesystem, corrected with fsck, from a live RescueCD Boot.

However, my HDD gives these errors many times.... It is a new HDD, only 4 months...

Re: One Repository is Corrupted. Cannot Validate [Solved].

Posted: Thu Aug 03, 2017 12:59
by sabayonino
consider to buy/change a new cable :mrgreen:

Re: One Repository is Corrupted. Cannot Validate [Solved].

Posted: Sun Aug 06, 2017 20:03
by albfneto
The cable... is new, and the HDD also.... 4 monthys....

sometimes, seems to me that "systemctl poweroff" cannot working good.
Sometimes, after shutdown system, some file system errors,

switch on sabayon again.... "emergency mode"
and the problems can be corrected using "fsck" under a live DVD environ.

Re: One Repository is Corrupted. Cannot Validate [Solved].

Posted: Mon Aug 07, 2017 9:52
by sabayonino
Which filesystem do you use ?

Re: One Repository is Corrupted. Cannot Validate [Solved].

Posted: Mon Aug 07, 2017 23:21
by albfneto
ext4

some years ago, i used reiserfs, with very good results.

Re: One Repository is Corrupted. Cannot Validate [Solved].

Posted: Tue Aug 08, 2017 19:29
by albfneto
Today, 8....

the same errors... file systems with errors.
in the Sabayon partitions (is this boot!), but also in the OpenSUSE partitions....

only working after corrected from the boot of a Live Disk od "systemrescueCD"

MOBO Problems? Or SystemD problems?

Re: One Repository is Corrupted. Cannot Validate [Solved].

Posted: Wed Aug 09, 2017 16:59
by Stupot
I realize it's a new HDD, but that doesn't mean it's impossible for the drive to have hardware problems. That seems like the most likely issue to me. If it was a common software problem, way more people would have this issue.

Re: One Repository is Corrupted. Cannot Validate [Solved].

Posted: Thu Aug 10, 2017 18:25
by albfneto
The comp is used only for me. Thisd is my personal comp in the University.
Today, no errors. i'm still checking the hardware.