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

Versions neither displayed nor saved #29237

Closed
sitnarf opened this issue Oct 14, 2021 · 2 comments
Closed

Versions neither displayed nor saved #29237

sitnarf opened this issue Oct 14, 2021 · 2 comments

Comments

@sitnarf
Copy link

sitnarf commented Oct 14, 2021

Steps to reproduce

  1. Enable "Versions" app
  2. Create Test.md in files
  3. Edit it several times over few minutes

Expected behaviour

In the sidebar, under Versions, several versions should be available

Actual behaviour

In the sidebar: "No other versions available"

Additional info

When files_versions folder checked, versions are not created. There is a possibly related error in the log (Call to undefined method OC_DB::getDbStructure()).

image

Server configuration detail

Operating system: Linux 5.4.0-88-generic #99-Ubuntu SMP Thu Sep 23 17:29:00 UTC 2021 x86_64

Webserver: Apache/2.4.48 (Debian) (apache2handler)

Database: mysql 10.5.10

PHP version:

8.0.11
Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, pdo_sqlite, session, posix, Reflection, standard, SimpleXML, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, sodium, zip, Zend OPcache

Nextcloud version: 22.2.0 - 22.2.0.2

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status

Array
(
)

List of activated apps
Enabled:
 - accessibility: 1.8.0
 - activity: 2.15.0
 - admin_audit: 1.12.0
 - analytics: 3.6.1
 - apporder: 0.13.0
 - bookmarks: 10.0.0
 - breezedark: 22.0.2
 - calendar: 2.3.4
 - circles: 22.1.1
 - cloud_federation_api: 1.5.0
 - comments: 1.12.0
 - contacts: 4.0.3
 - contactsinteraction: 1.3.0
 - cookbook: 0.9.4
 - dav: 1.19.0
 - deck: 1.5.3
 - documentserver_community: 0.1.11
 - drawio: 1.0.1
 - federatedfilesharing: 1.12.0
 - federation: 1.12.0
 - files: 1.17.0
 - files_automatedtagging: 1.12.0
 - files_external: 1.13.0
 - files_pdfviewer: 2.3.0
 - files_rightclick: 1.1.0
 - files_sharing: 1.14.0
 - files_snapshots: 1.0.2
 - files_trashbin: 1.12.0
 - files_versions: 1.15.0
 - files_videoplayer: 1.11.0
 - fileslibreofficeedit: 1.0.2
 - firstrunwizard: 2.11.0
 - integration_onedrive: 1.1.0
 - issuetemplate: 0.7.0
 - logreader: 2.7.0
 - lookup_server_connector: 1.10.0
 - mail: 1.10.5
 - nextbackup: 21.1.0
 - nextcloud_announcements: 1.11.0
 - notifications: 2.10.1
 - oauth2: 1.10.0
 - password_policy: 1.12.0
 - photos: 1.4.0
 - privacy: 1.6.0
 - provisioning_api: 1.12.0
 - rainloop: 7.1.2
 - recommendations: 1.1.0
 - registration: 1.3.0
 - richdocuments: 4.2.3
 - richdocumentscode: 6.4.1103
 - settings: 1.4.0
 - sharebymail: 1.12.0
 - support: 1.5.0
 - survey_client: 1.10.0
 - systemtags: 1.12.0
 - tasks: 0.14.2
 - text: 3.3.0
 - theming: 1.13.0
 - twofactor_backupcodes: 1.11.0
 - updatenotification: 1.12.0
 - user_status: 1.2.0
 - viewer: 1.6.0
 - weather_status: 1.2.0
 - workflowengine: 2.4.0
Disabled:
 - bbb
 - bruteforcesettings
 - collectives
 - dashboard
 - encryption
 - files_mindmap
 - integration_google
 - maps
 - notes
 - onlyoffice
 - polls
 - previewgenerator
 - serverinfo
 - user_ldap

Configuration (config/config.php)
{
    "htaccess.RewriteBase": "\/",
    "memcache.local": "\\OC\\Memcache\\APCu",
    "apps_paths": [
        {
            "path": "\/var\/www\/html\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/www\/html\/custom_apps",
            "url": "\/custom_apps",
            "writable": true
        }
    ],
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "localhost:8080",
        "strf.cz"
    ],
    "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
    "overwriteprotocol": "https",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "22.2.0.2",
    "overwrite.cli.url": "https:\/\/strf.cz",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "theme": "",
    "loglevel": 2,
    "maintenance": false,
    "app_install_overwrite": [
        "issuetemplate",
        "joplin",
        "richdocumentscode",
        "quicknotes",
        "health",
        "cookbook",
        "dashboardcharts",
        "mindmap_app",
        "dropit",
        "nextbackup",
        "files_external_onedrive"
    ],
    "enable_previews": true,
    "enabledPreviewProviders": [
        "OC\\Preview\\Movie",
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\MP3",
        "OC\\Preview\\MP4",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\PDF"
    ],
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtpauth": 1,
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "443",
    "mail_smtpsecure": "ssl"
}

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

Are you using encryption:

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

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Operating system:

Logs

Web server error log

Nextcloud log
Error: Call to undefined method OC_DB::getDbStructure()
/var/www/html/custom_apps/nextbackup/jobs/backupjob.php - line 46:

OCA\NextBackup\Service\BackupService->createDBBackup()

/var/www/html/lib/private/BackgroundJob/Job.php - line 51:

OCA\NextBackup\Jobs\BackupJob->run(null)

/var/www/html/lib/private/BackgroundJob/TimedJob.php - line 58:

OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})

/var/www/html/cron.php - line 127:

OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})
Browser log

`

@solracsf
Copy link
Member

solracsf commented Nov 4, 2021

The error Call to undefined method OC_DB::getDbStructure() seems related to https://github.com/pbek/nextbackup not to Nextcloud core.

@joshtrichards
Copy link
Member

Indeed. That third-party app never supporedt >=NC22: pbek/nextbackup#51

This old Issue needs to be closed out.

@szaimen szaimen closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants