Skip to content

Calendar data database migration failure #17979

@yodax

Description

@yodax

Steps to reproduce

  1. Migrate data from sqlite to postgresql
  2. use occ db:convert-type

Expected behaviour

Data should be migrated

Actual behaviour

An error occured:

In AbstractPostgreSQLDriver.php line 79:
                                                                                                                      
  An exception occurred while executing 'INSERT INTO "oc_calendarobjects_props" ("id", "calendarid", "objectid", "na  
  me", "parameter", "value", "calendartype") VALUES(?, ?, ?, ?, ?, ?, ?)' with params ["5955", "14", "4337", "DESCRI  
  PTION", null, "\x48\x69\x20\x43\x6f\x73\x6d\x69\x6e\x2c\x0a\x20\x0a\x57\x65\x20\x6e\x65\x65\x64\x20\x74\x6f\x20\x6  
  6\x69\x6c\x6c\x20\x69\x6e\x20\x74\x68\x65\x20\x4c\x41\x43\x46\x20\x73\x70\x72\x65\x61\x64\x73\x68\x65\x65\x74\x73\  
  x20\x66\x6f\x72\x20\x73\x6f\x6d\x65\x20\x6f\x66\x20\x74\x68\x65\x20\x6d\x61\x72\x6b\x65\x74\x20\x72\x69\x73\x6b\x2  
  0\x73\x79\x73\x74\x65\x6d\x73\x20\x28\x56\x61\x72\x69\x6d\x2c\x20\x52\x41\x4d\x2c\x20\x50\x46\x41\x2c\x20\x4c\x69\  
  x63\x6f\x73\x29\x2e\x0a\x20\x0a\x57\x65\xe2\x80\x99\x64\x20\x61\x70\x70\x72\x65\x63\x69\x61\x74\x65\x20\x73\x6f\x6  
  d\x65\x20\x6f\x66\x20\x79\x6f\x75\x72\x20\x74\x69\x6d\x65\x20\x74\x6f\x20\x67\x69\x76\x65\x20\x75\x73\x20\x73\x6f\  
  x6d\x65\x20\x67\x75\x69\x64\x61\x6e\x63\x65\x20\x61\x62\x6f\x75\x74\x20\x66\x69\x6c\x6c\x69\x6e\x67\x20\x69\x6e\x2  
  0\x74\x68\x65\x20\x73\x68\x65\x65\x74\x73\x2e\x0a\x20\x0a\x49\x20\x68\x61\x76\x65\x6e\xe2\x80\x99\x74\x20\x62\x6f\  
  x6f\x6b\x65\x64\x20\x61\x20\x6d\x65\x65\x74\x69\x6e\x67\x20\x72\x6f\x6f\x6d\x20\x66\x6f\x72\x20\x74\x68\x69\x73\x2  
  0\xe2", "0"]:                                                                                                       
                                                                                                                      
  SQLSTATE[22021]: Character not in repertoire: 7 ERROR:  invalid byte sequence for encoding "UTF8": 0xe2             
                                                                                                                      

In PDOStatement.php line 119:
                                                                                                           
  SQLSTATE[22021]: Character not in repertoire: 7 ERROR:  invalid byte sequence for encoding "UTF8": 0xe2  
                                                                                                           

In PDOStatement.php line 117:
                                                                                                           
  SQLSTATE[22021]: Character not in repertoire: 7 ERROR:  invalid byte sequence for encoding "UTF8": 0xe2  
                                                                                                           


Calendar app

Calendar app version: 1.7.1

CalDAV-clients used: N/A

Client configuration

Browser: ssh

Operating system: Ubuntu 18.04

Server configuration

Operating system: Ubuntu 18.04

Web server: nginx

Database: SQLite => PostgreSQL

PHP version: 7.2

Nextcloud Version: 17.0.1

Updated from an older installed version or fresh install:

List of activated apps:

Enabled:
  - accessibility: 1.3.0
  - activity: 2.10.1
  - calendar: 1.7.1
  - cloud_federation_api: 1.0.0
  - comments: 1.7.0
  - contacts: 3.1.6
  - dav: 1.13.0
  - federatedfilesharing: 1.7.0
  - federation: 1.7.0
  - files: 1.12.0
  - files_external: 1.8.0
  - files_pdfviewer: 1.6.0
  - files_rightclick: 0.15.1
  - files_sharing: 1.9.0
  - files_trashbin: 1.7.0
  - files_versions: 1.10.0
  - files_videoplayer: 1.6.0
  - gallery: 18.4.0
  - logreader: 2.2.0
  - lookup_server_connector: 1.5.0
  - nextcloud_announcements: 1.6.0
  - notifications: 2.5.0
  - oauth2: 1.5.0
  - password_policy: 1.7.0
  - privacy: 1.1.0
  - provisioning_api: 1.7.0
  - recommendations: 0.5.0
  - serverinfo: 1.7.0
  - sharebymail: 1.7.0
  - support: 1.0.1
  - survey_client: 1.5.0
  - systemtags: 1.7.0
  - text: 1.1.1
  - theming: 1.8.0
  - twofactor_backupcodes: 1.6.0
  - updatenotification: 1.7.0
  - user_external: 0.7.0
  - viewer: 1.2.0
  - workflowengine: 1.7.0
Disabled:
  - admin_audit
  - encryption
  - firstrunwizard
  - user_ldap

Nextcloud configuration:

{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "forcessl": true,
        "overwritewebroot": "\/cloud",
        "overwrite.cli.url": "\/cloud",
        "user_backends": [
            {
                "class": "OC_User_IMAP",
                "arguments": [
                    "127.0.0.1",
                    143,
                    null
                ]
            }
        ],
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcached_servers": [
            [
                "localhost",
                11211
            ]
        ],
        "mail_smtpmode": "sendmail",
        "mail_smtpsecure": "",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": false,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "Europe\/Amsterdam",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "box.kroes.email"
        ],
        "dbtype": "sqlite3",
        "version": "17.0.1.1",
        "installed": true,
        "loglevel": 2,
        "maintenance": false,
        "trashbin_retention_obligation": "auto",
        "logdateformat": "Y-m-d H:i:s"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions