Page 1 of 1

urpmi-proxy "no media.cfg file found"

PostPosted: Dec 29th, '19, 20:30
by hduff
Using Mageia7, I am attempting to use urpmi-proxy. When attempting to add my proxy as a repo source, I get "no media.cfg file found".

In urpmi-proxy.conf, I have this configuration,

Code: Select all
$sources = [
'http://mageia.jameswhitby.net'
 ];


which is the directory showing this

Image

My incantation to add the repo is as follows (and I have tried various permutation of the path).

Code: Select all
# urpmi.addmedia --distrib http://mydomain.com/distrib/7.1/x86_64


which returns

Code: Select all
...retrieving failed: curl failed: exited with 28

unable to access the distribution medium (no media.cfg file found)
unable to add medium


Error code 28 is just a timeout. Apache is running correctly on the server.

It must be a configuration error on my part, but I have not been able to figure it out

I have also tried with no success,

Code: Select all
$sources = [
'urpmi'
 ];


The bugfix at https://bugs.mageia.org/show_bug.cgi?id=25845 did not solve the issue for me.

Re: urpmi-proxy "no media.cfg file found"

PostPosted: Dec 31st, '19, 01:57
by hduff
I have made some progress.

Using the actual entries from viewtopic.php?t=1770, I am able to make it work.

I can see that the ending directory of the $source must be the first directory in the urpmi.addmedia invocation.

The problem I'm having is that mageia.jameswhidby.net points directly to the initial directory and perhaps the urpmi.addmedia invocation gets confused as to the correct path. I'm not sure what it sees. but It does not show up in the urpmi.proxy error log.

I'll do some more investigation this evening when I get home.