regarding issue while setting docker

93 views
Skip to first unread message

ATTANTI AISHWARYA

unread,
Aug 4, 2023, 12:22:02 AM8/4/23
to NITCbase Users
while setting up dockerfile I'm facing issues during setup due to error in dockerfile like it is unable to reach the site.They errors are below


380.4 --2023-08-04 03:55:53--  (try:20)  https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh
380.4 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|49.44.79.236|:443... failed: Connection refused.
392.6 Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2405:200:1607:2820:41::36|:443... failed: Cannot assign requested address.
392.6 Giving up.
392.6
------
Dockerfile:12
--------------------
  11 |    
  12 | >>> RUN cd /home/nitcbase \
  13 | >>>     && wget https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh \
  14 | >>>     && chmod +x setup.sh \
  15 | >>>     && mkdir NITCbase
  16 |    
--------------------
ERROR: failed to solve: process "/bin/sh -c cd /home/nitcbase     && wget https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh     && chmod +x setup.sh     && mkdir NITCbase" did not complete successfully: exit code: 4

Cliford Joshy

unread,
Aug 4, 2023, 1:35:58 AM8/4/23
to ATTANTI AISHWARYA, NITCbase Users
I'm not sure why exactly this happened. But could you try starting over from the beginning? Make sure that you are connected to the internet on the machine you're setting this up on. 

If it still does not work, you can try the manual install method provided at https://nitcbase.github.io/docs/Misc/ManualSetup.

If you would like to set it up the docker way, do post here and I'll be glad to help :)

--
You received this message because you are subscribed to the Google Groups "NITCbase Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitcbase-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nitcbase-users/1242e968-2a05-4665-a95c-8051f60d7588n%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ATTANTI AISHWARYA

unread,
Aug 4, 2023, 2:25:38 AM8/4/23
to Cliford Joshy, NITCbase Users
I will try that.
Thankyou

C M MADHAV PRABHU

unread,
Aug 4, 2023, 4:28:48 AM8/4/23
to NITCbase Users
Could you also try ```wget https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh``` in your host OS shell? Sometimes NITC Network doesnt load github sites very fast and maybe you could try  hotspot.

ATTANTI AISHWARYA

unread,
Aug 4, 2023, 5:32:41 AM8/4/23
to NITCbase Users
I mentioded below the contents which are in my dockerfile and I have tried commenting '''' githubsite''' and the also I have a error
the error is as follows.I'm using my mobile network but couldn't complete setup failed.


ERROR:
[+] Building 1.4s (7/8)                                          docker:default
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 461B                                       0.0s
 => [internal] load .dockerignore                                          0.0s
 => => transferring context: 2B                                            0.0s
 => [internal] load metadata for docker.io/library/ubuntu:20.04            1.1s
 => [1/5] FROM docker.io/library/ubuntu:20.04@sha256:33a5cc25d22c45900796  0.0s
 => CACHED [2/5] RUN apt-get update     && apt-get install -y libc6-dev v  0.0s
 => CACHED [3/5] RUN useradd -m nitcbase                                   0.0s
 => ERROR [4/5] RUN cd /home/nitcbase     && '''wget https://raw.githubus  0.2s
------                                                                          
 > [4/5] RUN cd /home/nitcbase     && '''wget https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh'''     && chmod +x setup.sh     && mkdir NITCbase:
0.205 /bin/sh: 1: wget https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh: not found

------
Dockerfile:12
--------------------
  11 |    
  12 | >>> RUN cd /home/nitcbase \
  13 | >>>     && '''wget https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh''' \
  14 | >>>     && chmod +x setup.sh \
  15 | >>>     && mkdir NITCbase
  16 |    
--------------------
ERROR: failed to solve: process "/bin/sh -c cd /home/nitcbase     && '''wget https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh'''     && chmod +x setup.sh     && mkdir NITCbase" did not complete successfully: exit code: 127





Docker file content:

FROM ubuntu:20.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
    && apt-get install -y libc6-dev vim git nano make gcc tar wget build-essential libreadline-dev gdb


RUN useradd -m nitcbase
USER nitcbase

RUN cd /home/nitcbase \

    && wget https://raw.githubusercontent.com/nitcbase/nitcbase-bootstrap/main/setup.sh \
    && chmod +x setup.sh \
    && mkdir NITCbase

WORKDIR /home/nitcbase/NITCbase

Amal Prakash

unread,
Aug 4, 2023, 5:57:44 AM8/4/23
to NITCbase Users
This issue occurs when certain ISPs like JIO blacklist the domain raw.githubusercontent.com. Please try and execute the commands from Academic Wifi or the Vodafone network and let us know if it works. 

ATTANTI AISHWARYA

unread,
Aug 4, 2023, 9:16:34 AM8/4/23
to NITCbase Users
Thanks for helping me out
It got set up  with the Academic Wifi network
Reply all
Reply to author
Forward
0 new messages