FS#36132 - GPGME error: No data

Attached to Project: Arch Linux
Opened by Ramadhika (maskaka) - Saturday, 13 July 2013, 12:20 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 13 July 2013, 14:42 GMT
Task Type Bug Report
Category Mirrors
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

i'm http://suro.ubaya.ac.id/archlinux/ mirror server admin
i've rsync.ed arch repo from rsync://mirrors.uk2.net/archlinux/
on 12 jul 2013 i've feature report my domain mirror and my domain has included in https://www.archlinux.org/mirrors/status/


in 13Jul2013.19:00, i pacman.ed my arch PC but i get this:

admin@kcomp-archlinux $ sudo pacman -Syy
[sudo] password for admin:
error: GPGME error: No data
:: Synchronizing package databases...
core 103.1 KiB 9.92K/s 00:10 [######################] 100%
core.sig 4.0 KiB 24.1K/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update core (invalid or corrupted database (PGP signature))
extra 1439.0 KiB 9.81K/s 02:27 [######################] 100%
extra.sig 4.0 KiB 30.0K/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update extra (invalid or corrupted database (PGP signature))
community 1996.7 KiB 8.25K/s 04:02 [######################] 100%
community.sig 4.0 KiB 31.3K/s 00:00 [######################] 100%
error: GPGME error: No data
error: failed to update community (invalid or corrupted database (PGP signature))
error: failed to synchronize any databases
error: failed to init transaction (invalid or corrupted database (PGP signature))


FYI:
my server is ubuntu server 12.04
my PC is archlinux which fine pacman.ed from other mirror


Q:
why does my server untrusted?
should i wait little longer? how many days should it become trusted?
may i took wrong procedure to make this mirror? what should i implement to my server?



thank you very much ...
This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 13 July 2013, 14:42 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Broken server config is broken.
Comment by Allan McRae (Allan) - Saturday, 13 July 2013, 12:43 GMT
You pacman.conf is wrong.
Comment by Ramadhika (maskaka) - Saturday, 13 July 2013, 13:32 GMT
sir, how can my pacman.conf wrong?
if i pacman.ed other mirror, it's fine, absolutely no error

for example:

debug: curl returned error 0 from transfer
debug: response code: 200
debug: url: http://mirrors.lax1.thegcloud.com/arch/core/os/i686/core.db.sig
debug: maxsize: 16384
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.sig.part (wb)
debug: curl returned error 22 from transfer
debug: failed retrieving file 'core.db.sig' from mirrors.lax1.thegcloud.com : The requested URL returned error: 404 Not Found
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
----no gpgme error---

debug: curl returned error 0 from transfer
debug: response code: 200
debug: url: http://jaran.undip.ac.id/archlinux/core/os/i686/core.db.sig
debug: maxsize: 16384
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.sig.part (wb)
debug: curl returned error 22 from transfer
debug: failed retrieving file 'core.db.sig' from jaran.undip.ac.id : The requested URL returned error: 404 Not Found
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: missing optional signature
---no gpgme error---

debug: curl returned error 0 from transfer
debug: response code: 200
debug: url: http://suro.ubaya.ac.id/archlinux/core/os/i686/core.db.sig
debug: maxsize: 16384
debug: opened tempfile for download: /var/lib/pacman/sync/core.db.sig.part (wb)
downloading core.db.sig...
debug: curl returned error 0 from transfer
debug: response code: 200
debug: GPGME version: 1.4.2
debug: GPGME engine info: file=/usr/bin/gpg, home=/etc/pacman.d/gnupg/
debug: checking signature for /var/lib/pacman/sync/core.db
error: GPGME error: No data
debug: returning error 53 from _alpm_gpgme_checksig : gpgme error
debug: signature check failed
error: failed to update core (invalid or corrupted database (PGP signature))
---error in gpgme---


perhaps i make some mistakes with my server configuration?

thank you very much ...
Comment by Jan de Groot (JGC) - Saturday, 13 July 2013, 14:06 GMT
Your server returns code 200 instead of 404 for missing files. As such, pacman expects a database signature, but gets something else.
Comment by Ramadhika (maskaka) - Saturday, 13 July 2013, 14:06 GMT
whoaaaa, thank you very much sir
it's not my pacman.conf, but it's my server configuration
i use nginx with configuration :

server {
...
location / {
try_files $uri $uri/ /index.html;
}
...
}

so whenever client request to the 'not found' page, it's redirected to index.html -> so the pacman processed to the next step (gpgme bla bla i don't know the mechanism)
then i try to modify with: try_files $uri $uri/ =404;

yes it's works ....


thank you very much

Loading...