Recent

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

Thausand

  • Sr. Member
  • ****
  • Posts: 292
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: 6163
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

  • Sr. Member
  • ****
  • Posts: 292
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

  • Sr. Member
  • ****
  • Posts: 299
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 »
greetings Maik

Windows 10,
- Lazarus 2.2.6 (stable) + fpc 3.2.2 (stable)
- Lazarus 2.2.7 (fixes) + fpc 3.3.1 (main/trunk)

Thausand

  • Sr. Member
  • ****
  • Posts: 292
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: 6163
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

  • Sr. Member
  • ****
  • Posts: 292
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.

 

TinyPortal © 2005-2018