6.0.0-beta1
7/9/25

[#10398] Activesync stopped working with latest pear update (SQL Problem)
Summary Activesync stopped working with latest pear update (SQL Problem)
Queue Synchronization
Queue Version Git master
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester Twilek (at) gmx (dot) de
Created 08/01/2011 (5091 days ago)
Due
Updated 08/01/2011 (5091 days ago)
Assigned
Resolved 08/01/2011 (5091 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/01/2011 08:27:53 AM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
You didn't run the migrations.
08/01/2011 07:52:29 AM Twilek (at) gmx (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Activesync stopped working with latest pear update (SQL Problem)
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
Reply to this comment
Since updating via pear today (1.8.11) trying to access the 
Activesyncdevices tab in Config generates

SQLSTATE[42S22]: Column not found: 1054 Unknown column 
'device_policykey' in 'field list'

1. Horde_ActiveSync_State_History->resetAllPolicyKeys() 
/var/www/webmail/admin/activesync.php:50

Details
Die vollständige Fehlermeldung wurde in Hordes Logdatei geschrieben 
und für Administratoren weiter unten ausgegeben. Benutzer, die keine 
Administratoren sind, bekommen diese Details nicht zu sehen.

Horde_ActiveSync_Exception Object
(
     [details] =>
     [message:protected] => SQLSTATE[42S22]: Column not found: 1054 
Unknown column 'device_policykey' in 'field list'
     [string:Exception:private] =>
     [code:protected] => 42
     [file:protected] => 
/var/www/webmail/pear/php/Horde/ActiveSync/State/History.php
     [line:protected] => 833
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [file] => /var/www/webmail/admin/activesync.php
                     [line] => 50
                     [function] => resetAllPolicyKeys
                     [class] => Horde_ActiveSync_State_History
                     [type] => ->
                     [args] => Array
                         (
                         )

                 )

         )

     [previous:Exception:private] => Horde_Db_Exception Object
         (
             [details] =>
             [message:protected] => SQLSTATE[42S22]: Column not found: 
1054 Unknown column 'device_policykey' in 'field list'
             [string:Exception:private] =>
             [code:protected] => 42
             [file:protected] => 
/var/www/webmail/pear/php/Horde/Db/Adapter/Base.php
             [line:protected] => 556
             [trace:Exception:private] => Array
                 (
                     [0] => Array
                         (
                             [file] => 
/var/www/webmail/pear/php/Horde/Db/Adapter/Base.php
                             [line] => 604
                             [function] => execute
                             [class] => Horde_Db_Adapter_Base
                             [type] => ->
                             [args] => Array
                                 (
                                     [0] => UPDATE 
horde_activesync_device_users SET device_policykey = 0
                                     [1] =>
                                     [2] =>
                                 )

                         )

                     [1] => Array
                         (
                             [file] => 
/var/www/webmail/pear/php/Horde/ActiveSync/State/History.php
                             [line] => 831
                             [function] => update
                             [class] => Horde_Db_Adapter_Base
                             [type] => ->
                             [args] => Array
                                 (
                                     [0] => UPDATE 
horde_activesync_device_users SET device_policykey = 0
                                 )

                         )

                     [2] => Array
                         (
                             [file] => /var/www/webmail/admin/activesync.php
                             [line] => 50
                             [function] => resetAllPolicyKeys
                             [class] => Horde_ActiveSync_State_History
                             [type] => ->
                             [args] => Array
                                 (
                                 )

                         )

                 )

             [previous:Exception:private] =>
         )

)


I have purged all activesync data manually from the database without 
success. Config says my database tables are uptodate. What have I 
missed? Activesync worked before the update

Saved Queries