some commonly seen fedpkg errors and solutions

1. fedpkg clone publickey error.

[test@NUC-UEFI fedora-scm]$ fedpkg clone tpm2-tss
Cloning into 'tpm2-tss'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Could not execute clone: Command '['git', 'clone', 'ssh://test@pkgs.fedoraproject.org/rpms/tpm2-tss', '--origin', 'origin']' returned non-zero exit status 128

Causee:

git clone is using user "test" instead of the FAS account username.

Solution:

$ fedpkg  --user <FAS_USERNAME> clone tpm2-tss


Preconditions(MUST to have before doing "fedpkg clone"):

a) user must get the membership for Fedora packager group.

b) ssh public key of local must be added to FAS account.


2. fedpkg build error - "No credential cache found"

Cause:

The user's credential cache is incorrect ordoes not exist.

Solution:

The user should run kinit beforetrying to start the service.

$ kinit <fas_username>@FEDORAPROJECT.ORG


3, "fedpkg build" hang for long time, "fedpkg -v build" prints some "authentication failure" and "failed connecting to proxy" messages.

Cause: network problem under proxy. "echo $http_proxy" and "echo $https_proxy" to check whether you are using proxies.

Solution: Try not using proxy by "unset http_proxy" and "unset https_proxy".


4.

I updated SPEC, and did a build in Mar:
https://koji.fedoraproject.org/koji/buildinfo?buildID=863183

But when doing "fedpkg update", always get error:
Invalid tag: tpm2-tools-1.1.0-6.fc26 not tagged with any of the following tags [u'f22-updates-candidate', u'dist-6E-epel-testing-candidate', u'f21-updates-candidate', u'f24-updates-candidate', u'f26-updates-candidate', u'epel7-testing-candidate', u'f25-updates-candidate', u'f23-updates-candidate', u'dist-5E-epel-testing-candidate']
Unable to determine release from build: tpm2-tools-1.1.0-6.fc26

Cause:

The tag of build:
https://koji.fedoraproject.org/koji/buildinfo?buildID=863183
is set to fc27, instead of fc26. 

Fix:

Increase release version, do another "fedpkg build" & "fedpkg update".


5. fedpkg update error:

ServerError: ServerError(https://bodhi.fedoraproject.org/updates/, 403, Error returned from json module while processing https://bodhi.fedoraproject.org/updates/: No JSON object could be decoded

It looks like a bug in bodhi. Bug 1445294 - bodhi client cannot submit a new update" 

and workaround is
$ rm ~/.fedora/openidbaseclient-sessions.cache

This will be fixed by python-fedora-0.9 for bodhi-0.9 users, and will be fixed by the combination of python-fedora-0.9 and bodhi-2.6.2 for bodhi-2 users.

More info please refer to:
https://bugzilla.redhat.com/show_bug.cgi?id=1446575
https://bugzilla.redhat.com/show_bug.cgi?id=1445294

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值