Magento update from 2.3.0 to 2.3.1 problem

Hi there, it’s been a while but here I am with yet another problem. Just yesterday I’ve tried to update Magento from 2.3.0 to 2.3.1 via web setup wizard (I believe it’s called something like that).
The whole process went rather smoothely unti the very installation during wich the console looked like this:

[2019-05-23 14:46:03 UTC] Job "setup:maintenance:enable []" has started
Enabled maintenance mode

[2019-05-23 14:46:03 UTC] Job "setup:maintenance:enable []" has been successfully completed
[2019-05-23 14:46:03 UTC] Job "setup:cache:disable []" has started
Changed cache status:
config: 1 -> 0
layout: 1 -> 0
block_html: 1 -> 0
collections: 1 -> 0
reflection: 1 -> 0
db_ddl: 1 -> 0
compiled_config: 1 -> 0
eav: 1 -> 0
customer_notification: 1 -> 0
config_integration: 1 -> 0
config_integration_api: 1 -> 0
full_page: 1 -> 0
config_webservice: 1 -> 0
translate: 1 -> 0
vertex: 1 -> 0

[2019-05-23 14:46:03 UTC] Job "setup:cache:disable []" has been successfully completed
[2019-05-23 16:46:03 CEST] Job "update {"components":[{"name":"magento/product-community-edition","version":"2.3.1"}]}" has been started
[2019-05-23 16:46:03 CEST] Starting composer update...
[2019-05-23 16:46:22 CEST] ./composer.json has been updated

[2019-05-23 16:47:04 CEST] Update is already in progress.
[2019-05-23 16:48:08 CEST] Update is already in progress.
[2019-05-23 16:49:08 CEST] Update is already in progress.
[2019-05-23 16:50:06 CEST] Update is already in progress.
[2019-05-23 16:51:06 CEST] Update is already in progress.
[2019-05-23 16:52:05 CEST] Update is already in progress.
[2019-05-23 16:53:06 CEST] Update is already in progress.
[2019-05-23 16:54:08 CEST] Update is already in progress.
[2019-05-23 16:55:09 CEST] Update is already in progress.
[2019-05-23 16:56:08 CEST] Update is already in progress.
[2019-05-23 16:57:10 CEST] Update is already in progress.
[2019-05-23 16:58:10 CEST] Update is already in progress.
[2019-05-23 16:59:09 CEST] Update is already in progress.
[2019-05-23 17:00:13 CEST] Update is already in progress.
[2019-05-23 17:01:23 CEST] Update is already in progress.
[2019-05-23 17:02:13 CEST] Update is already in progress.
[2019-05-23 17:03:13 CEST] Update is already in progress.
[2019-05-23 17:04:12 CEST] Update is already in progress.
[2019-05-23 17:05:12 CEST] Update is already in progress.
[2019-05-23 17:06:15 CEST] Update is already in progress.
[2019-05-23 17:07:15 CEST] Update is already in progress.
[2019-05-23 17:08:16 CEST] Update is already in progress.
[2019-05-23 17:09:17 CEST] Update is already in progress.
[2019-05-23 17:10:19 CEST] Update is already in progress.
[2019-05-23 17:11:18 CEST] Update is already in progress.
[2019-05-23 17:12:18 CEST] Update is already in progress.
[2019-05-23 17:13:19 CEST] Update is already in progress.
[2019-05-23 17:14:32 CEST] Update is already in progress.
[2019-05-23 17:15:28 CEST] Update is already in progress.
[2019-05-23 17:17:41 CEST] Update is already in progress.
[2019-05-23 17:18:21 CEST] Update is already in progress.
[2019-05-23 17:19:25 CEST] Update is already in progress.
[2019-05-23 17:20:18 CEST] Update is already in progress.
[2019-05-23 17:21:19 CEST] Update is already in progress.
[2019-05-23 17:22:19 CEST] Update is already in progress.
[2019-05-23 17:23:19 CEST] Update is already in progress.
[2019-05-23 17:24:31 CEST] Update is already in progress.
[2019-05-23 17:25:51 CEST] Update is already in progress.
[2019-05-23 17:26:31 CEST] Update is already in progress.
[2019-05-23 17:27:34 CEST] Update is already in progress.
[2019-05-23 17:28:35 CEST] Update is already in progress.
[2019-05-23 17:31:27 CEST] Update is already in progress.
[2019-05-23 17:31:49 CEST] Update is already in progress.
[2019-05-23 17:31:49 CEST] Update is already in progress.
[2019-05-23 17:32:22 CEST] Update is already in progress.
[2019-05-23 17:33:18 CEST] Update is already in progress.
[2019-05-23 17:34:22 CEST] Update is already in progress.
[2019-05-23 17:35:19 CEST] Update is already in progress.
[2019-05-23 17:36:20 CEST] Update is already in progress.
[2019-05-23 17:37:32 CEST] Update is already in progress.
[2019-05-23 17:38:42 CEST] Update is already in progress.
[2019-05-23 17:39:47 CEST] Update is already in progress.
[2019-05-23 17:40:55 CEST] Update is already in progress.
[2019-05-23 17:43:45 CEST] Update is already in progress.
[2019-05-23 17:43:45 CEST] Update is already in progress.
[2019-05-23 17:45:17 CEST] Update is already in progress.
[2019-05-23 17:45:45 CEST] Update is already in progress.
[2019-05-23 17:46:35 CEST] Update is already in progress.
[2019-05-23 17:48:38 CEST] Update is already in progress.
[2019-05-23 17:49:38 CEST] Update is already in progress.
[2019-05-23 17:50:16 CEST] Update is already in progress.
[2019-05-23 17:51:15 CEST] Update is already in progress.
[2019-05-23 17:52:16 CEST] Update is already in progress.
[2019-05-23 17:53:20 CEST] Update is already in progress.
[2019-05-23 17:54:26 CEST] Update is already in progress.
[2019-05-23 17:55:45 CEST] Update is already in progress.
[2019-05-23 17:57:48 CEST] Update is already in progress.
[2019-05-23 17:58:27 CEST] Update is already in progress.
[2019-05-23 17:59:37 CEST] Update is already in progress.
[2019-05-23 18:00:31 CEST] Update is already in progress.
[2019-05-23 18:01:31 CEST] Update is already in progress.
[2019-05-23 18:02:17 CEST] Update is already in progress.
[2019-05-23 18:03:17 CEST] Update is already in progress.
[2019-05-23 18:04:19 CEST] Update is already in progress.
[2019-05-23 18:05:22 CEST] Update is already in progress.
[2019-05-23 18:07:18 CEST] Update is already in progress.
[2019-05-23 18:07:29 CEST] Update is already in progress.
[2019-05-23 18:08:24 CEST] Update is already in progress.
[2019-05-23 18:10:00 CEST] Update is already in progress.
[2019-05-23 18:11:40 CEST] Update is already in progress.
[2019-05-23 18:12:30 CEST] Update is already in progress.
[2019-05-23 18:13:37 CEST] Update is already in progress.
[2019-05-23 18:14:22 CEST] Update is already in progress.
[2019-05-23 18:15:21 CEST] Update is already in progress.
[2019-05-23 18:16:23 CEST] Update is already in progress.
[2019-05-23 18:18:34 CEST] Update is already in progress.
[2019-05-23 18:21:57 CEST] Update is already in progress.
[2019-05-23 18:22:53 CEST] Update is already in progress.
[2019-05-23 18:24:05 CEST] Update is already in progress.
[2019-05-23 18:24:31 CEST] Update is already in progress.
[2019-05-23 18:25:40 CEST] Update is already in progress.
[2019-05-23 18:26:24 CEST] Update is already in progress.
[2019-05-23 18:27:21 CEST] Update is already in progress.
[2019-05-23 18:28:15 CEST] Update is already in progress.
[2019-05-23 18:29:13 CEST] Update is already in progress.
[2019-05-23 18:30:16 CEST] Update is already in progress.
[2019-05-23 18:31:18 CEST] Update is already in progress.
[2019-05-23 18:32:20 CEST] Update is already in progress.
[2019-05-23 18:33:25 CEST] Update is already in progress.
[2019-05-23 18:35:17 CEST] Update is already in progress.
[2019-05-23 18:35:38 CEST] Update is already in progress.
[2019-05-23 18:36:21 CEST] Update is already in progress.
[2019-05-23 18:37:21 CEST] Update is already in progress.
[2019-05-23 18:38:27 CEST] Update is already in progress.
[2019-05-23 18:39:37 CEST] Update is already in progress.
[2019-05-23 18:40:22 CEST] Update is already in progress.
[2019-05-23 18:41:21 CEST] Update is already in progress.
[2019-05-23 18:42:21 CEST] Update is already in progress.
[2019-05-23 18:43:24 CEST] Update is already in progress.
[2019-05-23 18:44:26 CEST] Update is already in progress.
[2019-05-23 18:46:22 CEST] Update is already in progress.
[2019-05-23 18:47:01 CEST] Update is already in progress.
[2019-05-23 18:47:53 CEST] Update is already in progress.
[2019-05-23 18:49:09 CEST] Update is already in progress.
[2019-05-23 18:50:28 CEST] Update is already in progress.
[2019-05-23 18:51:20 CEST] Update is already in progress.
[2019-05-23 18:52:20 CEST] Update is already in progress.
[2019-05-23 18:53:21 CEST] Update is already in progress.
[2019-05-23 18:54:23 CEST] Update is already in progress.
[2019-05-23 18:55:40 CEST] Update is already in progress.
[2019-05-23 18:56:28 CEST] Update is already in progress.
[2019-05-23 18:57:28 CEST] Update is already in progress.
[2019-05-23 18:58:20 CEST] Update is already in progress.
[2019-05-23 18:59:19 CEST] Update is already in progress.
[2019-05-23 19:00:23 CEST] Update is already in progress.
[2019-05-23 19:01:47 CEST] Update is already in progress.
[2019-05-23 19:03:25 CEST] Update is already in progress.
[2019-05-23 19:04:58 CEST] Update is already in progress.
[2019-05-23 19:05:43 CEST] Update is already in progress.
[2019-05-23 19:06:36 CEST] Update is already in progress.
[2019-05-23 19:07:55 CEST] Update is already in progress.
[2019-05-23 19:10:28 CEST] Update is already in progress.
[2019-05-23 19:10:38 CEST] Update is already in progress.
[2019-05-23 19:11:37 CEST] Update is already in progress.
[2019-05-23 19:12:38 CEST] Update is already in progress.
[2019-05-23 19:15:19 CEST] Update is already in progress.
[2019-05-23 19:18:06 CEST] Update is already in progress.
[2019-05-23 19:18:27 CEST] Update is already in progress.
[2019-05-23 19:19:52 CEST] Update is already in progress.
[2019-05-23 19:21:33 CEST] Update is already in progress.
[2019-05-23 19:21:56 CEST] Update is already in progress.
[2019-05-23 19:22:27 CEST] Update is already in progress.
[2019-05-23 19:23:51 CEST] Update is already in progress.
[2019-05-23 19:25:56 CEST] Update is already in progress.
[2019-05-23 19:25:57 CEST] Update is already in progress.
[2019-05-23 19:27:44 CEST] Update is already in progress.
[2019-05-23 19:28:50 CEST] Update is already in progress.
[2019-05-23 19:29:37 CEST] Update is already in progress.
[2019-05-23 19:30:23 CEST] Update is already in progress.
[2019-05-23 19:31:22 CEST] Update is already in progress.
[2019-05-23 19:32:34 CEST] Update is already in progress.
[2019-05-23 19:33:41 CEST] Update is already in progress.
[2019-05-23 19:34:38 CEST] Update is already in progress.
[2019-05-23 19:36:32 CEST] Update is already in progress.
[2019-05-23 19:37:40 CEST] Update is already in progress.
[2019-05-23 19:38:32 CEST] Update is already in progress.
[2019-05-23 19:39:23 CEST] Update is already in progress.
[2019-05-23 19:40:34 CEST] Update is already in progress.
[2019-05-23 19:41:36 CEST] Update is already in progress.
[2019-05-23 19:42:34 CEST] Update is already in progress.
[2019-05-23 19:44:55 CEST] Update is already in progress.
[2019-05-23 19:45:43 CEST] Update is already in progress.
[2019-05-23 19:46:40 CEST] Update is already in progress.
[2019-05-23 19:46:58 CEST] Update is already in progress.
[2019-05-23 19:47:57 CEST] Update is already in progress.
[2019-05-23 19:48:38 CEST] Update is already in progress.
[2019-05-23 19:50:39 CEST] Update is already in progress.
[2019-05-23 19:50:46 CEST] Update is already in progress.
[2019-05-23 19:53:16 CEST] Update is already in progress.
[2019-05-23 19:53:35 CEST] Update is already in progress.
[2019-05-23 19:54:24 CEST] Update is already in progress.
[2019-05-23 19:55:27 CEST] Update is already in progress.
[2019-05-23 19:56:19 CEST] Update is already in progress.
[2019-05-23 19:57:18 CEST] Update is already in progress.
[2019-05-23 19:58:20 CEST] Update is already in progress.
[2019-05-23 19:59:24 CEST] Update is already in progress.
[2019-05-23 20:00:24 CEST] Update is already in progress.
[2019-05-23 20:01:59 CEST] Update is already in progress.
[2019-05-23 20:03:16 CEST] Update is already in progress.
[2019-05-23 20:03:45 CEST] Update is already in progress.
[2019-05-23 20:06:31 CEST] Update is already in progress.
[2019-05-23 20:07:28 CEST] Update is already in progress.
[2019-05-23 20:08:17 CEST] Update is already in progress.
[2019-05-23 20:09:13 CEST] Update is already in progress.
[2019-05-23 20:10:15 CEST] Update is already in progress.
[2019-05-23 20:11:16 CEST] Update is already in progress.
[2019-05-23 20:12:15 CEST] Update is already in progress.
[2019-05-23 20:13:17 CEST] Update is already in progress.
[2019-05-23 20:14:19 CEST] Update is already in progress.
[2019-05-23 20:15:20 CEST] Update is already in progress.
[2019-05-23 20:16:36 CEST] Update is already in progress.
[2019-05-23 20:17:42 CEST] Update is already in progress.
[2019-05-23 20:18:33 CEST] Update is already in progress.
[2019-05-23 20:19:20 CEST] Update is already in progress.
[2019-05-23 20:20:25 CEST] Update is already in progress.
[2019-05-23 20:21:28 CEST] Update is already in progress.
[2019-05-23 20:22:29 CEST] Update is already in progress.
[2019-05-23 20:24:31 CEST] Update is already in progress.
[2019-05-23 20:24:57 CEST] Update is already in progress.
[2019-05-23 20:25:40 CEST] Update is already in progress.
[2019-05-23 20:26:37 CEST] Update is already in progress.
[2019-05-23 20:27:40 CEST] Update is already in progress.
[2019-05-23 20:29:21 CEST] Update is already in progress.
[2019-05-23 20:29:23 CEST] Update is already in progress.
[2019-05-23 20:30:56 CEST] Update is already in progress.
[2019-05-23 20:33:15 CEST] Update is already in progress.
[2019-05-23 20:34:10 CEST] Update is already in progress.
[2019-05-23 20:34:10 CEST] Update is already in progress.
[2019-05-23 20:35:30 CEST] Update is already in progress.
[2019-05-23 20:39:25 CEST] Update is already in progress.
[2019-05-23 20:42:09 CEST] Update is already in progress.
[2019-05-23 20:42:09 CEST] Update is already in progress.
[2019-05-23 20:42:38 CEST] Update is already in progress.
[2019-05-23 20:43:21 CEST] Update is already in progress.
[2019-05-23 20:43:39 CEST] Update is already in progress.
[2019-05-23 20:43:54 CEST] Update is already in progress.
[2019-05-23 20:44:48 CEST] Update is already in progress.
[2019-05-23 20:46:14 CEST] Update is already in progress.
[2019-05-23 20:47:15 CEST] Update is already in progress.
[2019-05-23 20:47:35 CEST] Update is already in progress.
[2019-05-23 20:48:21 CEST] Update is already in progress.
[2019-05-23 20:49:22 CEST] Update is already in progress.
[2019-05-23 20:50:23 CEST] Update is already in progress.
[2019-05-23 20:52:14 CEST] Update is already in progress.
[2019-05-23 20:57:38 CEST] Update is already in progress.
[2019-05-23 20:58:35 CEST] Update is already in progress.
[2019-05-23 21:01:49 CEST] Update is already in progress.
[2019-05-23 21:02:10 CEST] Update is already in progress.
[2019-05-23 21:02:36 CEST] Update is already in progress.
[2019-05-23 21:04:40 CEST] Update is already in progress.
[2019-05-23 21:05:32 CEST] Update is already in progress.
[2019-05-23 21:06:19 CEST] Update is already in progress.
[2019-05-23 21:07:31 CEST] Update is already in progress.
[2019-05-23 21:08:32 CEST] Update is already in progress.
[2019-05-23 21:09:21 CEST] Update is already in progress.
[2019-05-23 21:10:22 CEST] Update is already in progress.
[2019-05-23 21:11:31 CEST] Update is already in progress.
[2019-05-23 21:12:20 CEST] Update is already in progress.
[2019-05-23 21:14:12 CEST] Update is already in progress.
[2019-05-23 21:14:54 CEST] Update is already in progress.
[2019-05-23 21:16:15 CEST] Update is already in progress.
[2019-05-23 21:17:19 CEST] Update is already in progress.
[2019-05-23 21:18:29 CEST] Update is already in progress.
[2019-05-23 21:19:31 CEST] Update is already in progress.
[2019-05-23 21:20:21 CEST] Update is already in progress.
[2019-05-23 21:22:11 CEST] Update is already in progress.
[2019-05-23 21:22:38 CEST] Update is already in progress.
[2019-05-23 21:24:18 CEST] Update is already in progress.
[2019-05-23 21:25:43 CEST] Update is already in progress.
[2019-05-23 21:26:55 CEST] Update is already in progress.
[2019-05-23 21:30:23 CEST] Update is already in progress.
[2019-05-23 21:30:23 CEST] Update is already in progress.
[2019-05-23 21:30:32 CEST] Update is already in progress.
[2019-05-23 21:31:43 CEST] Update is already in progress.
[2019-05-23 21:33:37 CEST] Update is already in progress.
[2019-05-23 21:34:27 CEST] Update is already in progress.
[2019-05-23 21:35:17 CEST] Update is already in progress.
[2019-05-23 21:36:21 CEST] Update is already in progress.
[2019-05-23 21:37:24 CEST] Update is already in progress.
[2019-05-23 21:38:40 CEST] Update is already in progress.
[2019-05-23 21:39:44 CEST] Update is already in progress.
[2019-05-23 21:41:02 CEST] Update is already in progress.
[2019-05-23 21:41:47 CEST] Update is already in progress.
[2019-05-23 21:43:39 CEST] Update is already in progress.
[2019-05-23 21:45:39 CEST] Update is already in progress.
[2019-05-23 21:46:35 CEST] Update is already in progress.
[2019-05-23 21:47:44 CEST] Update is already in progress.
[2019-05-23 21:48:23 CEST] Update is already in progress.
[2019-05-23 21:51:09 CEST] Update is already in progress.
[2019-05-23 21:51:44 CEST] Update is already in progress.
[2019-05-23 21:53:22 CEST] Update is already in progress.
[2019-05-23 21:53:45 CEST] Update is already in progress.
[2019-05-23 21:54:50 CEST] Update is already in progress.
[2019-05-23 21:55:42 CEST] Update is already in progress.
[2019-05-23 21:56:38 CEST] Update is already in progress.
[2019-05-23 21:57:49 CEST] Update is already in progress.
[2019-05-23 21:59:45 CEST] Update is already in progress.
[2019-05-23 22:00:16 CEST] Update is already in progress.
[2019-05-23 22:01:20 CEST] Update is already in progress.
[2019-05-23 22:02:20 CEST] Update is already in progress.
[2019-05-23 22:03:48 CEST] Update is already in progress.
[2019-05-23 22:04:37 CEST] Update is already in progress.
[2019-05-23 22:05:41 CEST] Update is already in progress.
[2019-05-23 22:07:34 CEST] Update is already in progress.
[2019-05-23 22:08:30 CEST] Update is already in progress.
[2019-05-23 22:09:18 CEST] Update is already in progress.
[2019-05-23 22:10:20 CEST] Update is already in progress.
[2019-05-23 22:11:22 CEST] Update is already in progress.
[2019-05-23 22:13:02 CEST] Update is already in progress.
[2019-05-23 22:13:40 CEST] Update is already in progress.
[2019-05-23 22:15:31 CEST] Update is already in progress.
[2019-05-23 22:16:34 CEST] Update is already in progress.
[2019-05-23 22:18:23 CEST] Update is already in progress.
[2019-05-23 22:19:16 CEST] Update is already in progress.
[2019-05-23 22:20:21 CEST] Update is already in progress.
[2019-05-23 22:21:19 CEST] Update is already in progress.
[2019-05-23 22:22:23 CEST] Update is already in progress.

I also just enable cache so I can access back end without haveng to wait 10 minutes for each page to laod and it is still going. How can I make it stop (preferably by completing it)?

My experience with the Web Setup Wizard has been pretty hit and miss over the years. Which is why I only do things via the Command Line Interface these days.

Anyway, the things that tells Web Setup Wizard about the progress of an update are found in the var folder. If you run the below command from the Magento root directory as the Magento user, you will see what I mean:

ls -la

You notice some files that start with a “.” and refer to an update. I can’t remember what they are called off the top of my head. If the Upgrade never took place for whatever reason, so ahead and delete those files. They don’t contain anything, they are just “flags”. Once you’ve removed those files, you’ll be able to try and run the Web Setup Wizard again. Maybe this time it’ll go all of the way through. I would think that typically, a Web Setup Wizard upgrade should take no longer than 15 minutes.

total 1272
drwxrwxr-x 14 magento  www-data   4096 May 25 02:02 .
drwxrwxr-x  3 root     root       4096 Mar 26 11:43 ..
drwxrwxr-x  4 magento  www-data   4096 Mar 26 11:59 app
-rw-rw-r--  1 magento  www-data    138 Mar 26 11:59 auth.json.sample
drwxrwxr-x  2 magento  www-data   4096 Mar 26 11:59 bin
-rw-rw-r--  1 magento  www-data 434977 Mar 26 11:59 CHANGELOG.md
-rw-rw-r--  1 magento  www-data   2202 May 23 16:46 composer.json
-rw-rw-r--  1 magento  www-data 685624 Mar 26 11:59 composer.lock
-rw-rw-r--  1 magento  www-data    650 Mar 26 11:59 COPYING.txt
drwxrwxr-x  5 magento  www-data   4096 Mar 26 11:59 dev
drwxrwsr-x  3 magento  www-data   4096 Mar 26 12:01 generated
drwxrwxr-x  3 magento  www-data   4096 Mar 26 11:59 .github
-rw-rw-r--  1 magento  www-data   1436 Nov 27 20:11 .gitignore
-rw-rw-r--  1 magento  www-data     57 Mar 26 11:59 grunt-config.json.sample
-rw-rw-r--  1 magento  www-data   2994 Mar 26 11:59 Gruntfile.js.sample
-rw-rw-r--  1 magento  www-data  11727 Mar 26 12:17 .htaccess
-rw-rw-r--  1 magento  www-data  11253 Mar 26 11:59 .htaccess.sample
-rw-rw-r--  1 magento  www-data   1370 Mar 26 11:59 index.php
drwxrwxr-x  4 magento  www-data   4096 Mar 26 11:59 lib
-rw-rw-r--  1 magento  www-data  10376 Mar 26 11:59 LICENSE_AFL.txt
-rw-rw-r--  1 magento  www-data  10364 Mar 26 11:59 LICENSE.txt
-rw-rw-r--  1 magento  www-data   5518 Mar 26 11:59 nginx.conf.sample
-rw-rw-r--  1 magento  www-data   1416 Mar 26 11:59 package.json.sample
-rw-rw-r--  1 magento  www-data   1654 Mar 26 11:59 .php_cs.dist
-rw-rw-r--  1 magento  www-data    804 Mar 26 11:59 php.ini.sample
drwxrwxr-x  2 magento  www-data   4096 Mar 26 11:59 phpserver
drwxrwxr-x  6 magento  www-data   4096 Mar 26 12:21 pub
-rw-------  1 www-data www-data   1024 Mar 27 10:54 .rnd
drwxrwxr-x  7 magento  www-data   4096 Mar 26 11:59 setup
-rw-rw-r--  1 magento  www-data   6017 May 25 02:02 sitemap.xml
-rw-rw-r--  1 magento  www-data   2086 Mar 26 11:59 .travis.yml
drwxrwxr-x  7 magento  www-data   4096 Mar 26 11:49 update
-rw-rw-r--  1 magento  www-data    101 Mar 26 11:59 .user.ini
drwxrwsr-x 11 magento  www-data   4096 May 23 16:46 var
drwxrwsr-x 75 magento  www-data   4096 Mar 26 11:59 vendor

So I should simply remove those? :slight_smile:
.github .gitignore .htaccess .htaccess.sample .php_cs.dist .rnd .travis.yml .user.ini

Don’t remove any files within the root directory. You want to be checking the var folder. So, change directory to var and run ls -la. Or just run ls -la var from the Magento root directory.

Using ls -la as a magento user from var directory gives me this:

[email protected]:/var$ ls -la
total 56
drwxr-xr-x 14 root root   4096 Mar 26 11:43 .
drwxr-xr-x 23 root root   4096 May 18 04:26 ..
drwxr-xr-x  2 root root   4096 May 28 06:25 backups
drwxr-xr-x 12 root root   4096 Mar 27 06:59 cache
drwxrwxrwt  2 root root   4096 May 25 06:25 crash
drwxr-xr-x 47 root root   4096 Mar 26 11:46 lib
drwxrwsr-x  2 root staff  4096 Apr 12  2016 local
lrwxrwxrwx  1 root root      9 Aug 15  2017 lock -> /run/lock
drwxrwxr-x 10 root syslog 4096 May 28 06:25 log
drwxrwsr-x  2 root mail   4096 Aug 15  2017 mail
drwxr-xr-x  2 root root   4096 Aug 15  2017 opt
lrwxrwxrwx  1 root root      4 Aug 15  2017 run -> /run
drwxr-xr-x  2 root root   4096 Apr 29  2017 snap
drwxr-xr-x  4 root root   4096 Aug 15  2017 spool
drwxrwxrwt  3 root root   4096 May 28 11:09 tmp
drwxrwxr-x  3 root root   4096 Mar 26 11:43 www

And the root direcorty gives me same result as from my previous post (root direcotry being /var/www/html is that correct?)

As stated, you want to check the var folder inside the Magento root directory - Not the var folder for the Operating System.

When you put “/” before a folder/file name, it makes a huge difference.

Correct Method 1 (Without “/” prefix)

Run this from the folder you’re currently working in. Useful if you don’t want to enter the full path.

[email protected]:/var/www/html$ ls -la var
total 8448
drwxrwsr-x  8 magento  www-data    4096 May 28 11:25 .
drwxrwxr-x 14 magento  www-data    4096 May 28 11:16 ..
drwxrwx---  2 magento  www-data    4096 Dec  9 00:32 backups
drwxrwsr-x  3 magento  www-data    4096 Mar 12 10:37 composer_home
...

Correct Method 2

Run this from anywhere. Useful if you don’t want to cd.

[email protected]:/var/www/html$ ls -la /var/www/htm/var
total 8448
drwxrwsr-x  8 magento  www-data    4096 May 28 11:25 .
drwxrwxr-x 14 magento  www-data    4096 May 28 11:16 ..
drwxrwx---  2 magento  www-data    4096 Dec  9 00:32 backups
drwxrwsr-x  3 magento  www-data    4096 Mar 12 10:37 composer_home
...

Incorrect (With “/” prefix)

[email protected]:/var/www/html$ ls -la /var
total 56
drwxr-xr-x 14 root root   4096 Dec  8 23:26 .
drwxr-xr-x 23 root root   4096 May 16 06:32 ..
drwxr-xr-x  2 root root   4096 May 28 06:25 backups
drwxr-xr-x 12 root root   4096 Dec  8 23:39 cache
...

Oh I see now. Thanks a lot.

[email protected]:~$ ls -la /var/www/html/var
total 560
drwxrwsr-x 11 magento  www-data   4096 May 23 16:46 .
drwxrwxr-x 14 magento  www-data   4096 May 29 02:00 ..
drwxrwxr-x  2 magento  www-data   4096 May 23 16:41 backups
drwxrwsr-x 19 www-data www-data   4096 Mar 26 12:05 cache
drwxrwsr-x  3 www-data www-data   4096 May 23 16:33 composer_home
-rw-rw-r--  1 www-data www-data   2202 May 23 16:34 composer.json
-rw-rw-r--  1 magento  www-data    126 Mar 26 11:59 .htaccess
drwxrwsr-x  2 www-data www-data   4096 Apr  5 11:56 importexport
drwxrwsr-x  2 www-data www-data  12288 Apr  5 11:56 import_history
drwxrwsr-x  2 www-data www-data   4096 May 23 16:46 log
-rw-rw-r--  1 magento  www-data      0 May 23 16:46 .maintenance.flag
-rw-rw-r--  1 root     www-data     12 May 15 15:03 .maintenance.ip
drwxrwsr-x 19 www-data www-data   4096 Apr 17 11:22 page_cache
-rw-rw-r--  1 www-data www-data    246 Apr  5 11:57 resource_config.json
-rw-rw-r--  1 magento  www-data   6487 May 29 11:59 .setup_cronjob_status
drwxrwsr-x  2 www-data www-data   4096 Apr  3 15:13 tmp
-rw-rw-r--  1 www-data www-data    168 May 23 16:45 .type.json
-rw-rw-r--  1 magento  www-data    148 May 29 11:59 .update_cronjob_status
-rw-r--r--  1 magento  www-data      0 May 23 16:46 .update_in_progress.flag
-rw-rw-r--  1 www-data www-data    325 May 23 16:46 .update_queue.json
-rw-rw-r--  1 magento  www-data 477152 May 29 11:59 .update_status.txt
drwxrwsr-x  3 www-data www-data   4096 Mar 26 12:06 view_preprocessed

That’s what I’ve got. So I presume I should delete the .update_in_progress.flag. Or all of the files connected to update? Because the maintenance mode was activated by me and I’d like to keep it this way.

Spot on :+1:

Remove .update_in_progress.flag and you should be good to go. The file doesn’t contain any information. It’s simply a “flag” just like the .maintenance.flag file.

Let me know how you get on. I’ll check back in later.

So, removing the flag worked. I’ve decided to try the web setup wizard one more time and it appears I have slightly different problem this time.
When I try to enter either front or back end I get the message:
An error has happened during application run. See exception log for details. Could not write error message to log. Please use developer mode to see the message.
I did delete the flag again as I had thought it may have been the issue but it is not. Also I’ve tried to find the solution and all I found was to comment out (not sure if it means to delete?) the # SetEnv MAGE_MODE developerfrom .htaccess file. but it didn’t do anything.

Did you go into Developer Mode as it suggests? In this mode, you’ll be presented with the error message directly in the browser. I wouldn’t mess with .htaccess until you check that first.

Hi, after a while I’m back again. I have trouble switching modes. I used command from magento official documentation:

sudo php bin/magento deploy:mode:set {developer} [-s|--skip-compilation]

I added both sudo and php as it without them it didn’t work at all. But the response i got is:

[email protected]:/var/www/html$ sudo php bin/magento deploy:mode:set {developer}                                              [-s|--skip-compilation]
--skip-compilation]: command not found


  Too many arguments, expected arguments "command" "mode".


deploy:mode:set [-s|--skip-compilation] [--] <mode>

Sorry it’s a bit messy. I don’t really know what to do to fix this.

Looks like you’re taking the Documentation too literally. “{}” and “[]” refer to placeholder examples. Therefore, you don’t actually use it in the command. Like “My name is {name}. I live in [city]”.

Also, bin/magento commands need to be ran as the “magento” user. So, you never prefix the command with sudo. Also, you shouldn’t need to prefix your command with ‘php’ either, unless you have an old PHP setup.

If you read a little further down the Documentation, you’ll see the command would actually be:

bin/magento deploy:mode:set developer

And if you want to switch to developer mode and skip compilation then you’d use:

bin/magento deploy:mode:set developer -s

Hopefully, that helps explain the way the Documentation is written.

Change to developer mode

When you change from production to developer mode, you should clear generated classes and Object Manager entities like proxies to prevent unexpected errors. After doing so, you can change modes. Use the following steps:

  1. If you’re changing from production mode to developer mode, delete the contents of the generated/code and generated/metadata directories:
rm -rf <magento_root>/generated/metadata/* <magento_root>/generated/code/*
  1. Set the mode:
bin/magento deploy:mode:set developer

The following message displays:

Enabled developer mode.

The problem I got when logged as magento user is being denied permission.

[email protected]:/var/www/html$ bin/magento deploy:mode:set developer -s
-bash: bin/magento: Permission denied

This is probably connected to all the permission issues I run into earlier when trying to install a template. So can I do this with super user or will it not work at all?

That definitely should not happen if everything was setup correctly. You’ll benefit from going over this post: How to diagnose and fix Ownerships and Permission issues

Ok, so I fixed the permission settings, apparently magento user didn’t have permission to “execute”. After changing mode to developer I see the error.

PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:128 
Stack trace: 
#0 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(128): PDO->__construct('mysql:host=loca...', 'magento-master', 'J>scJ!__connect() 
#2 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(406): Zend_Db_Adapter_Pdo_Mysql->_connect() 
#3 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() 
#4 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `store_w...', Array) 
...
Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:144 Stack trace: 
#0 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect() 
#1 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(406): Zend_Db_Adapter_Pdo_Mysql->_connect() 
#2 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php(460): Magento\Framework\DB\Adapter\Pdo\Mysql->_connect() 
#3 /var/www/html/vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT `store_w...', Array) 
#4 /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php(541): Zend_Db_Adapter_Pdo_Abstract->query('SELECT `store_w...', Array) 
...

Abstract.php extract lines 123 - 145

try {
	$this->_connection = new PDO(
		$dsn,
		$this->_config['username'],
		$this->_config['password'],
		$this->_config['driver_options']
	);

	$this->_profiler->queryEnd($q);

	// set the PDO connection to perform case-folding on array keys, or not
	$this->_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding);

	// always use exceptions.
	$this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

} catch (PDOException $e) {
	/**
	 * @see Zend_Db_Adapter_Exception
	 */
	#require_once 'Zend/Db/Adapter/Exception.php';
	throw new Zend_Db_Adapter_Exception($e->getMessage(), $e->getCode(), $e);
}

I thought that the error message showed the lines where I could find errors but Isimply don’t see errors and cannot find solution.

Your original post was about having problems upgrading from 2.3.0 to 2.3.1 in May. If your original post is solved, you should consider starting a new one. It’s getting a bit confusing and hard to follow.

Also, you already reported the issue with “No such file or directory” in this post: Magento backup problem

An update:

Yea, that’s correct. Sorry about that, I have had few breaks from doing anything and I just forgot about that. I used the tips you gave me there and Magento is working for me again.

That’s also true. This time I will try to update via CLI as the Web Setup Wizard is clearly not working for me. Also I’ve just noticed that there is even newer version, 2.3.2. Should I go for this?

Anyway, thanks so much for your help. I will try to keep thing more organised from now on. I will let you know how did the update go :slight_smile:

No problem. Sorry if I sound anal. This forum works best when it’s presented in a way that helps other people who stumble across the same problem, not just the Original Poster.

I’d give 2.3.2 a couple of weeks before upgrading. This way if anyone runs into any bugs with the update, it allows time for people to fix them. Don’t wait longer than a month though :+1:

Hi. Coming back to the thread. I’ve just finished updating Magento via CLI using your tutorial (although it was 2.2.8 to 2.3.1 I figured it should still work).
So it seemed to me that everything was just fine but when checking for new update in Web Setup Wizard it shows me I still got 2.3.0 and can update to 2.3.2.
Did I do something wrong or does it not show the current version properly?

Those instructions are to get from 2.2 to 2.3, which is a big upgrade requiring a lot of instructions.

The small ones are far simpler to do (e.g. 2.3.0 to 2.3.2). Just follow the steps listed in the Official Magento Documentation. It shouldn’t take much longer than 5 minutes because there aren’t many steps.

In fact I just wrote a set of simplified instructions based off the Magento Documenation I just referred to if it helps: Updating Magento 2.3.x to 2.3.x (via the CLI/Composer)