server icon indicating copy to clipboard operation
server copied to clipboard

cron stopped working in 20.0.4 (in combination w/ external SMB storage + hostnames)

Open rawbertl opened this issue 5 years ago • 2 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. I upgraded from 19.0.6 to 20.0.4
  2. In Settings > Overview it says "Last background job execution ran 3 days ago. Something seems wrong. Check the background job settings"

Expected behaviour

The Cron job should just run.

Actual behaviour

The Cron job doesn't execute anymore.

Server configuration

Operating system: https://hub.docker.com/_/nextcloud/ | 20.0.4-apache

Web server: Apache/2.4.38 (Debian)

Database: PostgreSQL

PHP version: PHP 7.4.13

Nextcloud version: 20.0.4

Updated from an older Nextcloud/ownCloud or fresh install: upgrade from 19.0.6

Where did you install Nextcloud from: Docker Hub

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.13.4
  - admin_audit: 1.10.0
  - bookmarks: 4.0.5
  - calendar: 2.1.2
  - cloud_federation_api: 1.3.0
  - comments: 1.10.0
  - contacts: 3.4.2
  - contactsinteraction: 1.1.0
  - dashboard: 7.0.0
  - dav: 1.16.2
  - federatedfilesharing: 1.10.2
  - files: 1.15.0
  - files_external: 1.11.1
  - files_pdfviewer: 2.0.1
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.1
  - files_trashbin: 1.10.1
  - files_versions: 1.13.0
  - files_videoplayer: 1.9.0
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - notes: 4.0.1
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - password_policy: 1.10.1
  - photos: 1.2.1
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - sharebymail: 1.10.0
  - systemtags: 1.10.0
  - tasks: 0.13.6
  - text: 3.1.0
  - theming: 1.11.0
  - twofactor_backupcodes: 1.9.0
  - updatenotification: 1.10.0
  - user_status: 1.0.1
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflowengine: 2.2.0
Disabled:
  - accessibility
  - encryption
  - federation
  - firstrunwizard
  - nextcloud_announcements
  - recommendations
  - support
  - survey_client
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "htaccess.RewriteBase": "\/",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "..."
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/...",
        "dbtype": "pgsql",
        "version": "20.0.4.0",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "logtimezone": "UTC",
        "log_type": "file",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "log_rotate_size": 104857600,
        "installed": true,
        "filelocking.enabled": true,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "updater.release.channel": "stable",
        "theme": "",
        "loglevel": 1,
        "knowledgebaseenabled": false,
        "app_install_overwrite": [
            "calendar"
        ],
        "overwriteprotocol": "https",
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false
    },
    "apps": {
        "accessibility": {
            "types": "",
            "installed_version": "1.2.0",
            "enabled": "no"
        },
        "activity": {
            "enabled": "yes",
            "types": "filesystem",
            "installed_version": "2.13.4"
        },
        "admin_audit": {
            "enabled": "yes",
            "types": "logging",
            "installed_version": "1.10.0"
        },
        "audioplayer": {
            "types": "filesystem",
            "enabled": "no",
            "installed_version": "2.6.0"
        },
        "backgroundjob": {
            "lastjob": "2766"
        },
        "bookmarks": {
            "types": "",
            "installed_version": "4.0.5",
            "enabled": "yes"
        },
        "bookmarks_fulltextsearch": {
            "enabled": "no",
            "installed_version": "1.0.0",
            "types": ""
        },
        "bruteForce": {
            "whitelist_2": "192.168.1.0\/24",
            "whitelist_1": "192.168.0.0\/24"
        },
        "bruteforcesettings": {
            "types": "",
            "enabled": "no",
            "installed_version": "2.0.1"
        },
        "calendar": {
            "types": "",
            "enabled": "yes",
            "installed_version": "2.1.2"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "types": "filesystem",
            "installed_version": "1.3.0"
        },
        "comments": {
            "enabled": "yes",
            "types": "logging",
            "installed_version": "1.10.0"
        },
        "contacts": {
            "types": "dav",
            "enabled": "yes",
            "installed_version": "3.4.2"
        },
        "contactsinteraction": {
            "types": "dav",
            "enabled": "yes",
            "installed_version": "1.1.0"
        },
        "core": {
            "OC_Channel": "beta",
            "backgroundjobs_mode": "cron",
            "default_encryption_module": "OC_DEFAULT_MODULE",
            "incoming_server2server_share_enabled": "no",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1450261788.0683",
            "moveavatarsdone": "yes",
            "outgoing_server2server_share_enabled": "no",
            "previewsCleanedUp": "1",
            "public_caldav": "calendar\/share.php",
            "public_calendar": "calendar\/share.php",
            "public_documents": "documents\/public.php",
            "public_files": "files_sharing\/public.php",
            "public_richdocuments": "richdocuments\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "remote_caldav": "dav\/appinfo\/v1\/caldav.php",
            "remote_calendar": "dav\/appinfo\/v1\/caldav.php",
            "remote_carddav": "dav\/appinfo\/v1\/carddav.php",
            "remote_contacts": "dav\/appinfo\/v1\/carddav.php",
            "remote_dav": "dav\/appinfo\/v2\/remote.php",
            "remote_files": "dav\/appinfo\/v1\/webdav.php",
            "remote_webdav": "dav\/appinfo\/v1\/webdav.php",
            "repairlegacystoragesdone": "yes",
            "shareapi_allow_group_sharing": "yes",
            "shareapi_allow_links": "yes",
            "shareapi_allow_mail_notification": "yes",
            "shareapi_allow_public_notification": "yes",
            "shareapi_allow_public_upload": "no",
            "shareapi_allow_resharing": "yes",
            "shareapi_exclude_groups": "no",
            "shareapi_exclude_groups_list": "[\"\"]",
            "shareapi_only_share_with_group_members": "no",
            "umgmt_show_email": "true",
            "vendor": "nextcloud",
            "scss.variables": "5be26923be8f5e6ed7548dc091195c11",
            "updater.secret.created": "1608119580",
            "lastupdateResult": "[]",
            "enterpriseLogoChecked": "yes",
            "oc.integritycheck.checker": "[]",
            "theming.variables": "966826b4e0c8f3f79aed96cd8fa5a4a3",
            "lastcron": "1608887701",
            "lastupdatedat": "1608837000"
        },
        "dashboard": {
            "installed_version": "7.0.0",
            "types": "",
            "enabled": "yes"
        },
        "dav": {
            "buildCalendarSearchIndex": "yes",
            "enabled": "yes",
            "types": "filesystem",
            "chunks_migrated": "1",
            "installed_version": "1.16.2",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "buildCalendarReminderIndex": "yes"
        },
        "documents": {
            "enabled": "no",
            "installed_version": "0.12.0",
            "ocsid": "168711",
            "types": ""
        },
        "drawio": {
            "DrawioLang": "auto",
            "DrawioTheme": "kennedy",
            "DrawioUrl": "https:\/\/www.draw.io",
            "DrawioXml": "no",
            "types": "filesystem",
            "enabled": "no",
            "installed_version": "0.9.2"
        },
        "encryption": {
            "masterKeyId": "master_b20fba51",
            "publicShareKeyId": "pubShare_b20fba51",
            "recoveryKeyId": "recoveryKey_b20fba51"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "types": "",
            "installed_version": "1.10.2"
        },
        "federation": {
            "autoAddServers": "0",
            "enabled": "no",
            "installed_version": "1.2.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "types": "filesystem",
            "installed_version": "1.15.0"
        },
        "files_antivirus": {
            "av_chunk_size": "1024",
            "av_cmd_options": "",
            "av_host": "",
            "av_infected_action": "only_log",
            "av_mode": "socket",
            "av_path": "\/usr\/bin\/clamscan",
            "av_port": "0",
            "av_socket": "\/var\/run\/clamav\/clamd.ctl",
            "enabled": "no",
            "installed_version": "0.8.0.1",
            "ocsid": "157439",
            "signed": "true",
            "types": "filesystem"
        },
        "files_external": {
            "\/Scanner": "1452517998",
            "allow_user_mounting": "yes",
            "enabled": "yes",
            "types": "filesystem",
            "user_mounting_backends": "smb,\\OC\\Files\\Storage\\SMB_OC",
            "installed_version": "1.11.1"
        },
        "files_fulltextsearch": {
            "files_audio": "0",
            "files_encrypted": "0",
            "files_federated": "0",
            "files_group_folders": "0",
            "files_image": "0",
            "files_local": "1",
            "files_office": "1",
            "enabled": "no",
            "files_external": "1",
            "files_pdf": "1",
            "types": "filesystem",
            "installed_version": "1.2.5",
            "files_size": "20"
        },
        "files_fulltextsearch_tesseract": {
            "tesseract_lang": "deu,eng",
            "tesseract_psm": "4",
            "types": "",
            "enabled": "no",
            "installed_version": "1.2.0",
            "tesseract_enabled": "1"
        },
        "files_markdown": {
            "enabled": "no",
            "installed_version": "2.0.4",
            "types": ""
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "types": "",
            "installed_version": "2.0.1"
        },
        "files_rightclick": {
            "types": "",
            "enabled": "yes",
            "installed_version": "0.17.0"
        },
        "files_sharing": {
            "enabled": "yes",
            "incoming_server2server_share_enabled": "no",
            "outgoing_server2server_share_enabled": "no",
            "types": "filesystem",
            "installed_version": "1.12.1"
        },
        "files_texteditor": {
            "types": "",
            "enabled": "no",
            "installed_version": "2.8.0"
        },
        "files_trashbin": {
            "enabled": "yes",
            "types": "filesystem,dav",
            "installed_version": "1.10.1"
        },
        "files_versions": {
            "enabled": "yes",
            "types": "filesystem,dav",
            "installed_version": "1.13.0"
        },
        "files_videoplayer": {
            "enabled": "yes",
            "types": "",
            "installed_version": "1.9.0"
        },
        "files_videoviewer": {
            "enabled": "no",
            "installed_version": "0.1.3",
            "ocsid": "166054",
            "types": ""
        },
        "firstrunwizard": {
            "installed_version": "2.3.0",
            "types": "logging",
            "enabled": "no"
        },
        "fulltextsearch": {
            "app_navigation": "1",
            "provider_indexed": "{\"files\":\"1\"}",
            "search_platform": "OCA\\FullTextSearch_ElasticSearch\\Platform\\ElasticSearchPlatform",
            "types": "",
            "installed_version": "1.2.4",
            "cron_err_reset": "1549991702",
            "enabled": "no"
        },
        "fulltextsearch_elasticsearch": {
            "analyzer_tokenizer": "standard",
            "elastic_host": "http:\/\/localhost:9200",
            "elastic_index": "my_cloud_index",
            "types": "",
            "enabled": "no",
            "installed_version": "1.2.3"
        },
        "gallery": {
            "types": "",
            "installed_version": "18.4.0",
            "enabled": "no"
        },
        "groupfolders": {
            "enabled": "no",
            "installed_version": "1.2.2",
            "types": "filesystem"
        },
        "logreader": {
            "enabled": "yes",
            "types": "",
            "installed_version": "2.5.0"
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "types": "authentication",
            "installed_version": "1.8.0"
        },
        "mail": {
            "signed": "true",
            "types": "",
            "enabled": "no",
            "installed_version": "1.4.1"
        },
        "nextcloud_announcements": {
            "pub_date": "Sat, 10 Dec 2016 00:00:00 +0100",
            "types": "logging",
            "installed_version": "1.5.0",
            "enabled": "no"
        },
        "notes": {
            "types": "",
            "installed_version": "4.0.1",
            "enabled": "yes"
        },
        "notifications": {
            "enabled": "yes",
            "types": "logging",
            "installed_version": "2.8.0"
        },
        "oauth2": {
            "enabled": "yes",
            "types": "authentication",
            "installed_version": "1.8.0"
        },
        "onlyoffice": {
            "DocumentServerUrl": "https:\/\/192.168.0.200:4443\/",
            "ocsid": "174798",
            "DocumentServerInternalUrl": "",
            "enabled": "no",
            "types": "filesystem",
            "StorageUrl": "",
            "jwt_secret": "t123ps3cr3t",
            "defFormats": "{\"csv\":\"false\",\"doc\":\"false\",\"docm\":\"false\",\"docx\":\"true\",\"dotx\":\"false\",\"epub\":\"false\",\"html\":\"false\",\"odp\":\"false\",\"ods\":\"false\",\"odt\":\"false\",\"pdf\":\"false\",\"potm\":\"false\",\"potx\":\"false\",\"ppsm\":\"false\",\"ppsx\":\"false\",\"ppt\":\"false\",\"pptm\":\"false\",\"pptx\":\"true\",\"rtf\":\"false\",\"txt\":\"false\",\"xls\":\"false\",\"xlsm\":\"false\",\"xlsx\":\"true\",\"xltm\":\"false\",\"xltx\":\"false\"}",
            "editFormats": "{\"csv\":\"true\",\"odp\":\"false\",\"ods\":\"false\",\"odt\":\"false\",\"rtf\":\"false\",\"txt\":\"true\"}",
            "sameTab": "false",
            "groups": "null",
            "settings_error": "",
            "skey": "1551517747994",
            "installed_version": "4.1.1"
        },
        "ownpad": {
            "enabled": "no",
            "installed_version": "0.5.10",
            "ocsid": "174679",
            "ownpad_ethercalc_enable": "no",
            "ownpad_etherpad_enable": "no",
            "types": ""
        },
        "password_policy": {
            "enabled": "yes",
            "enforceNonCommonPassword": "0",
            "minLength": "6",
            "types": "authentication",
            "installed_version": "1.10.1"
        },
        "photos": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.2.1"
        },
        "privacy": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.4.0"
        },
        "provisioning_api": {
            "enabled": "yes",
            "types": "prevent_group_restriction",
            "installed_version": "1.10.0"
        },
        "recommendations": {
            "installed_version": "0.4.0",
            "types": "",
            "enabled": "no"
        },
        "richdocuments": {
            "enabled": "no",
            "canonical_webroot": "",
            "doc_format": "ooxml",
            "external_apps": "",
            "types": "filesystem,dav,prevent_group_restriction",
            "wopi_url": "https:\/\/...",
            "installed_version": "3.2.2"
        },
        "serverinfo": {
            "enabled": "yes",
            "types": "",
            "installed_version": "1.10.0"
        },
        "settings": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.2.0"
        },
        "sharebymail": {
            "enabled": "yes",
            "types": "filesystem",
            "installed_version": "1.10.0"
        },
        "support": {
            "installed_version": "1.0.0",
            "types": "",
            "enabled": "no"
        },
        "survey_client": {
            "apps": "no",
            "database": "no",
            "enabled": "no",
            "encryption": "no",
            "files_sharing": "no",
            "installed_version": "1.0.0",
            "php": "no",
            "server": "no",
            "stats": "no",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "types": "logging",
            "installed_version": "1.10.0"
        },
        "tasks": {
            "types": "",
            "enabled": "yes",
            "installed_version": "0.13.6"
        },
        "templateeditor": {
            "enabled": "no",
            "installed_version": "0.2",
            "types": ""
        },
        "text": {
            "types": "dav",
            "enabled": "yes",
            "installed_version": "3.1.0"
        },
        "theming": {
            "cachebuster": "5",
            "enabled": "yes",
            "name": "...",
            "slogan": "***REMOVED SENSITIVE VALUE***",
            "types": "logging",
            "url": "***REMOVED SENSITIVE VALUE***",
            "installed_version": "1.11.0"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "types": "",
            "installed_version": "1.9.0"
        },
        "twofactor_totp": {
            "enabled": "no",
            "installed_version": "1.3.0",
            "types": ""
        },
        "unsplash": {
            "installed_version": "1.1.1",
            "types": "",
            "enabled": "no"
        },
        "updatenotification": {
            "files_rightclick": "0.15.1",
            "enabled": "yes",
            "files_fulltextsearch": "1.1.1",
            "files_pdfviewer": "1.2.1",
            "fulltextsearch": "1.1.0",
            "fulltextsearch_elasticsearch": "1.0.2",
            "groupfolders": "1.1.0",
            "theming": "1.4.5",
            "types": "",
            "bruteforcesettings": "1.4.0",
            "audioplayer": "2.5.1",
            "mail": "0.15.4",
            "drawio": "0.9.2",
            "richdocuments": "3.2.1",
            "calendar": "2.0.4",
            "notes": "3.6.4",
            "tasks": "0.13.6",
            "core": "20.0.4.0",
            "bookmarks": "3.4.9",
            "contacts": "3.4.2",
            "update_check_errors": "0",
            "installed_version": "1.10.0"
        },
        "updater": {
            "enabled": "no",
            "installed_version": "0.6",
            "types": ""
        },
        "user_status": {
            "installed_version": "1.0.1",
            "types": "",
            "enabled": "yes"
        },
        "viewer": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.4.0"
        },
        "weather_status": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "types": "filesystem",
            "installed_version": "2.2.0"
        }
    }
}

Are you using external storage, if yes which one: smb

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

not relevant

Browser log

not relevant

Server log

{"reqId":"lIygNRwngYC7Hr3HBGkk","level":2,"time":"2020-12-28T08:00:00+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"External storage not available: Storage unauthorized. Invalid hostname","userAgent":"--","version":"20.0.4.0"}

The external (smb) storage works from within the UI!

rawbertl avatar Dec 28 '20 08:12 rawbertl

Update: I got it working again by changing the hostname ("nas") to an IP address instead. Interestingly, the same worked in 19.0.6 and I haven't changed the setup in any aspect.

rawbertl avatar Dec 28 '20 09:12 rawbertl

Is this Issue still valid in NC21.0.2? If not, please close this issue. Thanks! :)

szaimen avatar Jun 18 '21 14:06 szaimen