Disable updates and checks completely

I am faced with issue that I cannot disable software update and app update function.
When I try to login, I get the following screen:
ownCloud will be updated to version 10.0.10
These apps will be updated:

WebDAV (dav)
Federated File Sharing (federatedfilesharing)
External storage support (files_external)
PDF Viewer (files_pdfviewer)
Share Files (files_sharing)
Deleted files (files_trashbin)
Gallery (gallery)
Market (market)
Music (music)
Notifications (notifications)
Collabora Online (richdocuments)

Please make sure that the database, the config folder and the data folder have been backed up before proceeding.

If I do update, it fails for unknown reason.

Now this is strange as on my development local machine this does not appear. But when I upload this to the server I have this problem.

I want to completely disable all checks and this screen too. Just ignore all new versions. The documentation shows various things that actually do not work:

// ‘updatechecker’ => true,
// ‘has_internet_connection’ => false,
// ‘upgrade.disable-web’ => true,
// ‘updater.server.url’ => ‘http://localhost’,
// ‘upgrade.automatic-app-update’ => false,
// ‘appstoreenabled’ => false,

I guess I need to skip this in code. Any ideas how and where to look?

Many thanks,

Andre

Hey,

i don’t think that you can skip this update in the current state. It seems you already have replaced the code of your previous ownCloud version with the recent 10.0.10 one and then ownCloud will always try to update to that version.

If you know the previous version you had installed you could try to see if you can revert the ownCloud code to that version. But personally i would try to get to 10.0.10 instead by trying to find out the reason why the update is failing.

That is the problem. I have updated to version 10.0.6 and I could use it. Now that 10.0.10 is out I have this issue. So yes I can updgrade (by doing a new installation as upgrade button does not work), and when 10.0.11 is out I will have the same problem

Hey,

maybe you can create a new thread explaining the update issue so that this can be sorted out instead of trying to avoid to update on a new version?

If i’m creating a new thread in this category i’m getting the template below presented. Maybe you could fill out the information asked within it so people are better able to help you with the updating issue?

<!--
Thanks for reporting issues back to ownCloud! This is the issue tracker of ownCloud, if you have any support question please check out https://owncloud.org/support

This is the bug tracker for the Server component. Find other components at https://github.com/owncloud/core/blob/master/.github/CONTRIBUTING.md#guidelines

For reporting potential security issues please see https://owncloud.org/security/

To make it possible for us to help you please fill out below information carefully.

Before reporting any issues please make sure that you're using the latest available version for your major branch (e.g. 9.0.x), see https://owncloud.org/changelog/
--> 
### Steps to reproduce
1.
2.
3.

### Expected behaviour
Tell us what should happen

### Actual behaviour
Tell us what happens instead

### Server configuration
**Operating system**:

**Web server:**

**Database:**

**PHP version:**

**ownCloud version:** (see ownCloud admin page)

**Updated from an older ownCloud or fresh install:**

**Where did you install ownCloud from:**

**Signing status (ownCloud 9.0 and above):**

```
Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.
```


**The content of config/config.php:**

```
Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.
```

**List of activated apps:**

```
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.
```

**Are you using external storage, if yes which one:** local/smb/sftp/...

**Are you using encryption:** yes/no

**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...

#### LDAP configuration (delete this part if not used)

```
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
```

### Client configuration
**Browser:**

**Operating system:**

### Logs
#### Web server error log
```
Insert your webserver log here
```

#### ownCloud log (data/owncloud.log)
```
Insert your ownCloud log here
```

#### Browser log
```
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
```

I reported it on github. Bottom line is i click update, and it shows screen saying it failed. There are no details. There is nothing in the log, there is nothin in the console. Debug is turned on. Details below.

Steps to reproduce

  1. Setup owncloud on the local host on local machine and install some apps
  2. Upload that to the production server and migrate database
  3. Start owncloud

Expected behaviour

Tell us what should happen - I would expect to be able to login and get to the home screen

Actual behaviour

Tell us what happens instead
When I try to login, I get the following screen:
ownCloud will be updated to version 10.0.10
These apps will be updated:

WebDAV (dav)
Federated File Sharing (federatedfilesharing)
External storage support (files_external)
PDF Viewer (files_pdfviewer)
Share Files (files_sharing)
Deleted files (files_trashbin)
Gallery (gallery)
Market (market)
Music (music)
Notifications (notifications)
Collabora Online (richdocuments)

Please make sure that the database, the config folder and the data folder have been backed up before proceeding.

If I do update, it fails for unknown reason.

Now this is strange as on my development local machine this does not appear. But when I upload this to the server I have this problem.

I want to completely disable all checks and this screen too. Just ignore all new versions. The documentation shows various things that actually do not work:

// ‘updatechecker’ => true,
// ‘has_internet_connection’ => false,
// ‘upgrade.disable-web’ => true,
// ‘updater.server.url’ => ‘http://localhost’,
// ‘upgrade.automatic-app-update’ => false,
// ‘appstoreenabled’ => false,

I guess I need to skip this in code. Any ideas how and where to look?

Server configuration

Operating system : Ubuntu 16.04

Web server: Apache

Database: mySQL

PHP version: 7.1

ownCloud version: (see ownCloud admin page) 10.4

Updated from an older ownCloud or fresh install: Fresh

Where did you install ownCloud from: Downloaded from official site

Signing status (ownCloud 9.0 and above): No idea what is this

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

I cannot log in due to issue described

The content of config/config.php:
Unchanged default settings - I am not coping my database credentials here

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:
See the description above, all the apps that are to beupdated

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/…
no
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
no

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:
any browser - Chrome Firefox
Operating system:
irrelevant to issue

Logs

Web server error log

Insert your webserver log here

There is nothing logged in. It reports error when I try to update, however that error is not displayed or logged

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

No logs on the console

Hey,

i think it will be difficult to help if you don’t get any additional errors and similar in your log files. :slightly_frowning_face:

Maybe the issue is coming from the migration of the installation? Could there be some differences in the installation path, operating system or similar?

Hi Tom, thanks for helping btw. Unfortunately that is not the case, I am very aware of the environment and settings. I also think this is only for admin users although I have not tested that.
Since the issue is here, and it is weird that no error is reported, I figure disabling that check by commenting out few lines of the code, or adding something to config file is the easiest solution for us.
We actually want to manage updates on our end (not the client server where this is), so pop ups like this are not welcome at all, but that is a different story.

Also here is a few lines from the log:

{"reqId":"o3gDlm6zDTzKG6mw0urg","level":3,"time":"2018-12-26T14:58:38+00:00","remoteAddr":"217.101.24.91","user":"--","app":"index","method":"GET","url":"\/myfiles\/index.php\/core\/js\/oc.js?v=7e063d1840d924df284ea6b94f01f2a6","message":"Exception: {\"Exception\":\"OC\\\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php(127): OC_App::loadApp('dav')\\n#1 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/util.php(147): OC_App::loadApps(Array)\\n#2 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/base.php(908): OC_Util::setupFS()\\n#3 \\\/var\\\/www\\\/html\\\/myfiles\\\/index.php(54): OC::handleRequest()\\n#4 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php\",\"Line\":191}"}
{"reqId":"G2uu9gdxwawaHf0arFm9","level":3,"time":"2018-12-26T14:58:50+00:00","remoteAddr":"217.101.24.91","user":"--","app":"index","method":"GET","url":"\/myfiles\/index.php\/core\/js\/oc.js?v=7e063d1840d924df284ea6b94f01f2a6","message":"Exception: {\"Exception\":\"OC\\\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php(127): OC_App::loadApp('dav')\\n#1 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/util.php(147): OC_App::loadApps(Array)\\n#2 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/base.php(908): OC_Util::setupFS()\\n#3 \\\/var\\\/www\\\/html\\\/myfiles\\\/index.php(54): OC::handleRequest()\\n#4 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php\",\"Line\":191}"}
{"reqId":"xjXFeJLQBPynhaNawH67","level":3,"time":"2018-12-26T15:10:05+00:00","remoteAddr":"217.101.24.91","user":"--","app":"index","method":"GET","url":"\/myfiles\/index.php\/core\/js\/oc.js?v=7e063d1840d924df284ea6b94f01f2a6","message":"Exception: {\"Exception\":\"OC\\\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php(127): OC_App::loadApp('dav')\\n#1 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/util.php(147): OC_App::loadApps(Array)\\n#2 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/base.php(908): OC_Util::setupFS()\\n#3 \\\/var\\\/www\\\/html\\\/myfiles\\\/index.php(54): OC::handleRequest()\\n#4 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php\",\"Line\":191}"}
{"reqId":"BkA4sctjLCoStEGaRsB5","level":3,"time":"2018-12-26T15:15:57+00:00","remoteAddr":"217.101.24.91","user":"--","app":"index","method":"GET","url":"\/myfiles\/index.php\/core\/js\/oc.js?v=7e063d1840d924df284ea6b94f01f2a6","message":"Exception: {\"Exception\":\"OC\\\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php(127): OC_App::loadApp('dav')\\n#1 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/util.php(147): OC_App::loadApps(Array)\\n#2 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/base.php(908): OC_Util::setupFS()\\n#3 \\\/var\\\/www\\\/html\\\/myfiles\\\/index.php(54): OC::handleRequest()\\n#4 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php\",\"Line\":191}"}
{"reqId":"r8I7UncjROsBI23Wmf1y","level":3,"time":"2018-12-26T15:15:58+00:00","remoteAddr":"217.101.24.91","user":"--","app":"index","method":"GET","url":"\/myfiles\/index.php\/core\/js\/oc.js?v=7e063d1840d924df284ea6b94f01f2a6","message":"Exception: {\"Exception\":\"OC\\\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php(127): OC_App::loadApp('dav')\\n#1 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/util.php(147): OC_App::loadApps(Array)\\n#2 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/base.php(908): OC_Util::setupFS()\\n#3 \\\/var\\\/www\\\/html\\\/myfiles\\\/index.php(54): OC::handleRequest()\\n#4 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php\",\"Line\":191}"}
{"reqId":"wHLD2u71f1rySvAEdzhr","level":3,"time":"2018-12-26T15:24:15+00:00","remoteAddr":"217.101.24.91","user":"--","app":"index","method":"GET","url":"\/myfiles\/index.php\/core\/js\/oc.js?v=7e063d1840d924df284ea6b94f01f2a6","message":"Exception: {\"Exception\":\"OC\\\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php(127): OC_App::loadApp('dav')\\n#1 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/util.php(147): OC_App::loadApps(Array)\\n#2 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/base.php(908): OC_Util::setupFS()\\n#3 \\\/var\\\/www\\\/html\\\/myfiles\\\/index.php(54): OC::handleRequest()\\n#4 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php\",\"Line\":191}"}
{"reqId":"fLxksIGZnS0ZtceFqNu1","level":3,"time":"2018-12-26T18:05:21+00:00","remoteAddr":"217.101.24.91","user":"--","app":"index","method":"GET","url":"\/myfiles\/index.php\/core\/js\/oc.js?v=7e063d1840d924df284ea6b94f01f2a6","message":"Exception: {\"Exception\":\"OC\\\\NeedsUpdateException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php(127): OC_App::loadApp('dav')\\n#1 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/util.php(147): OC_App::loadApps(Array)\\n#2 \\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/base.php(908): OC_Util::setupFS()\\n#3 \\\/var\\\/www\\\/html\\\/myfiles\\\/index.php(54): OC::handleRequest()\\n#4 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/myfiles\\\/lib\\\/private\\\/legacy\\\/app.php\",\"Line\":191}"}

Hey,

maybe you could review those steps if these are causing your issues?

I think if you e.g. migrating a ownCloud 10.0.10 database to a 10.0.6 code base could lead to issues and unexpected behaviors.