Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron is not running properly for news #3390

Closed
vengefulpunk opened this issue Feb 6, 2017 · 4 comments
Closed

Cron is not running properly for news #3390

vengefulpunk opened this issue Feb 6, 2017 · 4 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap

Comments

@vengefulpunk
Copy link

Steps to reproduce

this is in relation to the news app

News feeds stop updating after upgrading nextcloud from 11.0.0 to 11.0.1.
In the database ResetTokenBackgroundJob in OCJobs has a reserved at number in it. after changing it to 0 it runs again but this occurs again in a day or two.

Origianlly opened this at nextcloud/news#93 but BernhardPosselt recommend I open an issue for this here.

Expected behaviour

cron should run and reserved be set to 0 after it completes

Actual behaviour

appears cron runs but does not change reserved to 0 so it will not run again

Server configuration

ubuntu 16.04

Web server:
Apache 2.4.18

Database:
occurs on both mysql 5.7.17 and Postgres 9.5.5

PHP version:
7.1.1

Nextcloud version: (see Nextcloud admin page)
11.0.1

Updated from an older Nextcloud/ownCloud or fresh install:
11.0.0

Where did you install Nextcloud from:
official download
Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

No errors have been found.

List of activated apps:
activity
collaborative tags
comments
deleted files
federation
file sharing
gallery
log reader
notifications
password policy
pdf viewer
news
share by email
calendar
contacts

App list

The content of config/config.php:

'****REMOVED****', 'passwordsalt' => '****REMOVED****', 'secret' => '****REMOVED****', 'trusted_domains' => array ( 0 => '****REMOVED****', 1 => '****REMOVED****', ), 'datadirectory' => '/home/tricloud/public_html/data', 'overwrite.cli.url' => 'https://****REMOVED****', 'dbtype' => 'mysql', 'version' => '11.0.1.2', 'dbname' => '****REMOVED****', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => '****REMOVED****', 'dbpassword' => '****REMOVED****', 'logtimezone' => 'America/Denver', 'installed' => true, 'mail_from_address' => 'webmaster', 'mail_smtpmode' => 'php', 'mail_domain' => '****REMOVED****', 'overwriteprotocol' => 'https', 'maintenance' => false, 'loglevel' => 2, ); Config report ``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder or Insert your config.php content here (Without the database password, passwordsalt and secret) ```
**Are you using external storage, if yes which one:** local/smb/sftp/... no **Are you using encryption:** yes/no yes **Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/... no #### LDAP configuration (delete this part if not used) [Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "ldap" namespace. LDAP config ``` With access to your command line run e.g.: sudo -u www-data php occ ldap:show-config from within your Nextcloud 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 Google Chrome 56 Ubuntu 16.10 ### Logs #### Web server error log no errors last 5 days and this has occured twice in the past 3 daysWeb server error log ``` Insert your webserver log here ``` #### Nextcloud log (data/nextcloud.log)
Nextcloud log ``` Insert your Nextcloud log here ```
#### Browser log not browser dependent Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
@MorrisJobke
Copy link
Member

This looks like the background job crashed and doesn't properly freed the job execution. @nickvergessen do you have deeper insight into this?

@MorrisJobke MorrisJobke added the 0. Needs triage Pending check for reproducibility or if it fits our roadmap label Feb 7, 2017
@nickvergessen
Copy link
Member

Job locks are ignored after 12 hours. However, if it crashes all the time it will then be locked for 12 hours again.

@Bugsbane
Copy link
Member

I'm using news with 11.0.1 without problems. I'm running Debian 8 with nginx

@MorrisJobke
Copy link
Member

looks like the 11 and 12 version doesn't have this issue anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap
Projects
None yet
Development

No branches or pull requests

4 participants