i have a serious problem.
My installation of nextcloud is not working any more. It seems, that it does not be there anymore…
The setting:
I have a ubuntu 20 server with apache running. I installed nextcloud via snap. Everything worked fine for more than a year.
A month ago i have moved to a new place and had to move the server too.
That was the first time i had the server shut down ever.
In the new network it took me some time to get the IP ready, but now i can access the server as it should be.
But when i try opening the webinterface of nextcloud i only get the apache-startpage.
I have looked in the storage of the server and can not find any folder or something named nextcloud in the htdocs-folder.
I am not an expert in this whole field, but i hope here is somebody that can help me.
First of all, I am no expert but this wouldn’t have worked to start with.
Snap is a self contained package, it comes with it’s own apache, sql and such. There is no need for separate apache installation
If you end up installing apache on that same system running snap nextcloud, it wouldn’t work since there will be port conflict between two apaches unless one of them I guess is running on non standard web port.
If it was working for you in the first setup location, either you had nextcloud working on a different port than 80/443 or your native apache was running on different port.
You should first check that.
Secondly, if that is something you are unable to figure out, first take a snap backup (using snap export command) of your nextcloud (move that backup to a separate disk/location) and then try to remove the native apache installation to see if that makes snap nextcloud working again.
If that is also not working, then simply remove everything, and fresh install Ubuntu and then snap nextcloud and use that previous backup to restore the entire snap backup. This should start working again from there you left it.
thank you for the answer.
I can not remember it properly, but ich think you are right. I think i do not have an own apache, but used the integrated version in snap.
I did not use different ports.
How can i make a snap backup?
Will my files be accessable after a total reinstall?
Where is the data storaged, when the folder on the apache is not there any more?
What is the htop output is showing? High system load?
If fixer is active, one should wait, on a lower end configuration computer or with slower internet, it may take some time to complete it’s work.
In case your system is running a decent configuration and your internet is fast enough and this fixer is stuck like that, I guess try to stop nextcloud snap and then restart it.
sudo snap stop nextcloud
sudo snap start nextcloud
Reboot the system if needed.
Check if that shorts it out.
Otherwise you may have to explore the possibility that you indeed have native apache installed.
the only thing I know about snap is: it exists… soooo… my answer should be handled with care
anyways… you wrote that you moved to a new place. Most probably you got a new (internal) IP there. It might happen now that your snap is still configured to use your old (internal) IP from your last place. So this would be the first thing I would check and then maybe trying to adapt everything to the new (internal) address.
Could you be bit more specific as what is the error?
404?
Since you have another apache running, it could be your firewall blocking those ports.
You can check your firewall status,
sudo ufw status
If it is running, for the time being temporarily disable it for troubleshooting.
sudo ufw disable
Check if you are now able to access nextcloud with that new ports?
If are able to log in via SSH, at least it’s confirmed that you have the system in network with proper subnet and IP. New IP (trusted domain) can be added to nextcould later on. If it were an IP related issue, nextcloud will show it’s trusted domain warning page
Thanks.
P.S. Don’t forget to clear cache and cookies and temp file of your browser between different configuration attempts !! Close and restart the browser when trying again.
I’m not shure what made it work. I tried accessing with different browsers and after a while it worked. Maybe i was to quick or the server to slow…
With your help i managed to change the trusted domains and now i could log in to the website.
But it looks like the Database is three or more month old. I have made changes to files and also made new directories (with shares) in the last weeks before moving in the new place.
All this seems to be gone…
Is there a type of versioning or something like that?