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

Often fails when including package into repo #59

Closed
ashish1099 opened this issue Jan 8, 2016 · 4 comments
Closed

Often fails when including package into repo #59

ashish1099 opened this issue Jan 8, 2016 · 4 comments

Comments

@ashish1099
Copy link

Error comes up, whatever method I try.

  1. Added package under repo/tmp/repo fails
  2. su - reprepro and ran icludedeb command still fails

gpgme gave error GPGME:32870: Inappropriate ioctl for device ERROR: Could not finish exporting 'jessie'! This means that from outside your repository will still look like before (and should still work if this old state worked), but the changes intended with this call will not be visible until you call export directly (via reprepro export) Changes will also get visible when something else changes the same file and thus creates a new export of that file, but even changes to other parts of the same distribution will not! There have been errors!

@ashish1099 ashish1099 changed the title Often fails when include package Often fails when including package into repo Jan 8, 2016
@leon0909
Copy link

leon0909 commented May 26, 2016

Hi I am having the same issue,

Inside a docker container running jessy and trying to use gpg signing settings within a conf/distribution reprepro.

<12:01:32>leon@repository:/srv/repository/ubuntu# sudo reprepro export Exporting dapper... Exporting dapper-testing... Exporting hardy... Exporting hardy-testing... Exporting lucid... Exporting lucid-testing... Exporting precise... Exporting precise-testing... Exporting trusty... gpgme gave error GPGME:32870: Inappropriate ioctl for device ERROR: Could not finish exporting 'trusty'! There have been errors!

Note: the signing is set only on trusty here.

Settings for trusty: Codename: trusty Origin: My Origin Name Components: main Label: My Origin Repository Architectures: i386 amd64 SignWith: XXXXXXXX Contents: . .gz .bz2 .xz Log: trusty-packages.my-origin-repo.log Suite: trusty

This could be some issue with caps restrictions of the Docker... but this is the only mentioning on similar gpgme problem, Ive found in two day on google, Iam running jessy, the rest similar ones are all having to do with pacman on Arch Linux, and does not seem to give a clue.

Does somebody have an Idea of help?

Like a 'docker run --some_cap_to_enable_option' ?

or

use another gpgmelib or some gpg configuration adjustment ...

@ashish1099
Copy link
Author

ashish1099 commented May 26, 2016

@leon0909 I found the problem was not with the puppet module, it was with the login and tty access. since I was using a LXC and doing lxc-attach does not give a tty, by using ssh and running the steps it worked fine. can you do the same and try again

@leon0909
Copy link

Hi ashish1099,

It can have something to do with this, and me runnign on docker container, and Docker uses lxc as its base sublayer...

I was logged in with: nsenter
nsenter --target $(docker inspect --format {{.State.Pid}} ${cnt_name}) --mount --uts --ipc --net --pid

and realy had this issue. Perhaps nsenter uses the shell environment from the Docker host letting one into the container.. and the error is a result of it.

But I have just found out another workarround that very well functioned!

Here it is : One needs to mount /dev/pts, one can do this in a bash script that is getting called at the container init or call it through ~/.bashrc

so the answer was for me : /srv/repository/ubuntu# mount -t devpts none /dev/pts && reprepro export

found it here: https://bugzilla.redhat.com/show_bug.cgi?id=1224908#c9

best regards,
Leonid

@ashish1099
Copy link
Author

ashish1099 commented May 26, 2016

@leon0909 thats nice. we can close this issue now. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants