Updater is a problem itself

So I’m having 28.0.4. I see that there’s version 29.0 available. So I open the updater.

Updater fails, it says that nexcloud.log is an extra file… SRSLY?!
Ok. So I delete it. Re-running the updater - another problem on step Continue with web based updater.

So I do disable the maintenance using occ. I retry the updater and… nexcloud.log is an extra file. AGAIN.

Ok. I’m smarter this time. I enable maintenance in occ and and I open the updater again. Just before pressing Start I delete all nextcloud.log files. Seems like going smoothly, eh? I get a successful upgrade and being redirected to /settings/admin/overview where I see not only that I’m still on 28.0.4 but also I have a red error that some files did not pass integrity check. I rescan those and…

Array
(
    [core] => Array
        (
            [EXTRA_FILE] => Array
                (
                    [core/ajax/nextcloud.log] => Array
                        (
                            [expected] => 
                            [current] => 309ac5ebf4f720e8726677f737f9150cc2a7334d81c178ba62e70b610880571a722f000dddc99a11394cc01963b0d2af33cccf1af92940029e17d601e13c1cdd
                        )

                    [nextcloud.log] => Array
                        (
                            [expected] => 
                            [current] => 67c9d449c1ea5e8934075e890a6ae820cc7570bb3477004ffa78bb538314c972197c0c95b3711984ebc5747a0ba15d93fb49074dd44f6f9fc576879c8f8f5189
                        )

                )

        )

)

Guys, can you please fix the damn updater? What is the problem with it? All the time freaking nextcloud.log is the problem. Even if I set a full path in config.php to logfile - it gets reverted back to the old value which is… nexcloud.log which is causing problems.

How to get out of this never ending loop? Why it is bothering users for like years now and no one ever fixed that?
What is the proper way to perform the update?

Went for the CLI version occ update

After updating:

Downgrading is not supported and is likely to cause unpredictable issues (from 29.0.0.19 to 28.0.5.1) 

Come on!

Web updater: Does not work
OCC update: Does not work

Does anything work here?

I rolled back the snapshot. Nothing is working…

You might want to check your config, the nextcloud.log should neither be in core/ajax/ nor in the root directory.

2 Likes

Hey!

But the problem is that I did remove them from there and they keep reappearing!

You just can’t disable that stuff…

They can only re appear if the settings are this way. Thats why I pointed to the config.php. Installing a fresh copy of Nextcloud will never point the log files on these location (even that you have 2 log files is weird)

1 Like

Well you can send the log to syslog if that suits your needs better.

All the time freaking nextcloud.log is the problem. Even if I set a full path in config.php to logfile - it gets reverted back to the old value which is… nexcloud.log which is causing problems.

Both of the two nextcloud.log files it is referencing are not located in the the right place. Can you post the output of occ config:list system?

Went for the CLI version occ update

There is no such thing as occ update. And if you meant occ upgrade that isn’t the Updater either. It’s the handler for db migrations and app upgrades which runs after the Updater.

? I get a successful upgrade and being redirected to /settings/admin/overview where I see not only that I’m still on 28.0.4 but also I have a red error that some files did not pass integrity check

Anyhow, please also share your updater.log. It would also be helpful if you shared a bit about your installation method and what you’re running your Nextcloud on (OS, distribution/etc, PHP run mode, etc.)

it gets reverted back to the old value which is… nexcloud.log which is causing problems.

Something else is going on here. According to your initial report there are two nextcloud.log files and they’re also both in odd places. What’s in the ones there? Are there recent entries in them? Are the entries different in the two files?