tarantool / setup-tarantool

Setup Tarantool for use with Github Actions
MIT License
9 stars 2 forks source link

setup hangs, seems some interactive action in script leak #39

Open filonenko-mikhail opened 1 year ago

filonenko-mikhail commented 1 year ago

There is job in docker ubuntu:22 with sudo

Run tarantool/setup-tarantool@v2
(https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:8)
/usr/bin/docker exec  7001ce4e963ca1083c9bfe0417d087554e57fac9f4a94589bbb65a95fafc2750 sh -c "cat /etc/*release | grep ^ID"
[8](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:9)
Checking latest tarantool 2.10 version
[9](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:10)
  HTTP GET https://download.tarantool.org/tarantool/release/series-2/ubuntu/dists/jammy/main/binary-amd64/Packages
[10](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:11)
  2.10.4.g816000e10-1
[11](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:13)
Cache not found for input key: tarantool-setup-jammy-2.10.4.g816000e10-1
[12](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:14)
Adding gpg key
[13](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:15)
  HTTP GET https://download.tarantool.org/tarantool/release/series-2/gpgkey
[14](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:16)
  /usr/bin/sudo apt-key add -
[15](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:17)
  Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
[16](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:18)
  OK
[17](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:20)
Setting up repository
[18](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:21)
  /usr/bin/sudo tee /etc/apt/sources.list.d/tarantool.list
[19](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:22)
  deb https://download.tarantool.org/tarantool/release/series-2/ubuntu/ jammy main
[20](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:24)
Running apt-get update
[21](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:25)
  /usr/bin/sudo apt-get update
[22](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:26)
  Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
[23](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:27)
  Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
[24](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:28)
  Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
[25](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:29)
  Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
[26](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:30)
  Get:1 https://hb.bizmrg.com/tarantool_repo/release/series-2/ubuntu jammy InRelease [3618 B]
[27](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:31)
  Get:6 https://hb.bizmrg.com/tarantool_repo/release/series-2/ubuntu jammy/main amd64 Packages [1935 B]
[28](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:32)
  Get:7 https://hb.bizmrg.com/tarantool_repo/release/series-2/ubuntu jammy/main all Packages [1041 B]
[29](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:33)
  Fetched 6594 B in 1s (9483 B/s)
[30](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:34)
  Reading package lists...
[31](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:35)
  W: https://download.tarantool.org/tarantool/release/series-2/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
[32](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:37)
Installing tarantool
[33](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:38)
  /usr/bin/sudo apt-get install -y tarantool=2.10.4.g816000e10-1* tarantool-dev=2.10.4.g816000e10-1*
[34](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:39)
  Reading package lists...
[35](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:40)
  Building dependency tree...
[36](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:41)
  Reading state information...
[37](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:42)
  The following additional packages will be installed:
[38](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:43)
    cmake cmake-data dh-elpa-helper emacsen-common libarchive13 libcurl4
[39](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:44)
    libjsoncpp25 librhash0 libuv1 tarantool-common tzdata
[40](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:45)
  Suggested packages:
[41](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:46)
    cmake-doc ninja-build cmake-format lrzip
[42](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:47)
  The following NEW packages will be installed:
[43](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:48)
    cmake cmake-data dh-elpa-helper emacsen-common libarchive13 libcurl4
[44](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:49)
    libjsoncpp25 librhash0 libuv1 tarantool tarantool-common tarantool-dev
[45](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:50)
    tzdata
[96](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:101)
  Preparing to unpack .../03-libcurl4_7.81.0-1ubuntu1.6_amd64.deb ...
[97](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:102)
  Unpacking libcurl4:amd64 (7.81.0-1ubuntu1.6) ...
[98](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:103)
  Selecting previously unselected package libjsoncpp25:amd64.
[99](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:104)
  Preparing to unpack .../04-libjsoncpp25_1.9.5-3_amd64.deb ...
[100](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:105)
  Unpacking libjsoncpp25:amd64 (1.9.5-3) ...
[101](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:106)
  Selecting previously unselected package librhash0:amd64.
[102](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:107)
  Preparing to unpack .../05-librhash0_1.4.2-1ubuntu1_amd64.deb ...
[103](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:108)
  Unpacking librhash0:amd64 (1.4.2-1ubuntu1) ...
[104](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:109)
  Selecting previously unselected package dh-elpa-helper.
[105](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:110)
  Preparing to unpack .../06-dh-elpa-helper_2.0.9ubuntu1_all.deb ...
[106](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:111)
  Unpacking dh-elpa-helper (2.0.9ubuntu1) ...
[107](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:112)
  Selecting previously unselected package emacsen-common.
[108](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:113)
  Preparing to unpack .../07-emacsen-common_3.0.4_all.deb ...
[109](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:114)
  Unpacking emacsen-common (3.0.4) ...
[110](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:115)
  Selecting previously unselected package cmake-data.
[111](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:116)
  Preparing to unpack .../08-cmake-data_3.22.1-1ubuntu1.22.04.1_all.deb ...
[112](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:117)
  Unpacking cmake-data (3.22.1-1ubuntu1.22.04.1) ...
[113](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:118)
  Selecting previously unselected package cmake.
[114](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:119)
  Preparing to unpack .../09-cmake_3.22.1-1ubuntu1.22.04.1_amd64.deb ...
[115](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:120)
  Unpacking cmake (3.22.1-1ubuntu1.22.04.1) ...
[116](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:121)
  Selecting previously unselected package tarantool-common.
[117](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:122)
  Preparing to unpack .../10-tarantool-common_2.10.4.g816000e10-1_all.deb ...
[118](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:123)
  Unpacking tarantool-common (2.10.4.g816000e10-1) ...
[119](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:124)
  Selecting previously unselected package tarantool.
[120](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:125)
  Preparing to unpack .../11-tarantool_2.10.4.g816000e10-1_amd64.deb ...
[121](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:126)
  Unpacking tarantool (2.10.4.g816000e10-1) ...
[122](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:127)
  Selecting previously unselected package tarantool-dev.
[123](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:128)
  Preparing to unpack .../12-tarantool-dev_2.10.4.g816000e10-1_amd64.deb ...
[124](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:129)
  Unpacking tarantool-dev (2.10.4.g816000e10-1) ...
[125](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:130)
  Setting up libarchive13:amd64 (3.6.0-1ubuntu1) ...
[126](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:131)
  Setting up tzdata (2022f-0ubuntu0.22.04.1) ...
[127](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:132)
  debconf: unable to initialize frontend: Dialog
[128](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:133)
  debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
[129](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:134)
  debconf: falling back to frontend: Readline
[130](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:135)
  Configuring tzdata
[131](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:136)
  ------------------
[132](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:137)

[133](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:138)
  Please select the geographic area in which you live. Subsequent configuration
[134](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:139)
  questions will narrow this down by presenting a list of cities, representing
[135](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:140)
  the time zones in which they are located.
[136](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:141)

[137](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:142)
    1. Africa   3. Antarctica  5. Arctic  7. Atlantic  9. Indian    11. US
[138](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:143)
    2. America  4. Australia   6. Asia    8. Europe    10. Pacific  12. Etc
[139](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:144)
  Geographic area: 
[140](https://github.com/tarantool/tarantool-cluster-manager/actions/runs/3658127364/jobs/6182523689#step:6:145)
  Error: The operation was canceled.
filonenko-mikhail commented 1 year ago

solution is DEBIAN_FRONTEND=noninteractive

filonenko-mikhail commented 1 year ago

env not pass through sudo(((

Totktonada commented 1 year ago

I agree that it should be solved on the action side. However I think I can propose a workaround. The output suggests that the problematic package is tzdata[^1]. Just install it before running the action:

DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata

[^1]: It is tzdata 95% of times. Remaining 5% is postfix.

filonenko-mikhail commented 1 year ago

thanks