WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: no dependencies installed from local mirror?  (Read 2969 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
no dependencies installed from local mirror?
« on: July 05, 2019, 11:59:02 PM »
I have a local TC mirror. I copied all files (including .dep and .tree files) from http://mirror.cpsc.ucalgary.ca/mirror/tinycorelinux/10.x/x86/tcz/ and am serving them via nginx.

My /opt/tcemirror contains only this line:
https://bruno:MyPasswoRd@gnuser.ddns.net/tinycorelinux

All .tcz* files are in
https://gnuser.ddns.net/tinycorelinux/10.x/x86/tcz/

For some strange reason, I can install extensions from this local repository (via 'tce-ab' or 'tce-load -wi foo') but dependencies are NOT installed. No errors are reported. For example:

Code: [Select]
bruno@box:/opt$ tce-load -wi compiletc
Downloading: compiletc.tcz
Connecting to gnuser.ddns.net (192.168.10.1:443)
compiletc.tcz        100% |********************************|  4096  0:00:00 ETA
compiletc.tcz: OK
bruno@box:/opt$

As you can see, none of the dependencies (gcc, make, etc.) are installed.

What am I missing in order for the local repository to be fully functional? Is there something other than tcz directory (on server) and /opt/tcemirror (on client) that needs to be present?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11631
Re: no dependencies installed from local mirror?
« Reply #1 on: July 06, 2019, 12:27:24 AM »
Hi GNUser
Try adding the  md5.txt  files to your mirror.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: no dependencies installed from local mirror?
« Reply #2 on: July 06, 2019, 02:42:10 AM »
To debug shell scripts, change the first line to "#!/bin/sh -x". That will cause each executed line to be printed.

edit: The https or the user/password could be the key here; the official mirrors are plain http or ftp.
« Last Edit: July 06, 2019, 02:47:38 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: no dependencies installed from local mirror?
« Reply #3 on: July 06, 2019, 08:06:16 AM »
Thank you both. I already have the md5.txt files. All files in Calgary's tcz directory are present in my local mirror.

I put '#!/bin/sh -x' at the top of tce-load and logged what happens when installing from my mirror vs. Calgary's.

Mine:
https://pastebin.com/xLFisKHJ

Calgary's:
https://pastebin.com/ZYynC3pH

Things start to diverge around line 200. It seems tce-load grabs the *.tcz.dep file from Calgary's http mirror, but not from my https + username/password mirror. It is a silent error, unfortunately. Any ideas what the invisible culprit might be?

Turning off https and username/password authentication fixes things, but I would prefer to have authentication because my internet is a slow residential connection and I don't want Google et al. crawling on my mirror and divulging it to the world.
« Last Edit: July 06, 2019, 08:08:03 AM by GNUser »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: no dependencies installed from local mirror?
« Reply #4 on: July 06, 2019, 12:40:14 PM »
Okay, so it fails to wget the dep files. Could be a quoting issue, or similar. In recursive_scan_dep(), the wget line, try removing the "2>/dev/null"; then you'd see wget errors.
The only barriers that can stop you are the ones you create yourself.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: no dependencies installed from local mirror?
« Reply #5 on: July 06, 2019, 02:50:30 PM »
Right on, curaga! It's a wget error, indeed:

Code: [Select]
ERROR: cannot verify gnuser.ddns.net's certificate
...
Self-signed certificate encountered.

In other OSes I would simply append the server's ssl certificate to /etc/ssl/cert.pem to get around this, but things in TC seem to be in different places. Where should I append the certificate so that wget is happy?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: no dependencies installed from local mirror?
« Reply #6 on: July 07, 2019, 03:58:54 AM »
see the info file for the ca-certifcates extension

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1511
Re: no dependencies installed from local mirror?
« Reply #7 on: July 07, 2019, 07:09:37 AM »
Thanks, Juanito. Will take a look there.