Product Ubuntu deb sync problem

Problem:
Ubuntu 18.04 deb repo will not sync. When i try to sync it in products i am getting a warning (error code attached).
Any idea?

Expected outcome:
https://pastebin.com/0qNA9evR
Foreman and Proxy versions:
Foreman 1.24.2
Katello 3.14.1
Pulp Versin 1.5.0

Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

what is the error code ?

https://pastebin.com/0qNA9evR

With previous foreman and katello versions (Foreman 1.23 Katello 3.13) the sync was working normally.
By sync he starts with green line and:
Copying units already in pulp (0/1)
After that it gets a Warning and stops the sync.
Any idea?

Does anybody know why is that happening in the new version of Foreman-katello?

           {"num_success"=>0,
        "description"=>"",
        "step_type"=>"publish_repodata",
        "items_total"=>1,
        "state"=>"FAILED",
        "error_details"=>
         [{"traceback"=>
            "  File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 257, in process\n" +
            "    self._process_block()\n" +
            "\n" +
            "  File \"/usr/lib/python2.7/site-packages/pulp/plugins/util/publish_step.py\", line 304, in _process_block\n" +
            "    self.process_main()\n" +
            "\n" +
            "  File \"/usr/lib/python2.7/site-packages/pulp_deb/plugins/distributors/distributor.py\", line 422, in process_main\n" +
            "    signer.sign(release_file_path)\n" +
            "\n" +
            "  File \"/usr/lib/python2.7/site-packages/debpkgr/signer.py\", line 124, in sign\n" +
            "    stdout=stdout, stderr=stderr)\n",
           "error"=>"Return code: 2"}],

Looks like the signing of the repository does not work.
How does your signing script look?
Have you configured it correctly in /etc/pulp/server/plugins.conf.d/deb_distributor.json

Hi…
/etc/pulp/server/plugins.conf.d/deb_distributor.json :
{
“gpg_cmd”: “/usr/local/bin/sign.sh”,
“gpg_key_id”: “62DYXXXX”
}

/usr/local/bin/sign.sh :
#!/bin/bash -e
rm -f ${1}.gpg
gpg --homedir /var/lib/pulp/gpg-home --default-key $GPG_KEY_ID -abs -o ${1}.gpg ${1}

Hmm, somehow your signing script seems to fail with return-code 2.
Can you try it on the command line?
Unfortunately, neither stdout nor stderr is logged by the code.
Maybe you can find a way for the script to save it’s output into a file.

I am not aware of significant changes to the way the singing-script is called.

My gpg key was wrong…now it is working again.
Thanks for your help.