Recent

Author Topic: fppkg HTTP Download of "../mirrors.xml" failed: Moved Permanently  (Read 540 times)

Thausand

  • Full Member
  • ***
  • Posts: 227
hi hello,

I have error fppkg freepascal 3.0.4
Code: [Select]
~/bin/fpc/3.0.4/bin/arm-linux $ ./fppkg listsettings
Warning: HTTP Download of "https://www.freepascal.org:80/repository/mirrors.xml" failed: Moved Permanently
Using global configuration from file "/home/pi/.config/fppkg.cfg":
 RemoteMirrorsURL:      https://www.freepascal.org/repository/mirrors.xml
I change http (default) to https configuration file. Browser do http -> https when use chrome so i think that fix but not  work :'(

I not understand. How can fix or were i look ?


rvk

  • Hero Member
  • *****
  • Posts: 3780
Re: fppkg HTTP Download of "../mirrors.xml" failed: Moved Permanently
« Reply #1 on: April 10, 2019, 01:36:51 pm »
For me 'listsettings' gives a warning.
Quote
Warning: No SSL Socket support compiled in.
Please include opensslsockets unit in program and recompile it.
It does not give an error yet.

fppkg update does give an error:
Quote
Warning: No SSL Socket support compiled in.
Please include opensslsockets unit in program and recompile it.
The FPC Package tool encountered the following error:
No SSL Socket support compiled in.
Please include opensslsockets unit in program and recompile it.


Thausand

  • Full Member
  • ***
  • Posts: 227
Re: fppkg HTTP Download of "../mirrors.xml" failed: Moved Permanently
« Reply #2 on: April 10, 2019, 02:09:35 pm »
hello rvk,

Thanksy for help. I need time think how get same error you write.

Maybe i see wrong but how can fix version 3.0.4 freepascal when no release more new version 3.0.4 freepascal ? Write example when not can/want version trunk. Just example i write. That also why i need think.

sstvmaster

  • Full Member
  • ***
  • Posts: 104
Re: fppkg HTTP Download of "../mirrors.xml" failed: Moved Permanently
« Reply #3 on: April 10, 2019, 02:31:16 pm »
https and port 80 does not work.

Quote
https://www.freepascal.org:80/repository/mirrors.xml

This works: https://www.freepascal.org/repository/mirrors.xml
« Last Edit: April 10, 2019, 02:37:34 pm by sstvmaster »
Lazarus 2.0.4 x32
Lazarus 2.1.0 Trunk x32
OS Win 7 32bit

Thausand

  • Full Member
  • ***
  • Posts: 227
Re: fppkg HTTP Download of "../mirrors.xml" failed: Moved Permanently
« Reply #4 on: April 10, 2019, 03:18:14 pm »
https and port 80 does not work.

Quote
https://www.freepascal.org:80/repository/mirrors.xml

This works: https://www.freepascal.org/repository/mirrors.xml
I not make port 80  :'(

fppkg.cfg read:
Code: [Select]
[Defaults]
ConfigVersion=4
RemoteMirrors= https://www.freepascal.org/repository/mirrors.xml
GlobalPrefix=/usr/local/
LocalPrefix={LocalRepository}
GlobalInstallDir={GlobalPrefix}lib/fpc/{CompilerVersion}/
LocalInstallDir={LocalPrefix}lib/fpc/{CompilerVersion}/
Compiler=/home/pi/bin/scripts/fpc
OS=linux
CPU=arm
Version=3.0.4

Is use same url you. Not work linux same i think.

No can update when file not load url. so is error also for me. my error no write Warning: "No SSL Socket support compiled in."

my error write:
Code: [Select]
./fppkg update
Warning: HTTP Download of "https://www.freepascal.org:80/repository/mirrors.xml" failed: Moved Permanently
The FPC Package tool encountered the following error:
HTTP Download of "https://www.freepascal.org:80/repository/mirrors.xml" failed: Moved Permanently

Thanksy for help sstvmaster but make more confuse ...

rvk

  • Hero Member
  • *****
  • Posts: 3780
Re: fppkg HTTP Download of "../mirrors.xml" failed: Moved Permanently
« Reply #5 on: April 10, 2019, 03:37:40 pm »
pkgoptions.pp in fpc/3.0.4/sources/packages/fppkg/src is from 11-02-2014
On 23 june 2017 this file was updated from http to https.

I don't think there is a (easy) way to use the fppkg from 3.0.4 to use https.
Even putting :443 in the url doesn't make it switch to https.

Quote
Warning: HTTP Download of "https://www.freepascal.org:443/repository/mirrors.xml" failed: Bad Request
The FPC Package tool encountered the following error:
HTTP Download of "https://www.freepascal.org:443/repository/mirrors.xml" failed: Bad Request

The only fix would be to not do the https redirect for www.freepascal.org.

(But for God's sake, let them keep it for the forum url !!)

Thausand

  • Full Member
  • ***
  • Posts: 227
Re: fppkg HTTP Download of "../mirrors.xml" failed: Moved Permanently
« Reply #6 on: April 25, 2019, 02:46:27 pm »
Hi hello rvk,

I give many thanks for try help.

I think there no solution fix problem (or make change back website). I think is no good make change and no have version that work. Now have wait release freepascal new.