You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Locally building the image works on both arm64 and x86_64, but it gets a lot of 404 errors when trying to access the Debian repositories. Several vulnerabilities are also reported near the end of the process.
$ sudo singularity build url-to-pdf.sif url-to-pdf.def
INFO: Starting build...
INFO: Fetching OCI image...
4.1MiB / 4.1MiB [================================================================] 100 % 87.5 MiB/s 0s
43.3MiB / 43.3MiB [==============================================================] 100 % 87.5 MiB/s 0s
47.8MiB / 47.8MiB [==============================================================] 100 % 87.5 MiB/s 0s
1.3MiB / 1.3MiB [================================================================] 100 % 87.5 MiB/s 0s
10.3MiB / 10.3MiB [==============================================================] 100 % 87.5 MiB/s 0s
204.9MiB / 204.9MiB [============================================================] 100 % 87.5 MiB/s 0s
18.5MiB / 18.5MiB [==============================================================] 100 % 87.5 MiB/s 0s
INFO: Extracting OCI image...
INFO: Inserting Singularity configuration...
INFO: Running post scriptlet
+ apt-get -y update
Ign:1 http://deb.debian.org/debian stretch InRelease
Ign:2 http://deb.debian.org/debian stretch-updates InRelease
Ign:3 http://deb.debian.org/debian stretch Release
Ign:4 http://deb.debian.org/debian stretch-updates Release
Ign:5 http://deb.debian.org/debian stretch/main all Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:8 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:5 http://deb.debian.org/debian stretch/main all Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:8 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:5 http://deb.debian.org/debian stretch/main all Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:8 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:5 http://deb.debian.org/debian stretch/main all Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:8 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:5 http://deb.debian.org/debian stretch/main all Packages
Ign:6 http://deb.debian.org/debian stretch/main amd64 Packages
Ign:7 http://deb.debian.org/debian stretch-updates/main all Packages
Ign:8 http://deb.debian.org/debian stretch-updates/main amd64 Packages
Ign:5 http://deb.debian.org/debian stretch/main all Packages
Err:6 http://deb.debian.org/debian stretch/main amd64 Packages
404 Not Found [IP: 146.75.34.132 80]
Ign:7 http://deb.debian.org/debian stretch-updates/main all Packages
Err:8 http://deb.debian.org/debian stretch-updates/main amd64 Packages
404 Not Found [IP: 146.75.34.132 80]
Ign:9 http://security.debian.org/debian-security stretch/updates InRelease
Ign:10 http://security.debian.org/debian-security stretch/updates Release
Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
Ign:12 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
Ign:11 http://security.debian.org/debian-security stretch/updates/main all Packages
Err:12 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
404 Not Found [IP: 146.75.34.132 80]
Reading package lists... Done
W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages 404 Not Found [IP: 146.75.34.132 80]
E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages 404 Not Found [IP: 146.75.34.132 80]
E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages 404 Not Found [IP: 146.75.34.132 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
+ git clone https://github.com/alvarcarto/url-to-pdf-api.git pdf_server
Cloning into 'pdf_server'...
remote: Enumerating objects: 865, done.
remote: Counting objects: 100% (85/85), done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 865 (delta 42), reused 29 (delta 10), pack-reused 780
Receiving objects: 100% (865/865), 5.06 MiB | 0 bytes/s, done.
Resolving deltas: 100% (496/496), done.
+ cd pdf_server
+ npm install
> [email protected] install /pdf_server/node_modules/puppeteer
> node install.js
Downloading Chromium r706915 - 118.3 Mb [====================] 100% 0.0s
Chromium downloaded to /pdf_server/node_modules/puppeteer/.local-chromium/linux-706915
> [email protected] postinstall /pdf_server/node_modules/nodemon
> node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 487 packages from 622 contributors and audited 556 packages in 10.106s
1 package is looking for funding
run `npm fund` for details
found 95 vulnerabilities (7 low, 27 moderate, 52 high, 9 critical)
run `npm audit fix` to fix them, or `npm audit` for details
+ chmod -R 0755 .
INFO: Adding environment to container
INFO: Adding startscript
INFO: Creating SIF file...
INFO: Build complete: url-to-pdf.sif
Although the building process seems successful, the SIF file created does not work as README.md says. For some reason, the started instance is not working as expected and cannot connect.
$ sudo singularity instance start url-to-pdf.sif pdf
INFO: instance started successfully
$ curl -o sylabs.pdf localhost:9000/api/render?url=http://sylabs.io/docs
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to localhost port 9000 after 0 ms: Connection refused
The text was updated successfully, but these errors were encountered:
Example: file-generating/URL-to-PDF\ api
arm64
andx86_64
, but it gets a lot of 404 errors when trying to access the Debian repositories. Several vulnerabilities are also reported near the end of the process.The text was updated successfully, but these errors were encountered: