Board index FlightGear Support Installation Linux

FGdata downloading error  Topic is solved

Installing FlightGear, scenery, aircraft etc. on Linux systems like Ubuntu.

Re: FGdata downloading error

Postby daweed » Tue Mar 13, 2018 7:14 am

Hello,

Thanks for full explain, but seems i have a problem with concact :

Code: Select all
daweed@farmersaloon /data01/Flightgear/fgdata-split $ ll
total 3156360
drwxr-xr-x 2 daweed daweed      4096 mars  13 07:04 ./
drwxrwxr-x 5 daweed users       4096 mars  13 07:03 ../
-rw-rw-r-- 1 daweed daweed 524288000 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.1
-rw-rw-r-- 1 daweed daweed 279410414 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.2
-rw-rw-r-- 1 daweed daweed 524288000 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.3
-rw-rw-r-- 1 daweed daweed 524288000 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.4
-rw-rw-r-- 1 daweed daweed 525510023 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.4.xformed
-rw-rw-r-- 1 daweed daweed 524288000 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.4.xored
-rw-rw-r-- 1 daweed daweed 329987443 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.5
-rw-rw-r-- 1 daweed daweed       515 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz-chunks.SHA256SUM
-rw-rw-r-- 1 daweed daweed       835 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz-chunks.SHA512SUM

daweed@farmersaloon /data01/Flightgear/fgdata-split $ cat fgdata-bare-b45ae04c153.git.tar.gz.1 fgdata-bare-b45ae04c153.git.tar.gz.2 fgdata-bare-b45ae04c153.git.tar.gz.3 fgdata-bare-b45ae04c153.git.tar.gz.4 fgdata-bare-b45ae04c153.git.tar.gz.5 > fgdata-bare-b45ae04c153.git.tar.gz

daweed@farmersaloon /data01/Flightgear/fgdata-split $ ll
total 5287480
drwxr-xr-x 2 daweed daweed       4096 mars  13 07:06 ./
drwxrwxr-x 5 daweed users        4096 mars  13 07:03 ../
-rw-rw-r-- 1 daweed daweed 2182261857 mars  13 07:06 fgdata-bare-b45ae04c153.git.tar.gz
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.1
-rw-rw-r-- 1 daweed daweed  279410414 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.2
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.3
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.4
-rw-rw-r-- 1 daweed daweed  525510023 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.4.xformed
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.4.xored
-rw-rw-r-- 1 daweed daweed  329987443 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz.5
-rw-rw-r-- 1 daweed daweed        515 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz-chunks.SHA256SUM
-rw-rw-r-- 1 daweed daweed        835 mars  13 07:04 fgdata-bare-b45ae04c153.git.tar.gz-chunks.SHA512SUM

daweed@farmersaloon /data01/Flightgear/fgdata-split $ sha512sum fgdata-bare-b45ae04c153.git.tar.gz
072a8372eb5abd7194eba66de4bf562a6fd1ce80524e1189aa0cce7908977046b25d6eb560d6d08eca4c381d403b565f77e6681da83a3543d34d2cd187902cb3  fgdata-bare-b45ae04c153.git.tar.gz


daweed@farmersaloon /data01/Flightgear/fgdata-split $


Regards

Daweed
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: FGdata downloading error

Postby rominet » Tue Mar 13, 2018 9:07 am

The most obvious problem is that your fgdata-bare-b45ae04c153.git.tar.gz.2 is way too small, see here again. All files fgdata-bare-b45ae04c153.git.tar.gz.{1,2,3,4} have exactly 524288000 bytes. Only the fifth chunk fgdata-bare-b45ae04c153.git.tar.gz.5 is shorter, with 329987443 bytes.

You may check the integrity of fgdata-bare-b45ae04c153.git.tar.gz.{1,2,3,4,5} by running this command from the same directory:
Code: Select all
sha512sum -c fgdata-bare-b45ae04c153.git.tar.gz-chunks.SHA512SUM

but it is better in the end to check against the control sums I posted on the forum(*), because the FG forum is independent from frougon.net and supports HTTPS, whereas frougon.net only supports HTTP.

(*) For instance, the one in my previous message for fgdata-bare-b45ae04c153.git.tar.gz.
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: FGdata downloading error

Postby daweed » Tue Mar 13, 2018 9:28 am

Hello Rominet
Thanks for your patience, i will retry download this morning from my office [ about a 2 minutes to download a chunk ] and will retry to concat.

Will keep you informed asap

Best regards

Daweed
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: FGdata downloading error

Postby daweed » Tue Mar 13, 2018 2:40 pm

Hello,

I don't know why it take me this morning about 10 try to download correctly the file fgdata-bare-b45ae04c153.git.tar.gz.2
Download use to fail between 200 and 300 Mo ... [ download ETA begin to increase .. then stop ]
Sorry for your bandwith.

Now i have all chunk, i concact all piece and now have a good control sum :

daweed@farmersaloon /data01/Flightgear/fgdata-split $ ll
total 4740536

-rw-r--r-- 1 daweed daweed 2427139443 Mar 13 14:27 fgdata-bare-b45ae04c153.git.tar.gz
-rw-r--r-- 1 daweed daweed 524288000 Mar 13 14:22 fgdata-bare-b45ae04c153.git.tar.gz.1
-rw-r--r-- 1 daweed daweed 524288000 Mar 13 14:22 fgdata-bare-b45ae04c153.git.tar.gz.2
-rw-r--r-- 1 daweed daweed 524288000 Mar 13 14:24 fgdata-bare-b45ae04c153.git.tar.gz.3
-rw-r--r-- 1 daweed daweed 524288000 Mar 13 14:24 fgdata-bare-b45ae04c153.git.tar.gz.4
-rw-r--r-- 1 daweed daweed 329987443 Mar 13 14:25 fgdata-bare-b45ae04c153.git.tar.gz.5


daweed@farmersaloon /data01/Flightgear/fgdata-split $ sha512sum fgdata-bare-b45ae04c153.git.tar.gz
0ff5947527d3361df2d8a182a4c32128342cc418c36b594f7e06bd1653da2893c00c6370ee517c46caf184170f40502f77e59c57262c175dca1dc06301e5557f fgdata-bare-b45ae04c153.git.tar.gz

I ll finish the procedure when back at home this evening
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: FGdata downloading error

Postby bugman » Tue Mar 13, 2018 4:13 pm

I think that the SourceForge infrastructure is under a lot of pressure at the moment due to them rebuilding the HTML front-end web pages for all source repositories. Waiting is generally the best cure for such infrastructure issues.

Regards,
Edward
bugman
Moderator
 
Posts: 1808
Joined: Thu Mar 19, 2015 10:01 am
Version: next

Re: FGdata downloading error

Postby rominet » Tue Mar 13, 2018 4:44 pm

@bugman: maybe, but in this case this is on frougon.net, not SourceForge. :wink:

It's possible that if several people are trying these downloads at the same time, frougon.net doesn't have enough bandwidth to serve them all (the hosting company says bandwidth is “unlimited” , hum :roll:). In any case, if a download stops, best is to resume from where it stopped instead of restarting it from the beginning. With wget, using the -c option does that:
Code: Select all
wget -c http://example.com/path/to/the/file

@daweed: glad to see your checksum is fine. :)
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: FGdata downloading error

Postby daweed » Tue Mar 13, 2018 7:38 pm

Hello Rominet,

just for informations

In the same time this morning i tried to download chunk 1 and 4 and didn't failed [ twice ]
I encounter problem only with the chunk 2

Just getting back home, will try the end of the procedure after diner :)
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: FGdata downloading error

Postby daweed » Tue Mar 13, 2018 9:10 pm

Hello,

I finally get the fgdata directory, but update [ git pull at the end of procedure ] failed as like the download and compile script :

Code: Select all
daweed@farmersaloon /data01/Flightgear/fgdata-split $ ll
total 4740544
drwxr-xr-x 2 daweed daweed       4096 mars  13 20:32 ./
drwxrwxr-x 5 daweed users        4096 mars  13 07:03 ../
-rw-rw-r-- 1 daweed daweed 2427139443 mars  13 20:32 fgdata-bare-b45ae04c153.git.tar.gz
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.1
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.2
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.3
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 19:34 fgdata-bare-b45ae04c153.git.tar.gz.4
-rw-rw-r-- 1 daweed daweed  329987443 mars  13 19:34 fgdata-bare-b45ae04c153.git.tar.gz.5

daweed@farmersaloon /data01/Flightgear/fgdata-split $ tar vxfz fgdata-bare-b45ae04c153.git.tar.gz
fgdata.git-bare/
fgdata.git-bare/HEAD
fgdata.git-bare/refs/
fgdata.git-bare/refs/heads/
fgdata.git-bare/refs/tags/
fgdata.git-bare/info/
fgdata.git-bare/info/exclude
fgdata.git-bare/description
fgdata.git-bare/hooks/
fgdata.git-bare/hooks/commit-msg.sample
fgdata.git-bare/hooks/pre-receive.sample
fgdata.git-bare/hooks/prepare-commit-msg.sample
fgdata.git-bare/hooks/applypatch-msg.sample
fgdata.git-bare/hooks/pre-push.sample
fgdata.git-bare/hooks/pre-commit.sample
fgdata.git-bare/hooks/pre-applypatch.sample
fgdata.git-bare/hooks/pre-rebase.sample
fgdata.git-bare/hooks/update.sample
fgdata.git-bare/hooks/post-update.sample
fgdata.git-bare/packed-refs
fgdata.git-bare/config
fgdata.git-bare/objects/
fgdata.git-bare/objects/pack/
fgdata.git-bare/objects/pack/pack-a84558f6730154747e6f0d4c02e815fa8c97e6f5.idx
fgdata.git-bare/objects/pack/pack-a84558f6730154747e6f0d4c02e815fa8c97e6f5.pack
fgdata.git-bare/objects/info/
fgdata.git-bare/branches/

daweed@farmersaloon /data01/Flightgear/fgdata-split $ ll

drwxr-xr-x 3 daweed daweed       4096 mars  13 20:33 ./
drwxrwxr-x 5 daweed users        4096 mars  13 07:03 ../
-rw-rw-r-- 1 daweed daweed 2427139443 mars  13 20:32 fgdata-bare-b45ae04c153.git.tar.gz
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.1
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.2
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.3
-rw-rw-r-- 1 daweed daweed  524288000 mars  13 19:34 fgdata-bare-b45ae04c153.git.tar.gz.4
-rw-rw-r-- 1 daweed daweed  329987443 mars  13 19:34 fgdata-bare-b45ae04c153.git.tar.gz.5
drwxr-xr-x 7 daweed daweed       4096 janv. 11 18:23 fgdata.git-bare/

daweed@farmersaloon /data01/Flightgear/fgdata-split $ git clone fgdata.git-bare fgdata
Clonage dans 'fgdata'...
fait.
Extraction des fichiers: 100% (11864/11864), fait.

daweed@farmersaloon /data01/Flightgear/fgdata-split $ ll
total 4740552
drwxr-xr-x  4 daweed daweed       4096 mars  13 20:34 ./
drwxrwxr-x  5 daweed users        4096 mars  13 07:03 ../
drwxrwxr-x 32 daweed daweed       4096 mars  13 20:34 fgdata/
-rw-rw-r--  1 daweed daweed 2427139443 mars  13 20:32 fgdata-bare-b45ae04c153.git.tar.gz
-rw-rw-r--  1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.1
-rw-rw-r--  1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.2
-rw-rw-r--  1 daweed daweed  524288000 mars  13 19:33 fgdata-bare-b45ae04c153.git.tar.gz.3
-rw-rw-r--  1 daweed daweed  524288000 mars  13 19:34 fgdata-bare-b45ae04c153.git.tar.gz.4
-rw-rw-r--  1 daweed daweed  329987443 mars  13 19:34 fgdata-bare-b45ae04c153.git.tar.gz.5
drwxr-xr-x  7 daweed daweed       4096 janv. 11 18:23 fgdata.git-bare/

daweed@farmersaloon /data01/Flightgear/fgdata-split $ cd fgdata

daweed@farmersaloon /data01/Flightgear/fgdata-split/fgdata $ ll

total 444
drwxrwxr-x 32 daweed daweed  4096 mars  13 20:34 ./
drwxr-xr-x  4 daweed daweed  4096 mars  13 20:34 ../
drwxrwxr-x  8 daweed daweed  4096 mars  13 20:34 AI/
drwxrwxr-x  7 daweed daweed  4096 mars  13 20:34 Aircraft/
drwxrwxr-x 23 daweed daweed  4096 mars  13 20:34 Aircraft-uiuc/
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 Airports/
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 Astro/
drwxrwxr-x  3 daweed daweed  4096 mars  13 20:34 ATC/
-rw-rw-r--  1 daweed daweed  2532 mars  13 20:34 AtlasPalette
-rw-rw-r--  1 daweed daweed   718 mars  13 20:34 AUTHORS
-rw-rw-r--  1 daweed daweed   247 mars  13 20:34 ChangeLog
-rw-rw-r--  1 daweed daweed 17992 mars  13 20:34 COPYING
-rw-rw-r--  1 daweed daweed 60939 mars  13 20:34 defaults.xml
drwxrwxr-x  6 daweed daweed  4096 mars  13 20:34 Docs/
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 Effects/
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 Environment/
drwxrwxr-x  4 daweed daweed  4096 mars  13 20:34 Fonts/
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 Geodata/
drwxrwxr-x  8 daweed daweed  4096 mars  13 20:34 .git/
-rw-rw-r--  1 daweed daweed    18 mars  13 20:34 .gitignore
drwxrwxr-x  6 daweed daweed  4096 mars  13 20:34 gui/
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 HLA/
-rw-rw-r--  1 daweed daweed  1968 mars  13 20:34 httpd-settings.xml
drwxrwxr-x  4 daweed daweed  4096 mars  13 20:34 Huds/
drwxrwxr-x  5 daweed daweed  4096 mars  13 20:34 Input/
-rw-rw-r--  1 daweed daweed   853 mars  13 20:34 joysticks.xml
-rw-rw-r--  1 daweed daweed 36673 mars  13 20:34 keyboard.xml
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 Lighting/
-rw-rw-r--  1 daweed daweed  2824 mars  13 20:34 location-presets.xml
drwxrwxr-x  6 daweed daweed  4096 mars  13 20:34 Materials/
-rw-rw-r--  1 daweed daweed 11777 mars  13 20:34 mice.xml
drwxrwxr-x 19 daweed daweed  4096 mars  13 20:34 Models/
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 MP/
drwxrwxr-x 12 daweed daweed  4096 mars  13 20:34 Nasal/
drwxrwxr-x  3 daweed daweed  4096 mars  13 20:34 Navaids/
-rw-rw-r--  1 daweed daweed 76525 mars  13 20:34 NEWS
-rw-rw-r--  1 daweed daweed 26245 mars  13 20:34 options.xml
drwxrwxr-x 12 daweed daweed  4096 mars  13 20:34 Phi/
drwxrwxr-x  2 daweed daweed  4096 mars  13 20:34 Protocol/
-rw-rw-r--  1 daweed daweed  1380 mars  13 20:34 README
-rw-rw-r--  1 daweed daweed   746 mars  13 20:34 README-textures-ng
-rw-rw-r--  1 daweed daweed   436 mars  13 20:34 runfgfs.bat
drwxrwxr-x  2 daweed daweed 12288 mars  13 20:34 Shaders/
drwxrwxr-x  4 daweed daweed  4096 mars  13 20:34 Sounds/
drwxrwxr-x 13 daweed daweed  4096 mars  13 20:34 Textures/
-rw-rw-r--  1 daweed daweed 32170 mars  13 20:34 Thanks
drwxrwxr-x 22 daweed daweed  4096 mars  13 20:34 Timezone/
drwxrwxr-x 13 daweed daweed  4096 mars  13 20:34 Translations/
-rw-rw-r--  1 daweed daweed     9 mars  13 20:34 version
drwxrwxr-x  3 daweed daweed  4096 mars  13 20:34 Video/

daweed@farmersaloon /data01/Flightgear/fgdata-split/fgdata $ git remote set-url origin https://git.code.sf.net/p/flightgear/fgdata
daweed@farmersaloon /data01/Flightgear/fgdata-split/fgdata $ git remote set-head origin next
daweed@farmersaloon /data01/Flightgear/fgdata-split/fgdata $ git pull

error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header

daweed@farmersaloon /data01/Flightgear/fgdata-split/fgdata $


I push the fgdata directory to my FG install tree (/data01/Flightgear/next/install/flightgear/) and just start fgfs binary :

Gui startup and said :

Flightgear Version 2018.2.0

=> the choosen location /data01/Flightgear/next/install/flightgear/fgdata contains files for version 2017.4.0 but this is Flightgear 2018.2.0 please upgrade or try an another location :)

Googling with the "error error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated." seems to say that it's due to git witch is compile with GnuTLS instead of openssl ?!

Best regards

Daweed
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: FGdata downloading error

Postby daweed » Tue Mar 13, 2018 9:54 pm

I have made some search with the
error error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.

=> i have install the libcurl4-openssl-dev
doing this , this remove the libcurl4-gnutls-dev lib

Then i go back to the fgdata and restart a git pull

=> pull worked immediatly, the fgdata is up to date now.

I tried so to restart a download and compile script.

=> Each time, script want to remove the libcurl4-openssl-dev and want to replace it with libcurl4-gnutls-dev one

To give a try

1°) i move fgdata to fgdata.good

2°) i comment the 2 order updating os in the download script (apt-get update and apt-get install) and then restart a download and compile batch as like

../download_and_compile.sh DATA

Actually, downloading i will report when process will ending [ tomorrow morning now going to sleep ... download will probably take more that an hour at home ]

Best regards
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: FGdata downloading error

Postby rominet » Tue Mar 13, 2018 10:18 pm

Excellent! Indeed, on my system, libcurl4-openssl-dev is installed whereas libcurl4-gnutls-dev isn't, which would explain why I don't see the error. I'll push a fix for download_and_compile.sh; I think I'll declare that either of the two packages is required, and that libcurl4-openssl-dev is preferred if available.

Edit: done in FGMeta commit 5eb7dd3e, you may want to update your download_and_compile.sh script.

BTW, you don't have to comment out stuff like you did, there are options for that:
Code: Select all
APT_GET_UPDATE="y"
DOWNLOAD_PACKAGES="y"
COMPILE="y"
RECONFIGURE="y"
DOWNLOAD="y"
JOPTION=""
OOPTION=""
BUILD_TYPE="RelWithDebInfo"
SG_CMAKEARGS=""
FG_CMAKEARGS=""

declare -a UNMATCHED_OPTIONAL_PKG_ALTERNATIVES

while getopts "shc:p:a:d:r:j:O:ib:" OPTION; do
  case $OPTION in
    s) STABLE="STABLE" ;;
    h) HELP="HELP" ;;
    a) APT_GET_UPDATE=$OPTARG ;;
    c) COMPILE=$OPTARG ;;
    p) DOWNLOAD_PACKAGES=$OPTARG ;;
    d) DOWNLOAD=$OPTARG ;;
    r) RECONFIGURE=$OPTARG ;;
    j) JOPTION=" -j"$OPTARG" " ;;
    O) OOPTION=" -O"$OPTARG" " ;;
    i) OPENRTI="OPENRTI" ;;
    b) BUILD_TYPE="$OPTARG" ;;
    ?) HELP="HELP" ;;
  esac
done

So, using '-p n' in your download_and_compile.sh command should prevent it from doing the 'apt-get install' step. Otherwise, with local changes, you'll have problems for updating fgmeta (you can use 'git reset --hard' inside your fgmeta clone if you want to discard all local changes).
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: FGdata downloading error

Postby daweed » Wed Mar 14, 2018 7:10 am

Download failed with download and compile script .... :(
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: FGdata downloading error

Postby rominet » Wed Mar 14, 2018 7:29 am

Which version of download_and_compile.sh and which error?
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: FGdata downloading error

Postby daweed » Wed Mar 14, 2018 7:36 am

Hello Sorry, my old script one (with comment so no update) and same error as the begining

I am looking to download new version of the script

New version of the download script downloaded

Restarting ../download_and_compile.sh DATA

Code: Select all
daweed@farmersaloon /data01/Flightgear/next $ ../download_and_compile.sh DATA
**************************************
*                                    *
* Warning, the compilation process   *
* is going to use 12 or more Gbytes  *
* of space and at least a couple of  *
* hours to download and build FG.    *
*                                    *
* Please, be patient ......          *
*                                    *
**************************************
Asking password for 'apt-get update'...
[sudo] Mot de passe de daweed :
Atteint:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Atteint:2 http://archive.canonical.com/ubuntu xenial InRelease                                                                                                                   
Ign:3 http://packages.linuxmint.com sylvia InRelease                                                                             
Atteint:4 http://packages.linuxmint.com sylvia Release                                                                   
Atteint:6 http://archive.ubuntu.com/ubuntu xenial InRelease                                   
Atteint:7 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Atteint:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Lecture des listes de paquets... Fait
Considering a package alternative: libcurl4-openssl-dev libcurl4-gnutls-dev
Package alternative matched for libcurl4-openssl-dev
Considering a package alternative: libopenscenegraph-3.4-dev libopenscenegraph-dev libopenscenegraph-[0-9]+\.[0-9]+-dev
Package alternative matched for libopenscenegraph-dev
Considering a package alternative: libpng-dev libpng12-dev libpng16-dev
Package alternative matched for libpng12-dev
Considering an optional package alternative: qtbase5-private-dev
Optional package alternative matched for qtbase5-private-dev
Considering an optional package alternative: qtdeclarative5-private-dev
Optional package alternative matched for qtdeclarative5-private-dev
Considering an optional package alternative: qml-module-qtquick2
Optional package alternative matched for qml-module-qtquick2
Considering an optional package alternative: qml-module-qtquick-window2
Optional package alternative matched for qml-module-qtquick-window2
Asking password for 'apt-get install build-essential cmake git libcurl4-openssl-dev libarchive-dev libbz2-dev libexpat1-dev libjsoncpp-dev liblzma-dev libncurses5-dev procps zlib1g-dev libcgal-dev libgdal-dev libtiff5-dev libqt4-dev zlib1g-dev freeglut3-dev libboost-dev libopenscenegraph-dev libopenal-dev libudev-dev qt5-default qtdeclarative5-dev libdbus-1-dev libplib-dev libpng12-dev qtbase5-private-dev qtdeclarative5-private-dev qml-module-qtquick2 qml-module-qtquick-window2 fluid libbz2-dev libfltk1.3-dev libxi-dev libxmu-dev libxinerama-dev libjpeg-dev libxft-dev python3-pyqt5 python3-pyqt5.qtmultimedia libqt5multimedia5-plugins python-tk'...
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
build-essential est déjà la version la plus récente (12.1ubuntu2).
libboost-dev est déjà la version la plus récente (1.58.0.1ubuntu1).
libbz2-dev est déjà la version la plus récente (1.0.6-8).
libjpeg-dev est déjà la version la plus récente (8c-2ubuntu8).
libjsoncpp-dev est déjà la version la plus récente (1.7.2-1).
liblzma-dev est déjà la version la plus récente (5.1.1alpha+20120614-2ubuntu2).
libncurses5-dev est déjà la version la plus récente (6.0+20160213-1ubuntu1).
libpng12-dev est déjà la version la plus récente (1.2.54-1ubuntu1).
libqt4-dev est déjà la version la plus récente (4:4.8.7+dfsg-5ubuntu2).
libqt5multimedia5-plugins est déjà la version la plus récente (5.5.1-4ubuntu2).
libxft-dev est déjà la version la plus récente (2.3.2-1).
libxi-dev est déjà la version la plus récente (2:1.7.6-1).
libxinerama-dev est déjà la version la plus récente (2:1.1.3-1).
libxmu-dev est déjà la version la plus récente (2:1.1.2-2).
qml-module-qtquick-window2 est déjà la version la plus récente (5.5.1-2ubuntu6).
qml-module-qtquick2 est déjà la version la plus récente (5.5.1-2ubuntu6).
qtdeclarative5-dev est déjà la version la plus récente (5.5.1-2ubuntu6).
qtdeclarative5-private-dev est déjà la version la plus récente (5.5.1-2ubuntu6).
fluid est déjà la version la plus récente (1.3.3-7).
freeglut3-dev est déjà la version la plus récente (2.8.1-2).
libcgal-dev est déjà la version la plus récente (4.7-4).
libfltk1.3-dev est déjà la version la plus récente (1.3.3-7).
libgdal-dev est déjà la version la plus récente (1.11.3+dfsg-3build2).
libopenal-dev est déjà la version la plus récente (1:1.16.0-3).
libopenscenegraph-dev est déjà la version la plus récente (3.2.1-7ubuntu4).
libplib-dev est déjà la version la plus récente (1.8.5-7).
python3-pyqt5 est déjà la version la plus récente (5.5.1+dfsg-3ubuntu4).
python3-pyqt5.qtmultimedia est déjà la version la plus récente (5.5.1+dfsg-3ubuntu4).
cmake est déjà la version la plus récente (3.5.1-1ubuntu3).
git est déjà la version la plus récente (1:2.7.4-0ubuntu1.3).
libcurl4-openssl-dev est déjà la version la plus récente (7.47.0-1ubuntu2.6).
libdbus-1-dev est déjà la version la plus récente (1.10.6-1ubuntu3.3).
libexpat1-dev est déjà la version la plus récente (2.1.0-7ubuntu0.16.04.3).
libtiff5-dev est déjà la version la plus récente (4.0.6-1ubuntu0.2).
libudev-dev est déjà la version la plus récente (229-4ubuntu21.1).
procps est déjà la version la plus récente (2:3.3.10-4ubuntu2.3).
python-tk est déjà la version la plus récente (2.7.12-1~16.04).
qtbase5-private-dev est déjà la version la plus récente (5.5.1+dfsg-16ubuntu7.5).
zlib1g-dev est déjà la version la plus récente (1:1.2.8.dfsg-2ubuntu4.1).
qt5-default est déjà la version la plus récente (5.5.1+dfsg-16ubuntu7.5).
libarchive-dev est déjà la version la plus récente (3.2.1-2~ubuntu16.04.1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
****************************************
************** FLIGHTGEAR **************
****************************************
****************************************
**************** DATA ******************
****************************************
Clonage dans '.'...
remote: Counting objects: 61333, done.
error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
fatal: The remote end hung up unexpectedly
fatal: protocol error: bad pack header
daweed@farmersaloon /data01/Flightgear/next $


as i can see git continue to process with GNU TLS... and as i found in some search, it's because git is compile with this one.
Re compile git with openssl is out of my knowlegde ...

Thanks for your patience

PS : i am asking myself about problem with my ISP connection ... but why should i be able to get FG sources and not the FG data one ..?!! is it possible ?
Windows 10 / Linux Mint 20
AMD Ryzen 7 3700X |32 Go RAM GeForce RTX 3070 Ti 8 Go
FG Interface
Lyon Saint Exupery Scenery

ATC on LFLL on Friday 19:00 UTC => 22:00 UTC
daweed
 
Posts: 398
Joined: Thu Dec 11, 2014 11:45 am
Location: LFKP LFLL
Callsign: daweed
OS: Linux Mint 20

Re: FGdata downloading error

Postby rominet » Wed Mar 14, 2018 8:47 am

Bummer... The explanation of why the failure happens with FGData and not with FG is probably that you are hitting a GNUTLS bug (or Git+GNUTLS) with large sizes. That would be my first guess, at least.

Edit: or maybe it is SourceForge that is spuriously hanging up!

Pragmatically, I see two things that could help you apart from figuring out the actual bug:
  • if you have an account at SourceForge (write permissions needed? Maybe, I'm not sure), then using the URL ssh://YourSFLogin@git.code.sf.net/p/flightgear/fgdata in the 'git remote set-url origin newURL' should let you do manual 'git pull' with a different protocol (SSH), which is secure;
  • the other possibility is to use git://git.code.sf.net/p/flightgear/fgdata for the URL. This protocol is unfortunately neither encrypted nor authenticated, but it doesn't require any account at SF nor particular access rights.
rominet
 
Posts: 605
Joined: Sat Nov 01, 2014 2:33 pm
Callsign: F-KATS
Version: Git next
OS: Debian GNU/Linux

Re: FGdata downloading error

Postby AndersG » Wed Mar 14, 2018 10:25 am

OTOH, is a non-encrypted insecure protocol that much of a problem with Git? If you can verify the commit id of the latest commit through a safe channel (https to the repository web front-end?) should that not guarantee the integrity of the whole downloaded history?

(Unless Git uses a cryptographic hash that is no longer considered secure - what is the current status of SHA-1? Still, breaking such a thing is probably not that easy.)
Callsign: SE-AG
Aircraft (uhm...): Submarine Scout, Zeppelin NT, ZF Navy free balloon, Nordstern, Hindenburg, Short Empire flying-boat, ZNP-K, North Sea class, MTB T21 class, U.S.S. Monitor, MFI-9B, Type UB I submarine, Gokstad ship, Renault FT.
AndersG
 
Posts: 2524
Joined: Wed Nov 29, 2006 10:20 am
Location: Göteborg, Sweden
Callsign: SE-AG
OS: Debian GNU Linux

PreviousNext

Return to Linux

Who is online

Users browsing this forum: No registered users and 2 guests