urpmi-proxy "no media.cfg file found"

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

urpmi-proxy "no media.cfg file found"

Postby hduff » Dec 29th, '19, 20:30

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.
hduff
 
Posts: 17
Joined: May 30th, '13, 21:10

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

Postby hduff » Dec 31st, '19, 01:57

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.
hduff
 
Posts: 17
Joined: May 30th, '13, 21:10


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest