-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation fails on debian #40
Comments
@melezhik Thanks for your report. I'll dig into this problem sometime soon. |
@melezhik This install process seems to skip gnuplot downloading (not system one but user-specified one via CustomBuilder.pm6 since raku-Chart-Gnuplot doesn't use system gnuplot). I don't come up with the reason why CustomBuilder.pm6 wasn't invoked by |
|
This is Sparrow6 command invoked:
I don't know , does |
@melezhik I observed that when depsonly option is False, zef invokes CustomBuilder.pm6.
I haven't ever faced such an error. Do you have any ideas to solve this lock file? |
Looks like installation process tries to create a file in
/data/test/chart-gnupplot.lock which is not writeable for $user.
Zef installs dependencies as `zed /data/test/chart-gnupplot/` ...
Looks like lock file is being attempted for creation in upper dir
`/data/test`
…On Jan 12, 2020 4:29 AM, "Itsuki Toyota" ***@***.***> wrote:
@melezhik <https://github.com/melezhik> I observed that when depsonly
option is False, zef invokes CustomBuilder.pm6.
But an unintended lock file prevents zef from extracting file:
$ sparrowdo --bootstrap --no_sudo --docker=$container_name --repo=http://repo.westus.cloudapp.azure.com
debianHit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://security.debian.org/debian-security buster/updates InRelease
Ign:4 https://dl.bintray.com/nxadm/rakudo-pkg-debs buster InRelease
Get:5 https://dl.bintray.com/nxadm/rakudo-pkg-debs buster Release [1840 B]
Fetched 1840 B in 1s (2060 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (1.8.2).
bash is already the newest version (5.0-4).
build-essential is already the newest version (12.6).
ca-certificates is already the newest version (20190110).
curl is already the newest version (7.64.0-4).
lsb-release is already the newest version (10.2019051400).
perl is already the newest version (5.28.1-6).
git is already the newest version (1:2.20.1-2+deb10u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Warning: apt-key output should not be parsed (stdout is not a terminal)
Executing: /tmp/apt-key-gpghome.Z0oRxHeRkG/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 379CE192D401AB61
gpg: key 379CE192D401AB61: "Bintray (by JFrog) ***@***.***>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
deb https://dl.bintray.com/nxadm/rakudo-pkg-debs buster main
Reading package lists...
Building dependency tree...
Reading state information...
rakudo-pkg is already the newest version (2019.11-01).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
===> Installing: Sparrow6:ver<0.0.11>
1 bin/ script [s6] installed to:
/opt/rakudo-pkg/share/perl6/site/bin
06:48:02 01/12/2020 [repository] index updated from http://repo.westus.cloudapp.azure.com/api/v1/index
06:48:06 01/12/2020 [create user chart-gnupplot] Don't change user home as managehome set to 'no' OR homedir not set
06:48:06 01/12/2020 [create user chart-gnupplot] user chart-gnupplot - nothing changed
06:48:06 01/12/2020 [create user chart-gnupplot] uid=1000(chart-gnupplot) gid=1000(chart-gnupplot) groups=1000(chart-gnupplot)
06:48:08 01/12/2020 [create directory /data/test/chart-gnupplot] directory path: /data/test/chart-gnupplot
06:48:08 01/12/2020 [create directory /data/test/chart-gnupplot] directory owner: <chart-gnupplot>
06:48:08 01/12/2020 [create directory /data/test/chart-gnupplot] directory group: <chart-gnupplot>
06:48:08 01/12/2020 [create directory /data/test/chart-gnupplot] directory access rights: drwxr-xr-x
[task check] stdout match <owner: <chart-gnupplot>> True
[task check] stdout match <group: <chart-gnupplot>> True
06:48:11 01/12/2020 [bash: git checkout https://github.com/titsuki/raku-Chart ...] /data/test/chart-gnupplot
06:48:12 01/12/2020 [bash: git checkout https://github.com/titsuki/raku-Chart ...] Already up to date.
06:48:13 01/12/2020 [bash: last commit] commit 280ba29
06:48:13 01/12/2020 [bash: last commit] Author: titsuki ***@***.***>
06:48:13 01/12/2020 [bash: last commit] Date: Fri Jan 3 01:56:28 2020 +0900
06:48:13 01/12/2020 [bash: last commit]
06:48:13 01/12/2020 [bash: last commit] Delete superfluous .say
06:48:13 01/12/2020 [bash: last commit]
06:48:13 01/12/2020 [bash: last commit] M t/02-terminal.t
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] total 5328
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 2603 Jan 12 06:44 Changes
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 686 Jan 12 06:44 LICENSE
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 1548 Jan 12 06:44 META6.json
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 20714 Jan 12 06:44 README.md
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 120 Jan 12 06:44 dist.ini
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 5321601 Jan 12 06:45 gnuplot-5.2.6.tar.gz
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 4122 Jan 12 06:44 histogram.png
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] drwxr-xr-x 3 chart-gnupplot chart-gnupplot 4096 Jan 12 06:44 lib
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 29506 Jan 12 06:44 sinx.png
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] -rw-r--r-- 1 chart-gnupplot chart-gnupplot 37944 Jan 12 06:44 surface.dem.00.png
06:48:15 01/12/2020 [bash: cd /data/test/chart-gnupplot && ls -l] drwxr-xr-x 2 chart-gnupplot chart-gnupplot 4096 Jan 12 06:44 t
06:48:17 01/12/2020 [bash: Install module dependencies] ===> Searching for missing dependencies: Distribution::Builder::MakeFromJSON
06:49:13 01/12/2020 [bash: Install module dependencies] ===> Searching for missing dependencies: System::Query
06:49:13 01/12/2020 [bash: Install module dependencies] ===> Searching for missing dependencies: JSON::Fast
06:49:13 01/12/2020 [bash: Install module dependencies] ===> Building: Chart::Gnuplot:ver<0.0.17>:auth<cpan:TITSUKI>
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] Failed to open file /data/test/chart-gnupplot.lock: Permission denied
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in sub lock-file-protect at /opt/rakudo-pkg/share/perl6/core/sources/92CDF3D3156B26D20F11A28F5C825AC151781CD6 (Zef::Utils::FileSystem) line 50
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in method extract at /opt/rakudo-pkg/share/perl6/core/sources/D11924A78722910B5AFD9E158A77A64A9C7299A8 (Zef::Extract) line 23
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in method install-gnuplot at /data/test/chart-gnupplot/lib/Chart/Gnuplot/CustomBuilder.pm6 (Chart::Gnuplot::CustomBuilder) line 42
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in method build at /data/test/chart-gnupplot/lib/Chart/Gnuplot/CustomBuilder.pm6 (Chart::Gnuplot::CustomBuilder) line 20
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in block <unit> at -e line 1
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] Actually thrown at:
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in code at /opt/rakudo-pkg/share/perl6/core/sources/92CDF3D3156B26D20F11A28F5C825AC151781CD6 (Zef::Utils::FileSystem) line 53
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in sub lock-file-protect at /opt/rakudo-pkg/share/perl6/core/sources/92CDF3D3156B26D20F11A28F5C825AC151781CD6 (Zef::Utils::FileSystem) line 50
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in method extract at /opt/rakudo-pkg/share/perl6/core/sources/D11924A78722910B5AFD9E158A77A64A9C7299A8 (Zef::Extract) line 23
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in method install-gnuplot at /data/test/chart-gnupplot/lib/Chart/Gnuplot/CustomBuilder.pm6 (Chart::Gnuplot::CustomBuilder) line 42
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in method build at /data/test/chart-gnupplot/lib/Chart/Gnuplot/CustomBuilder.pm6 (Chart::Gnuplot::CustomBuilder) line 20
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] in block <unit> at -e line 1
06:49:13 01/12/2020 [bash: Install module dependencies] ===> Building [FAIL]: Chart::Gnuplot:ver<0.0.17>:auth<cpan:TITSUKI>
06:49:13 01/12/2020 [bash: Install module dependencies] [Chart::Gnuplot] Failed to build, but continuing with --force-build
...
I haven't ever faced such an error. Do you have any ideas to solve this
lock file?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#40?email_source=notifications&email_token=AAHRHSKWE2BNIEATMMDX5R3Q5LWI3A5CNFSM4KDMZINKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIWWSEY#issuecomment-573401363>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHRHSMMXF3R5PHDK4R6DD3Q5LWI3ANCNFSM4KDMZINA>
.
|
@melezhik Thanks, I'll consider how to cope with this discrepancy between system linux and docker-powered linux on a system linux. |
@melezhik
After that, I also changed the owner of
So, Is there any other good solution without changing the owner of |
That's a little bit strange, I thought |
@titsuki, yeah look like is a docker quirk, directory is owned by user and group, but still not writable:
|
To long story short I guess it's better handle inside Sparrow scenario rather then trying to do anything on chart-gnupplot side, it's definitely not a module's error. I'd suggest to close the issue. |
@melezhik Thanks! I'll close this issue. |
Hi! The module installation Debian fails.
You can replay the test using RakuDist.
The text was updated successfully, but these errors were encountered: