Nextcloud and Owncloud Installation

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
LordoftheTechs
Posts: 9
Joined: Tue Jan 14, 2020 1:31 am

Re: Nextcloud and Owncloud Installation

Post by LordoftheTechs »

I'm a bit of a noob.

How do I edit that etc/hosts?
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud and Owncloud Installation

Post by Joulinar »

You can do the following

Code: Select all

nano /etc/hosts
add the following two lines

Code: Select all

176.9.217.52	download.nextcloud.com
2a01:4f8:130:32f1::52	download.nextcloud.com
Save the file. To be on save side, reboot your system. Now your system should resolve `download.nextcloud.com` by using the /etc/hosts instead of asking PiHole
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
LordoftheTechs
Posts: 9
Joined: Tue Jan 14, 2020 1:31 am

Re: Nextcloud and Owncloud Installation

Post by LordoftheTechs »

Well I made progress looked like the hosts file worked and then ran into this -

https://raw.githubusercontent.com/Micha ... tpd.nextcl
│ oud.conf
│ Resolving raw.githubusercontent.com (raw.githubusercontent.com)... failed: Connection

Maybe I am not meant to do this LOL
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud and Owncloud Installation

Post by Joulinar »

did you tried to change your DNS Server to 8.8.8.8 ??

If yes and you still facing this issues, we would need to continue adding IP's to the /etc/hosts file :lol:
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
LordoftheTechs
Posts: 9
Joined: Tue Jan 14, 2020 1:31 am

Re: Nextcloud and Owncloud Installation

Post by LordoftheTechs »

well 8.8.8.8 didn't help LOL

what IP addresses next? :cry:
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud and Owncloud Installation

Post by Joulinar »

your system getting more and more weird :?
Anyway let's do the following to enable you to find out IP addresses yourselves ;)
Pls install the small package dnsutils. It will install the tool nslookup which can be uses to check DNS and what will be resolved.

Code: Select all

G_AGI dnsutils
once done you can run the command

Code: Select all

nslookup raw.githubusercontent.com
your preferred DNS server should now answer the following

Code: Select all

root@DietPi4:~# nslookup raw.githubusercontent.com
Server:                 192.168.0.11          <--- my own DNS serer
Address:        192.168.0.11#53

Non-authoritative answer:
raw.githubusercontent.com       canonical name = github.map.fastly.net.
Name:   github.map.fastly.net
Address: 151.101.64.133                       <--- DNS serer feedback
Name:   github.map.fastly.net
Address: 151.101.128.133
Name:   github.map.fastly.net
Address: 151.101.192.133
Name:   github.map.fastly.net
Address: 151.101.0.133

root@DietPi4:~#
take one of the IP addresses and put it into your /etc/hosts. If you have IPv6 working, you will receive IPv6 addresses as well.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
LordoftheTechs
Posts: 9
Joined: Tue Jan 14, 2020 1:31 am

Re: Nextcloud and Owncloud Installation

Post by LordoftheTechs »

I'm thinking this isn't meant to be for some reason :(
User avatar
Joulinar
Posts: 2085
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud and Owncloud Installation

Post by Joulinar »

yes there is something strange on your system. You have DNS issues during installation but testing ping is working fine. I still don't understand why this happen. Maybe you could disable IPv6 within dietpi-config Network settings and test again.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply