Comments (9)
Hi @bouh2 I was able to create the remote repo using jFrog(SaaS version) and installed the packages sucesfully (nodejs and nsolid) without the folder listing.
I'll try to update the wiki with this setup later, in the meantime give you some screenshots with the config that I used.
Basic config
Repo Name: Nodesource
Include Patterns: **
Repo Layout: simple-default
List Remote folder items: Uncheck
Repo config /etc/apt/sources.list
deb [trusted=yes signed-by=/usr/share/keyrings/nodesource.gpg] https://myuser:[email protected]/artifactory/Nodesource nodistro main
from distributions.
this is the updated wiki with the instruction to setup a mirror using jFrog artifactory.
https://github.com/nodesource/distributions/wiki/Creating-a-Repository-Mirror:-A-Step%E2%80%90by%E2%80%90Step-Guide#using-jfrog-artifactory
from distributions.
@riosje It was an issue with old JFrog Artifactory. Permissions were set correctly. Once it was updated to one of the latest versions, issue is gone.
Thanks a lot for the detailed instructions and updated wiki ! Much appreciated ! 👍
from distributions.
Hi @bouh2 currently we can't support folder listing because we're using an Object Storage solution to store the packages.
there are many other mirroring tools which are used more widely and more popular.
What tool are you trying to implement?
What errors are you getting from jfrog or GCP artifact?
Can you share more details about your implementation?
from distributions.
Hi @riosje
Thanks for looking after this issue !
Here are details:
- JFrog Artifactory configuration. Remote repo is configured as
https://deb.nodesource.com/node_20.x
JFrog artifactory is able to test connection to the remote repo by downloading remote repo folder listing. Obviously, the test fails. - Apt client configuration on Ubuntu 20.04
2a) gpg key has been downloaded and saved in/usr/share/keyrings/nodesource.gpg
$ ls -al /usr/share/keyrings/ | grep nodesource
-rw-r--r-- 1 root root x x x nodesource.gpg
2b) apt list configuration
$ cat /etc/apt/sources.list.d/nodesource.list
deb [arch=amd64 signed-by=/usr/share/keyrings/nodesource.gpg] https://artifactory/artifactory/xxxxxx-nodesource20 nodistro main
2c) checking sudo apt update
:
$ sudo apt update
Get:1 https://artifactory/artifactory/ubuntu-remote focal-updates InRelease [114 kB]
Get:2 https://artifactory/artifactory/ubuntu-remote focal-backports InRelease [108 kB]
Get:3 https://artifactory/artifactory/ubuntu-remote focal-security InRelease [114 kB]
Get:4 https://artifactory/artifactory/ubuntu-canonical focal InRelease [12.1 kB]
Err:5 https://artifactory/artifactory/xxxxxx-nodesource20 nodistro InRelease
401 Unauthorized [IP: *.*.*.* 443]
Hit:6 https://artifactory/artifactory/microsoft focal InRelease
Reading package lists... Done
E: Failed to fetch https://artifactory/artifactory/xxxxxx-nodesource20/dists/nodistro/InRelease 401 Unauthorized [IP: *.*.*.* 443]
E: The repository 'https://artifactory/artifactory/xxxxxx-nodesource20 nodistro InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Apt updated packages from all remote repos except from xxxxxx-nodesource20
remote repo.
from distributions.
@bouh2 also double checking your logs output, your issue is related to permissions in the jfrog side
The HTTP code 401 you got there represents an access denied.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
E: Failed to fetch https://artifactory/artifactory/xxxxxx-nodesource20/dists/nodistro/InRelease 401 Unauthorized [IP: *.*.*.* 443]
from distributions.
@riosje could you please also update the steps for RPM mirror using jFrog Artifactory? Thanks.
from distributions.
@axqd it should work the same way.
give it a try and share the outcome....
from distributions.
@riosje Yes, I can confirm it works the same way. Guess still better to update the wiki. Without directory listing, it took me some effort to figure out the URL for RPM (i.e. https://rpm.nodesource.com/pub_20.x
instead of node_20.x
).
from distributions.
Related Issues (20)
- [ERROR] Node.js 16 on Ubuntu16.04 Installation fails HOT 1
- [ERROR] Node.js 18 on CentOS 7 fails: Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) HOT 3
- [ERROR] Node.js 20.11.1 on RPM Installation fail HOT 4
- [ERROR] Node.js 9 on Centos/RHEL/EL8 Installation fail HOT 1
- [ERROR] Node.js 20 on Ubuntu 22.04 Installation fail HOT 1
- [ERROR] Node.js 20 on Ubuntu22 Installation fail HOT 5
- Missing RPM-Packages in Official nodesource-repository - nodejs 18.19.0 / 18.19.1 HOT 1
- [ERROR] Node.js 21 on Ubuntu22.04.4 Docker Installation fail HOT 8
- [ERROR] Node.js 21.X on Debian12 Installation fail HOT 1
- [ERROR] All request to deb.nodesource.com return 403 HOT 3
- [ERROR] Node.js XX on UbuntuXX Installation fail
- [ERROR] Node.js 20 on Ubuntu20.04 Installation fail HOT 1
- [ERROR] npm unavailable after installing on python:3.11-slim-bookworm docker image HOT 4
- [ERROR] Node.js 20 on RHEL9 Installation fail HOT 3
- [ERROR] Node.js 20.9.0 or any version lower than 20.12.0 on Ubuntu20.04 Installation fails HOT 2
- Install instructions fail confusingly if curl fails HOT 9
- [ERROR] Node.js 20 on Ubuntu20.04 Installation fail with non-default umask
- [REQUEST] Bring node.js v20 up to date with the release of nodejs LTS v20.12.21 HOT 1
- Ciptakan akaun
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distributions.