nextcloud on 18.06 ubuntu stopped working

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    *
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-213-generic x86_64)
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • replace me
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • replace me
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • replace me
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • replace me

Summary of the issue you are facing:

hi, my Nextcould setup has been working fine for several years using the android app to auto-backup photos from my phone. however during the last week or so it just stopped working. the app says “Server not available” and I cannot connect via my ddns url via a laptop (I checked and this has updated with my current external home IP)

I can ssh to the server where this is installed and have run an update to no avail.

wondering if this is related to the recent php issue at all, or just a co-incidence?

when I try to read the logs via terminal I get permission denied :frowning:

any help would be greatly appreciated

Steps to replicate it (hint: details matter!):

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

PASTE HERE

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Hello @quizzy,
welcome to the Nextcloud community :handshake:

You’ve posted a request in the support section. Unfortunately you have not completed the required support template. Please edit your post and add as much information as possible so that community supporters have the necessary technical information to help you resolve your issue!

If you really run Ubuntu 18.04. I would recommend you seriously if self-hosting the right approach → please use managed services → 101: Self-hosting information for beginners

Regards,
wwe

  • Standard Support End: Free public security patches and updates from Canonical ended on May 31, 2023 but
  • Extended Security Maintenance (ESM): Through an Ubuntu Pro subscription, systems can continue receiving security patches via ESM until April 2028. Ubuntu Pro is free for personal use on up to 5 machines
  • Risks: Running Ubuntu 18.04 without ESM means your system no longer receives critical vulnerability (CVE) or security fixes, creating compliance and security hazards

Default (from Ubuntu-Sources) PHP-Version of 18.04 was 7.2 so if you have no ESM or use another source for PHP there is no Patch for php2shell.

A few additions/clarifications:

ESM will not help you obtain a more recent PHP version. It only provides security patches for the old version of PHP that was included with Ubuntu 18.04, in this case, PHP 7.2. This would also require you to run an outdated version of Nextcloud, which would have several known security vulnerabilities on its own.

One option for installing a newer version of PHP is (or rather was, on Ubuntu 18.04) to use Ondrej Sury’s PPA. However, he only provides updates for Ubuntu releases that are still under standard support. This means that Ubuntu 18.04 and 20.04 no longer receive patches through his PPA: Frequently Asked Questions - oerdnj/deb.sury.org - Codeberg.org.

So the only real option for Ubuntu 18.04 would be the paid PHP LTS offering from Freexian: Frequently Asked Questions - oerdnj/deb.sury.org - Codeberg.org.

Personally, though, I wouldn’t recommend that, I’d strongly suggest upgrading to at least Ubuntu 24.04, or potentially doing a fresh installation or moving to managed hosting, as @wwe already suggested.

hey guys, many thanks for taking the time to reply - appreciate it.

good news - as per bb77’s advise I’ve upgraded to 24.04 and nextcloud is now working again! nothing else was required so I guess the latest nextcloud s/w was dependant on something.. probably the php update?

wwe and adelaar - thanks for your thoughts, I’ll be sure to keep things updated from now. guess I set this up then life and family happened and it kinda got forgotten about until it broke!

for ref, now running 34.0.5 and Ubuntu 24.04.5 LTS (GNU/Linux 6.8.0-147-generic x86_64)