Fresh install of Ubuntu and Nextcloud 30.0.5 Can't access from local network

I did a completely fresh install of Ubuntu and NextCloud server using snap yesterday. The GUI for NextCloud comes up on the Ubuntu box when I enter ā€œlocalhostā€ on the browser. I want to be able to access NextCloud from another computer. I see that I may need to add a trusted_domain section in the config.php file, which I finally found buried deep here:

/var/snap/nextcloud/current/nextcloud/config/config.php

I added the following section to it, adding the IP address of another computer on the same local network as the Nextcloud server PC:

ā€˜trusted_domainā€™ =>
array (
0 = 192.168.0.100ā€™,
),

Now it wonā€™t even let me connect to the GUI on the Ubuntu box where itā€™s running. When I put ā€œlocalhostā€ into the browser it says:

Internal Server Error

The server encountered an internal error and was unable to complete your request, etc.

And when I try to connect to the IP of the Nextcloud server PC from another PC on the same local network, I get the same error.

But when I completely remove the trusted_domain section, I can open the GUI on the Nextcloud box, and when I try to connect to the Nextcloud server from another PC on the same local network, at least is gives me a screen that says:

Access through untrusted domain

Please contact your administrator. If you are an administrator, edit the ā€œtrusted_domainsā€ setting in config/config.php like the example in config.sample.php.

Further information how to configure this can be found in the documentation.

What should I do? Nextcloud is kinda useless if I canā€™t access from it outside the PC that itā€™s running on.

Ultimately, I want to connect it to a TrueNAS installion I have running on another PC on the same local network. But this may be too complicated, and will likely never work.

Thanks! I am really trying to learn. I was up all last night fiddling with this setting, and could not make a simple connection to a PC on the same local network. I looked at countless online sources, and none it provided a step-by-step solution.

hey @stacaz99 and welcome to the community

did you look here How to install Nextcloud snap? A good reference is the developers GitHub here Nextcloud snap wiki. but there is no single simple step by step solution since there are countless hardware, network configurations and OS setup optionsā€¦ one ā€œworks for all step by stepā€ is virtually impossible.

tell us more about your setup thereā€™s no way we can guess what youā€™ve done so far. Recollect steps taken, note recent changes and structure that information. Do the basics and try to get a grasp of the situation. start by filling in the required support template.

from this weā€™re guessing that you havenā€™t encrypted your instance How to manage Lets Encrypt for Nextcloud snap is there a reason for skipping this requirement? This might help you get an idea of what is required 101: Network, domain and DNS

1 Like