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

OC8 fails when converting sqlite3 to mysql #23809

Closed
ghost opened this issue Apr 5, 2016 · 6 comments
Closed

OC8 fails when converting sqlite3 to mysql #23809

ghost opened this issue Apr 5, 2016 · 6 comments

Comments

@ghost
Copy link

ghost commented Apr 5, 2016

Hello,

I'm trying to migrate my OC8 (8.2.3) sqlite database to mysql.
When doing a php occ db:convert-type --all-apps --clear-schema mysql owncloud 127.0.0.1 owncloud
it fails with:

Continue with the conversion (y/n)? [n] y
oc_activity
 19/19 [============================] 100%
oc_activity_mq
  0/0 [============================]   0%
oc_appconfig
 121/121 [============================] 100%
oc_clndr_calendars
 17/17 [============================] 100%
oc_clndr_objects
 2367/2367 [============================] 100%
oc_clndr_repeat
 2148/2148 [============================] 100%
oc_clndr_share_calendar
    0/0 [============================]   0%
oc_clndr_share_event
    0/0 [============================]   0%
oc_contacts_addressbooks
 6/6 [============================] 100%
oc_contacts_cards
 4439/4439 [============================] 100%
oc_contacts_cards_properties
     1/21598 [>---------------------------]   0%


  [Doctrine\DBAL\Exception\DriverException]                     
  An exception occurred while executing 'INSERT INTO oc_contacts_cards_properties (`id`, `name`, `value  
  `, `preferred`, `userid`, `contactid`) VALUES (?, ?, ?, ?, ?, ?)' with params ["15925", "PHOTO", "\/9  
  j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxN  
  DQ0Hyc5PTgyPC4zNDL\/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyM  
...

  SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'value' at row 1          



  [Doctrine\DBAL\Driver\PDOException]                                                            
  SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'value' at row 1  



  [PDOException]                                                                                 
  SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'value' at row 1  

Seems as if the contact-photo is to large?!
Any hints how to fix this (despite of deleting dozends of photos)?

Stefan

@MorrisJobke
Copy link
Contributor

cc @DeepDiver1975

@DeepDiver1975
Copy link
Member

We had this issue in the past ..... Have to search and look for an answer ...

@ghost
Copy link
Author

ghost commented Apr 5, 2016

Didn't get a real solution in the past :-(

@PVince81
Copy link
Contributor

Is this still an issue with recent versions, especially considering that the contact info has moved to core ?

@PVince81 PVince81 added this to the backlog milestone Jan 13, 2017
@PVince81 PVince81 closed this as completed Aug 7, 2017
@PVince81
Copy link
Contributor

PVince81 commented Aug 7, 2017

closing due to lack of feedback. Also, the convert code is currently broken and needs to be rewritten in OC 10: #27075

@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants