Why I'm getting 404 on local GitLab installation? - gitlab

The title pretty much says it all. I just installed GitLab CE on my Ubuntu 18.04, reconfigured for default settings, checked if the server is running with service gitlab-runsvdir status as it is running. But when I go to the IP assigned to the server I get 404 from the server.
default via 192.168.1.254 dev wlo1 proto dhcp metric 600
10.42.0.0/24 dev eno1 proto kernel scope link src 10.42.0.1 metric 100 <--
169.254.0.0/16 dev virbr0 scope link metric 1000 linkdown
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
192.168.1.0/24 dev wlo1 proto kernel scope link src 192.168.1.100 metric 600
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown
How can I fix this ?
update:
I edited this line external_url 'http://192.168.1.100/' in /etc/gitlab/gitlab.rb as it's a file that supposed to be edited upon installation. No change though. When I visit 192.168.1.100 in my browser I get 404.

The interesting part of the displayed error message in your browser is:
or you don't have permission to view it
That implied an authentication issue.
Open a new browser session in incognito mode and try again: it should request a username/password: make sure to enter the admin one.

Related

Issue in sending data to the server on openvpn

I have the following socket programming code. My client program is running on a VM on desktop machine using virtual box and my server program is running on a University cluster VM. The client is unable to send the data to the server. Both client and server program are running inside a docker container
running client and server container
docker run --rm -it -p 192.168.56.110:5555:5555 client bash
docker run --rm -it -p 192.168.101.238:5555:5555 server bash
client.py
context=zmq.Context()
print("Connecting")
socket=context.socket(zmq.REQ)
socket.connect("tcp://192.168.101.238:5555")
name="Max"
while True:
message=input("Message: ")
socket.send_pyobj({1:[name,message]})
message2=socket.recv_pyobj()
print("%s:%s" %(message2.get (1)[0], message2.get(1)[1]))
server.py
context=zmq.Context()
socket=context.socket(zmq.REP)
socket.bind("tcp://0.0.0.0:5555")
while True:
message=socket.recv_pyobj()
print("%s:%s" %(message.get(1)[0],message.get(1)[1]))
socket.send_pyobj({1:[message.get(1)[0],message.get(1)[1]]})
ip route client VM
default via 172.27.248.1 dev tun0 proto static metric 50
default via 10.0.2.2 dev enp0s3 proto dhcp metric 100
10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.15 metric 100
10.0.2.2 dev enp0s3 proto static scope link metric 100
143.117.101.145 via 10.0.2.2 dev enp0s3 proto static metric 100
169.254.0.0/16 dev enp0s8 scope link metric 1000
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
172.18.0.0/16 dev br-1f684a10d7c8 proto kernel scope link src 172.18.0.1 linkdown
172.27.248.0/22 dev tun0 proto kernel scope link src 172.27.250.80 metric 50
192.168.56.0/24 dev enp0s8 proto kernel scope link src 192.168.56.110
server ip route
default via 192.168.101.254 dev ens160 proto dhcp src 192.168.101.238 metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
192.168.101.0/24 dev ens160 proto kernel scope link src 192.168.101.238
192.168.101.254 dev ens160 proto dhcp scope link src 192.168.101.238 metric 100
On the client side, its stuck its not sending the data to the server and on the server its not receiving data.
Help is highly appreciated thanks

Unknown host connecting to internet in ubuntu

I tried to connect to my wifi network but i am not able to connect through my laptop .My other device at home are able to connect to internet. I am using ubuntu 16.04 LTS . I set my browser proxy to no proxy . I have no antivirus installed .
I tried to ping -c 5 (google .com and facebook.com) in terminal its showing unknown host google.com and unknown host facebook.com and tried to install eclipse while downloading it shows error java error unknown host .
Please help me to solve this issue.
Sounds like DNS may not have been configured when you connected to the network. This should normally happen automatically, but you can check by looking at the file /etc/resolv.conf. There should be at least one line in the file containing nameserver and an IP address.
If there are no nameserver lines, or if there's only one and it says nameserver 127.0.0.1, then you can try to use Google's public DNS by adding the line nameserver 8.8.8.8 (replacing the 127.0.0.1 if that's present).
Like everyone, I had to face this issue. So what did I do to address this issue?
1) I configured my Ubuntu server to have two network interfaces (NAT and Intnet).
2) In /etc/network/interfaces , I added the following lines:
auto enp0s8
iface enp0s8 inet static
address 192.168.10.23
dns-nameservers 8.8.8.8 8.8.4.4
3) Restarted the network - /etc/init.d/networking restart
Result: ping google.com worked.
I hope this helps you in resolving this issue :)

try to change tcp init cwnd to 10, but fail,how should I do

when i try to change the tcp init cwnd,
first, when run ip show route,show:
10.61.0.0/24 dev eth0 proto kernel scope link src 10.61.0.241
169.254.0.0/16 dev eth0 scope link metric 1002
default via 10.61.0.254 dev eth0 proto static
so i run
sudo ip route change default via 10.61.0.254 dev eth0 proto static initcwnd 10
to change the initcwnd to 10,
and after above, i run ip show routeagain:
10.61.0.0/24 dev eth0 proto kernel scope link src 10.61.0.241
169.254.0.0/16 dev eth0 scope link metric 1002
default via 10.61.0.254 dev eth0 proto static initcwnd 10
it seems work.but when i reboot, the value don't reserve.
10.61.0.0/24 dev eth0 proto kernel scope link src 10.61.0.241
169.254.0.0/16 dev eth0 scope link metric 1002
default via 10.61.0.254 dev eth0 proto static
How should I do?
my os version info:
Linux version 2.6.32-358.18.1.el6.x86_64 (mockbuild#c6b10.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1
You can add the ip route commands in the /etc/rc.d/rc.local so they take effect at boot time.
Kernel 2.6.32 does not have Miller's patch ( https://lwn.net/Articles/426883/) for initcwnd # 10
You can use ip tcp_metrics or ss to see also more information on a per socket/stream basis

manually set gateway using static routing

For study purpose I want to setup the following networking
A:
10.130.247.92/16(private on eth1)
128.199.227.240(public on eth0)
B:
10.130.237.218/16(private on eth1)
128.199.211.182/18(public on eth0)
And use B as gateway for private route.
in A
root#privte2:~# ip route list
default via 128.199.192.1 dev eth0
10.130.0.0/16 dev eth1 scope link
128.199.192.0/18 dev eth0 scope link
and
root#privte2:~# ip route add 10.130.0.0/16 via 10.130.247.92 dev eth1
RTNETLINK answers: File exists
Can anyone tell me where i did wrong?
I tried something like this before. See if this can help you. First enable the ipforwarding in both the machines.
locate the line containing net.ipv4.ip_forward in the /etc/syscl.conf file and make the following change.
net.ipv4.ip_forward=1
May be you need to restart for this.
Not really sure, Try this route command and see if it works.
Machine>$ route add -net 10.130.0.0 netmask 255.255.255.0 gw 128.199.211.182
For instance see here.

multicasting on linux

I am testing a simple multicast application on linux. I got it working on my pc by doing the following:
disabling the firewall
running the command route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
if you are interested in the details, see this post
why are these two steps required? is there an alternative.
i am testing the code on localhost.
on another pc I tried running the program after disabling the firewall. it did not work.
when I run the route command I get the following message
route: netmask 0fffffff doesn't make sense with host route
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.
route {-h|--help} [<AF>] Detailed usage syntax for specified AF.
route {-V|--version} Display version/author and exit.
-v, --verbose be verbose
-n, --numeric don't resolve names
-e, --extend display other/more information
-F, --fib display Forwarding Information Base (default)
-C, --cache display routing cache instead of FIB
<AF>=Use '-A <af>' or '--<af>'; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)
what is the solution?
got it to work without the route command.
just some firewall configuration problem.
i saw this recommendation to use route command for running ping on a multicast address. it is not required here.

Resources