Closed defkev closed 10 years ago
I've tested the sync to azapps.de again, with a newly created taskdconfig. There was no problem to import the config.
Is aaccount created? If so there should be no problem with the import. Can you try to make some logs during the sync using logcat? Looking for the Tags TLSClient and TaskWarroirSync.
Which version of mirakel do you use? Due to taskd-api-changes there was a change in the configfiles. So the current configfiles will only work with Mirakel 2.1 and above.
Mirakel is 2.1.2 from the Play Store.
I did a duplicated setup under CentOS 6.4 and recompiled taskd/Taskwarrior from scratch.
Behavior stays the same, Taskwarrior works/Mirakle doesn't.
I'll get back to you with a logcat.
Thanks so far.
certainly fix in developing branch, see issue #127 ... wait for next release
That's right, we will publish the version with the bugfix today ;)
Awesome
I'll give it a shot once it hits Google Play.
Thanks!
Nope, still doesn't work, behavior as it is stays the same in Version 2.1.3 - config import fails w/o any error message.
Except for one thing:
Version 2.1.2 said something like "Exporting Database to /storage/emulated/whatever...db" on first start/after a Clear data.
Version 2.1.3 says "There was an error will exporting the database."
logcat *:E -v long shows
E/de.azapps.mirakel.model.DatabaseHelper( 4403): Upgrading database from version 7 to 25
E/mypck ( 4403): /data/data/null/databases/mirakel.db: open failed: ENOENT (No such file or directory)
E/mypck ( 4403): java.io.FileNotFoundException: /data/data/null/databases/mirakel.db: open failed: ENOENT (No such file or directory)
E/mypck ( 4403): at libcore.io.IoBridge.open(IoBridge.java:409)
E/mypck ( 4403): at java.io.FileInputStream.
sdcard has a folder called mirakel with multiple mirakel%date%%time%.db files (one for every time i started the app i suppose) in it.
I suspect that the import would work this time if the initial database export wouldn't fail now...
Wan't me to fill a new bug report or should we stay in here?
It's ok to stay here, due to this issue should be fixed with 54786cb93d
I'm also experiencing a similar issue, has this been released yet? Thanks!
The fix for the first issue is already released. The second part not, but the app should start also with this crash(It's only about that it faild to backup the current database befor upgrading it.) We will release this fix as soon as posible.
Just installed 2.1.4 from Google Play.
First things first, the Database Export error message is gone...hurray.
Unfortunately, the taskdconfig import and with this adding a Mirakle Account for Taskwarrior sync still doesn't work.
The behavior is still exactly the same as of my initial report thous i am going to spare us all repeating myself.
Yet, i have done another logcat-run using:
adb logcat *:D -v long > mirakel_taskwarrior.txt
which shows no errors will importing the configuration file and tapping Sign in.
This is the only thing i could dig up which is definitly somewhat related to Mirakel i suppose:
I/ActivityManager( 739): START u0 {act=android.settings.ADD_ACCOUNT_SETTINGS cmp=com.android.settings/.accounts.AddAccountSettings} from pid 18979
I/ActivityManager( 739): START u0 {cmp=com.android.settings/.accounts.ChooseAccountActivity} from pid 18979
I/ActivityManager( 739): Displayed com.android.settings/.accounts.ChooseAccountActivity: +141ms (total +147ms)
I/ActivityManager( 739): START u0 {cmp=de.azapps.mirakelandroid/de.azapps.mirakel.sync.AuthenticatorActivity (has extras)} from pid 18979
I/WindowManager( 739): Screenshot max retries 4 of Token{427e0398 ActivityRecord{42ba2518 u0 com.android.settings/.accounts.AddAccountSettings t342}} appWin=Window{4289ccf8 u0 com.android.settings/com.android.settings.accounts.AddAccountSettings} drawState=1
W/WindowManager( 739): Screenshot failure taking screenshot for (1080x1920) to layer 21020
I/ActivityManager( 739): Displayed de.azapps.mirakelandroid/de.azapps.mirakel.sync.AuthenticatorActivity: +76ms
I/ActivityManager( 739): START u0 {act=android.intent.action.CHOOSER cmp=android/com.android.internal.app.ChooserActivity (has extras)} from pid 19388
W/IntentResolver( 739): resolveIntent: multiple matches, only some with CATEGORY_DEFAULT
W/IntentResolver( 739): resolveIntent: multiple matches, only some with CATEGORY_DEFAULT
I/ActivityManager( 739): START u0 {act=android.intent.action.GET_CONTENT cat=[android.intent.category.OPENABLE] typ=*/* flg=0x3000000 cmp=com.android.documentsui/.DocumentsActivity} from pid 19388
W/IntentResolver( 739): resolveIntent: multiple matches, only some with CATEGORY_DEFAULT
D/Documents(21173): Current stack:
D/Documents(21173): * Root{authority=com.android.externalstorage.documents, rootId=primary, title=Internal storage}
D/Documents(21173): +-- Document{docId=primary:Download, name=Download}
D/Documents(21173): +-- Document{docId=primary:, name=0}
I/ActivityManager( 739): Displayed com.android.documentsui/.DocumentsActivity: +186ms (total +226ms)
D/Documents(21173): userMode=0, userSortOrder=0 --> mode=1, sortOrder=1
D/Documents(21173): onFinished() [content://com.android.externalstorage.documents/document/primary%3ADownload%2Ftaskdconfig.html]
Hell, i don't even wanna know why it's trying to take a screenshot so no questions asked...
The taskdconfig.html is the config downloaded from your server at azapps.de
As i initially state this is a Nexus 5 running KitKat 4.4 untouched Stock
Just for the sake of it i tried the exact same procedure on a Galaxy Nexus (Samsung GNex) running MIUI V5 Android 4.2 rooted, where everything is working absolutely fine.
So looks to me this entire problem is somewhat related to Android 4.4
Thanks for the efforts so far Cheers
It is not your fault. We just used the beta branch to update the app and the fix was on another branch. We will publish today a beta app with this changes inside. If you install it this auld be fixed. (If you don't want to use Google+ i can also publish the apk on github.) I'm afraid that there are some new bugs so I don't want to publish an unstable app ;)
Link to your Community Page?
Just tried the latest Beta from Google Play from 21. November, yet it still says 2.1.4 in the Change log, but the Problem persists.
Hell, it's almost like the config selection isn't accepting any file i feed it, no matter what it's a taskd-config or an image for example, the result is always the same after tapping Sign in:
No error message -> No account added -> The dialog just closes.
Oh no, I don't know what's up. I'm away this weekend and will look on Monday on this. Sorry...
Can you send use(mirakel@azapps.de) such a taskdconfig-file for testing? So we can take again a look at this?
Well, you can get one from your very own server as this is what i used for testing.
The exact same configuration file which is working in Android 4.2 isn't working in 4.4
Regardless if i am using your server and certificates or my own.
Taskwarrior 2.3.0 Beta 2 is also working flawlessly with these configuration files.
btw. thanks for reopening the ticket, as i really start to feel dumb for repeating myself.
I made some tests with my server :
maybe problems come with a big tx.data file on taskd server. This file could be removed and re-create with a "task sync initialize" on the mais taskwarrior client.
OK I've created a new Account on our server to test again. The file is imported without errors, an account is created. At the time I run a early alpha-build of CM11(also kitkat), so this problem should not be related to the android-version.
Can you take a look into the *.taskdconfig-file? The structure must be as follow: username: ---your username here-- org: --your org here-- user key: --your key here--- server: azapps.de:6544 Client.cert: -----BEGIN CERTIFICATE----- ---some text here--- -----END CERTIFICATE----- Client.key: -----B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if84BwjyWrkMHZNhOR4n5e3HZ pCg9oIVRmP6MoKc8k5he3G9AnVs0tRmgL+OIwaA26P2mK9h9ghmh+e+DXwweC56B WyY6KuRyV4fKi3Rt0NAwBXxIJ58YNgcbyOUqU21Q+zkVA6ySDDEehcVV3Ug4a99c +mQqwUlhyxcsqAEwkfE88hMMJpKfCk89YId0CNYPWxuaHNfN6hXbyjVL4g3Pinhh aEA/4GkjPIvcvOYktqJxf8OjDCIXCAkMsTXD51185pfTw1rHKB5b1tM= -----END CERTIFICATE-----
If the file is structured as shown above, please check again if you really selected this file.
@yvesago : We will restructure the account-interface in Mirakel 2.2 to support more than one account at the same time, so we will change this there
I just reinstalled Mirakel Beta, which now indeed says Beta, and created another account on your server using a disposable mail address so feel free to mess around with the below config.
Despite that the structure of the configuration file looks exactly like what it looked before the account creation still doesn't work on my Nexus 5...
username: mirakelnotworking
org: Public
user key: f6734b1e-da57-40af-9b21-e0a694866f9e
server: azapps.de:6544
Client.cert:
-----BEGIN CERTIFICATE-----
MIIDqzCCApWgAwIBAgIEUo/gbzALBgkqhkiG9w0BAQUwfTELMAkGA1UEBhMCU0Ux HjAcBgNVBAoMFUfDtnRlYm9yZyBCaXQgRmFjdG9yeTESMBAGA1UEBwwJR8O2dGVi b3JnMRowGAYDVQQIDBFWw6RzdHJhIEfDtnRhbGFuZDEeMBwGA1UEAwwVR8O2dGVi b3JnIEJpdCBGYWN0b3J5MB4XDTEzMTEyMjIyNTMzNVoXDTE0MTEyMjIyNTMzNVow QDEeMBwGA1UECgwVR8O2dGVib3JnIEJpdCBGYWN0b3J5MR4wHAYDVQQDDBVHw7Z0 ZWJvcmcgQml0IEZhY3RvcnkwggEgMAsGCSqGSIb3DQEBAQOCAQ8AMIIBCgKCAQEA oCdu/MbnagSd/vbUutM9jlNTHvwPxutpT3Cp0u0t5ZjZl51l9cHZzmJEjqIuSGj6 JfUyq5isu1vJca+K7Vb+JidxMXnMKXjjBOFZ86KQiZxzxMgEaNP7MHvUzD2LEx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8A9RM4MlrwTmAhG47/DPk4xF48fFPM MoehAbGCsvZrHb7rPVC5RUw6tf64TqR4tsSO/N8CAwEAAaNDMEEwDwYDVR0TAQH/ BAUwAwEB/zAPBgNVHQ8BAf8EBQMDBwQAMB0GA1UdDgQWBBTrXwIcrZxC/B2Szj1c pz+gwdp3ojALBgkqhkiG9w0BAQUDggEBAAuZ/OrQim+r7LsovoIIuD9vFjNuh4fD 0Nelto+HBXL6LmnrkyEQxToyDlH6deKPjqSg/3bif84BwjyWrkMHZNhOR4n5e3HZ pCg9oIVRmP6MoKc8k5he3G9AnVs0tRmgL+OIwaA26P2mK9h9ghmh+e+DXwweC56B WyY6KuRyV4fKi3Rt0NAwBXxIJ58YNgcbyOUqU21Q+zkVA6ySDDEehcVV3Ug4a99c +mQqwUlhyxcsqAEwkfE88hMMJpKfCk89YId0CNYPWxuaHNfN6hXbyjVL4g3Pinhh aEA/4GkjPIvcvOYktqJxf8OjDCIXCAkMsTXD51185pfTw1rHKB5b1tM=
-----END CERTIFICATE-----
@weiznich Interesting comment! CM11 is using Android 4.4 Build KRT16S from Android Open Source will the Nexus 5 is "still" running Build KRT16M and hasn't received an OTA-Update yet.
Furthermore i am aware of some other "Account related" problems which exist on the Nexus 5 but e.g. don't exist on the Nexus 7 running KitKat and those Build KRT16S so maybe all this is tied to the Buildversion i am running and not Mirakel at all?!
Just my 2 cents of course, time will tell.
Seems really to be a Bug in this android-build. With the posted config I could create a new account.
I also own a Nexus 5 and cannot import the configuration file generated by http://mirakel.azapps.de
Hmm… Thats strange. We will look on this. Maybe it's an issue regarding KitKat?
I don't thing this is a common kitkat issue, due to it is working for me. It seems to be a android-build related issue. We will need somehow more informations about this to debug it.
Just dropping by for a small update after installing KitKat 4.4.2 Build KOT49H from OTA yesterday.
Mirakel 2.1.4
Mirakel 2.2-beta1+x
I submitted at least one crash report from within the beta apk, in hope thinks get sorted out somehow.
Cheers
I think this should be fixed since 072588bce. If not so please reopen.
No error message returned, the dialog just closes and that's it.
Regardless of wherever i add the Account within Mirakel > Settings > Sync or Settings > Accounts > Add Account > Mirakel
Reproducible using taskd running in my own lab as well as your azapps.de.
A tcpdump on my taskd server shows zero incoming connections will adding the account, thus i suspect something fails during import of the config.
Synchronization using Taskwarrior (2.3.0.beta2) works on my lab and your server as expected.
Android 4.4 KitKat Stock taskd 1.0.0.beta2 on Ubuntu 12.04.3 LTS
Cheers