Error creating Local Apigee Repository

Hello.

I'm trying to create a local Apigee repo , but got this error:

 

$ sudo /opt/apigee/apigee-service/bin/apigee-service apigee-mirror sync
apigee-configutil: apigee-mirror: # OK
replacing apigeecredentialswithat in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeeexclude in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeepassword in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeepriority in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeepriostage in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeeprotocol in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeereleasever in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeerepobasepath in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeerepohost in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeestage in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
replacing apigeeuser in /opt/apigee/data/apigee-mirror/apigee-mirror.repo
Mirroring apigee repo to /opt/apigee/data/apigee-mirror/repos
Synchronizing apigee-thirdparty os 2
Command line error: argument -d/--debuglevel: expected one argument
usage: reposync [-c [config file]] [-q] [-v] [--version]
                [--installroot [path]] [--nodocs] [--noplugins]
                [--enableplugin [plugin]] [--disableplugin [plugin]]
                [--releasever RELEASEVER] [--setopt SETOPTS] [--skip-broken]
                [-h] [--allowerasing] [-b | --nobest] [-C] [-R [minutes]]
                [-d [debug level]] [--debugsolver] [--showduplicates]
                [-e ERRORLEVEL] [--obsoletes]
                [--rpmverbosity [debug level name]] [-y] [--assumeno]
                [--enablerepo [repo]] [--disablerepo [repo] | --repo [repo]]
                [--enable | --disable] [-x [package]]
                [--disableexcludes [repo]] [--repofrompath [repo,path]]
                [--noautoremove] [--nogpgcheck] [--color COLOR] [--refresh]
                [-4] [-6] [--destdir DESTDIR] [--downloadonly]
                [--comment COMMENT] [--bugfix] [--enhancement] [--newpackage]
                [--security] [--advisory ADVISORY] [--bz BUGZILLA]
                [--cve CVES]
                [--sec-severity {Critical,Important,Moderate,Low}]
                [--forcearch ARCH]
reposync failed. Exiting.
$ _

 

Looks like a problem on reposync command.  Any ideas? Sorry abou my poor english.

Thank you all.

0 1 126
1 REPLY 1

Ok! I found two sittuations in file /opt/apigee/apigee-mirror/lib/actions/sync. Some commands are passing the wrong option.

 

/usr/bin/reposync -r apigee-thirdparty-$thirdpartyos --norepopath -d -p ${repo_basepath}/thirdparty/$thirdpartyos -c ${APIGEE_APP_DATADIR}/apigee-mirror.repo

 

The dnf reposync command is reciving 2 wrong options:

-r  : The correctly option is --repo
-d
 : Missing debug level. I filled with 2 and was fine.

Another part has the dnf reposync command again with the same issues:

/usr/bin/reposync ${only_new_rpms} -r apigee-mirror-$apigeestage --norepopath -d -p ${repo_basepath}/apigee/$apigeestage/$apigeereleasever  -c ${APIGEE_APP_DATADIR}/apigee-mirror.repo 2>&1 | grep -v "edge-sap*" | grep -v "apigee-sap*" || err_msg "reposync failed"

 

BTW, im using DNF v4.4.2.