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

app V1.9.x incompatibility with Wallabag V2.0.x #203

Closed
fodiator opened this issue Apr 7, 2016 · 58 comments
Closed

app V1.9.x incompatibility with Wallabag V2.0.x #203

fodiator opened this issue Apr 7, 2016 · 58 comments
Labels
Milestone

Comments

@fodiator
Copy link

fodiator commented Apr 7, 2016

I'm actual not shure if it is known that the current android app seems to be incompatible with the recently released V2.0 server-version?

Seems like a bug to me

Kind regards

@GLLM
Copy link

GLLM commented Apr 8, 2016

Same for me !
THe URL to use is not mentioned anymore in the documentation !

@giovi321
Copy link

giovi321 commented Apr 9, 2016

Same problem here. I get the error "Wallabag service not found; check URL. Error code: 1".

@gerroon
Copy link

gerroon commented Apr 12, 2016

I have the same issue

@tcitworld
Copy link
Member

Hi there. It's a work in progress at #204. Expect it at the end of the week.

@Strubbl
Copy link
Contributor

Strubbl commented Apr 14, 2016

if you want to follow progress, #210 is the PR to watch for. With those changes basically v2 is supported now.

@fodiator
Copy link
Author

fodiator commented Apr 15, 2016

unfortunately V 1.9.9.1 doesn't work for me. Although wallabg server (2.0.1) is operable (and token has been created) the app responds "Wallabag service not found; check URL. Error code: 1"
Any idea?

@Strubbl
Copy link
Contributor

Strubbl commented Apr 15, 2016

The check fails because the App cannot find the following string in the source code of your Wallabag URL:

<form action="/login_check" method="post" name="loginform">

Maybe that changed from 2.0.0 to 2.0.1. I don't have that version running. If you can provide the URL to your instance I can double-check it.

@fodiator
Copy link
Author

fodiator commented Apr 15, 2016

THX
please test it at xxxxx

@Strubbl
Copy link
Contributor

Strubbl commented Apr 15, 2016

Root cause for this problem is, that the wallabag instance is located in the subdirectory wallabag/, but the app expects it directly in /
That needs to be fixed in several places in the app.

@fodiator
Copy link
Author

OK, thanks
I need to have wallbag in a subdir because i have many different services running on my server
Will close the port now, please advice if you need to have it opened again

@Strubbl
Copy link
Contributor

Strubbl commented Apr 15, 2016

No problem, but it would be nice if you can test again if PR #212 is merged.

@fodiator
Copy link
Author

fodiator commented Apr 16, 2016

Hi, I've just tested V1.9.9.2 :login (connection test) is working now, and the right RSS token is catched.
Unfortunately updating feeds results in a "404, not found" message
Kind regards

@tcitworld
Copy link
Member

Did you make sure to save the settings after getting the RSS token ? There's a save button at the bottom of the settings that needs to be pressed so that the new settings must be applied.

@fodiator
Copy link
Author

RSS token settings are saved definately.
Shall I open a port for you again?

@tcitworld
Copy link
Member

If you can do so (I'll create an account).

@fodiator
Copy link
Author

opened

@tcitworld
Copy link
Member

I don't seem to receive the confirmation email to register. I guess your server doesn't allow sending emails. If there's nothing to do about this, can you change your password and provide your credentials at tcit at tcit dot fr ?

@tcitworld
Copy link
Member

Got it. It's an issue with the fact that you're hosted within a subdirectory. The userid in the Feed credentials section is set to wallabag/userid instead of userid. Just delete the wallabag/ part in front and it works.

@fodiator
Copy link
Author

Yep, perfect!
It's working now

@Strubbl
Copy link
Contributor

Strubbl commented Apr 16, 2016

The userid in the Feed credentials section is set to wallabag/userid instead of userid

Reads like an open task: only user everything right from the last slash in the string as userid.

@gerroon
Copy link

gerroon commented Apr 17, 2016

The latest upgrades are crashing on my device. It seems to connect to the server in the settings but when I sync it crashes.

my server is like (wallabag is at the root) http://server:port

@Strubbl
Copy link
Contributor

Strubbl commented Apr 17, 2016

@gerroon so you are only pressing the "test connection" button after entering your server details and the app crashes completely?

I ask, because i cannot not reproduce it with my wallabag instance which is listening on https://server:port

@Nepochal
Copy link

@gerroon I had the same problem. Wiping the database in the settings solved it. After that I was able to sync again without crashes.

@Strubbl
Copy link
Contributor

Strubbl commented Apr 17, 2016

Sounds valid. Unfortunately we have no migration path from using a v1 instance and going up to a v2 instance. @Nepochal's hint is the solution here (or you can of course deinstall and install the app again if that is easier for you).

@tcitworld should we wipe the database in the app everytime the URL or the login data changes? Then we should consider adding an issue for that to not forget it.

@tcitworld
Copy link
Member

@tcitworld should we wipe the database in the app everytime the URL or the login data changes?

I think we should do this at the same time we move the settings panel to a proper PreferenceActivity. We would listen for changes, save them, and eventually wipe database if the url and/or login data changes.

@ghost
Copy link

ghost commented Apr 17, 2016

Hi,

I've just setup a new Wallabag instance today. I'm trying to connect with the app, but am unable to get it connected. "Wallabag Service not found". I'm running on a HTTPS secured connection.

I followed the documentation on the front page

  1. In a web browser, log in
  2. Go to the Config tab
  3. Under "Feeds", click "Generate token"
  4. On your phone, open Wallabag and go to Settings
  5. URL: https://www.framabag.org/u/

I get there and i get that error. Maybe it's the wrong URL?

Which URL am i supposed to use?

Regards.

@Strubbl
Copy link
Contributor

Strubbl commented Apr 17, 2016

@sourcenix Yes, your url is missing the nickname in the end, e.g. for me it would be https://www.framabag.org/u/strubbl

@ghost
Copy link

ghost commented Apr 17, 2016

@Strubbl

Thanks for the reply

I see it removed my formatting.
I had actually written https://www.framabag.org/u/"greaterthan"username"lessthan"

But anyway, this is the URL format i use in the app: https://www.framabag.org/u/sourcenix

And it gives me Wallabag service not found?

@Strubbl
Copy link
Contributor

Strubbl commented Apr 17, 2016

@sourcenix Yes, and the app behaves correctly. If i open your link, I get a 404 in my browser, too. Maybe you have a typo in your nickname while registration? Please have a closer look at your activation mail. Don't you get a 404 in the browser when you try to open https://www.framabag.org/u/sourcenix ?

@tcitworld
Copy link
Member

Nope, patch is not merged yet. #215

@anarcat
Copy link

anarcat commented Apr 18, 2016

@tcitworld cool thanks for the fast answer, i'll follow #215 then. :)

@gerroon
Copy link

gerroon commented Apr 18, 2016

Wiping the data does not work for me. The app stilll crashes when syncing

@bigretromike
Copy link

I had problem with app but it was because in wallabag url i enter https://mydomain/ the last dash was a error maker ;-)

If someone have problem with 2.0.1 and this app, this could be the problem ;-)

@ghost
Copy link

ghost commented Apr 20, 2016

@bigretromike Yes, this was also my problem. I had the trailing slash.

@GLLM
Copy link

GLLM commented Apr 20, 2016

I'm indeed running v2 on my server + android app.
And hosting it in a subdir, obviously :)

I'll wait for a fix !

@ymage
Copy link

ymage commented Apr 20, 2016

I had the same crashing app while sync. Starred articles provoke 500 error resulting in crashing android app.
I unstarred all articles and sync worked.
After sync, I starred some articles : error is back.

@tcitworld
Copy link
Member

Please check out new update.

@tcitworld tcitworld added the Bug label Apr 24, 2016
@tcitworld tcitworld added this to the 1.9 milestone Apr 24, 2016
@nautik1
Copy link

nautik1 commented Apr 24, 2016

Hey all,

Just arrived, installed my own server and configured app, however am I the only one getting a 500 error when trying to "mark as read" an article ?

Thanks !

@benediktg
Copy link
Contributor

@parquetn In my case that error was fixed in wallabag (server) v2.0.2.

@tcitworld
Copy link
Member

@parquetn If you use v2.wallabag.org, it will be updated soon.

@gerroon
Copy link

gerroon commented Apr 25, 2016

my crash

I/ActivityManager( 5364): Force stopping fr.gaulupeau.apps.InThePoche appid=10198 user=0: from pid 5364
I/ActivityManager( 5364): Killing 32461:fr.gaulupeau.apps.InThePoche/u0a198 (adj 0): stop fr.gaulupeau.apps.InThePoche
I/WindowState( 5364): WIN DEATH: Window{11ad1dc u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity}
W/ActivityManager( 5364): Force removing ActivityRecord{3895e75f u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity t3454}: app died, no saved state
W/ActivityManager( 5364): Spurious death for ProcessRecord{22cc5e2 0:fr.gaulupeau.apps.InThePoche/u0a198}, curProc for 32461: null
W/PackageManager( 7727): Failure retrieving resources for fr.gaulupeau.apps.InThePoche: Resource ID #0x0
W/PackageManager( 5486): Failure retrieving resources for fr.gaulupeau.apps.InThePoche: Resource ID #0x0
I/log     ( 7727): Launching app://fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity
I/Timeline( 7727): Timeline: Activity_launch_request id:fr.gaulupeau.apps.InThePoche time:63970764
I/ActivityManager( 5364): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity} from uid 10066 on display 0
V/WindowManager( 5364): addAppToken: AppWindowToken{37566b92 token=Token{1ed11d1d ActivityRecord{1aa6c1f4 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity t3455}}} to stack=1 task=3455 at 0
V/WindowManager( 5364): Adding window Window{377d2d5 u0 Starting fr.gaulupeau.apps.InThePoche} at 18 of 23 (after Window{36eead01 u0 fr.neamar.kiss/fr.neamar.kiss.MainActivity})
I/ActivityManager( 5364): Start proc 32679:fr.gaulupeau.apps.InThePoche/u0a198 for activity fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity
V/WindowManager( 5364): Adding window Window{ccdd42 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity} at 18 of 23 (before Window{377d2d5 u0 Starting fr.gaulupeau.apps.InThePoche})
V/WindowManager( 5364): Adding window Window{2cc08a90 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity} at 18 of 24 (before Window{ccdd42 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity})
I/ActivityManager( 5364): Displayed fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity: +732ms
I/Timeline( 5364): Timeline: Activity_windows_visible id: ActivityRecord{1aa6c1f4 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity t3455} time:63971810
V/WindowManager( 5364): Adding window Window{3de026c1 u0 PopupWindow:3d1fa629} at 19 of 23 (after Window{2cc08a90 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity})
I/Timeline(32679): Timeline: Activity_launch_request id:fr.gaulupeau.apps.InThePoche time:63974205
I/ActivityManager( 5364): START u0 {cmp=fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.SettingsActivity} from uid 10198 on display 0
V/WindowManager( 5364): addAppToken: AppWindowToken{215b1af2 token=Token{3c076dfd ActivityRecord{2f324a54 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.SettingsActivity t3455}}} to stack=1 task=3455 at 1
V/WindowManager( 5364): Adding window Window{c61ecf9 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.SettingsActivity} at 20 of 24 (after Window{3de026c1 u0 PopupWindow:3d1fa629 EXITING})
I/ActivityManager( 5364): Displayed fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.SettingsActivity: +384ms
I/Timeline( 5364): Timeline: Activity_windows_visible id: ActivityRecord{2f324a54 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.SettingsActivity t3455} time:63975018
V/WindowManager( 5364): Adding window Window{ef8bed8 u0 PopupWindow:1d3a0ecd} at 20 of 24 (after Window{c61ecf9 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.SettingsActivity})
V/WindowManager( 5364): not Base app: Adding window Window{4a6f084 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.SettingsActivity} at 21 of 25
V/WindowManager( 5364): not Base app: Adding window Window{11e490f0 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity} at 19 of 24
I/Timeline( 5364): Timeline: Activity_windows_visible id: ActivityRecord{1aa6c1f4 u0 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity t3455} time:63980363
E/AndroidRuntime(32679): Process: fr.gaulupeau.apps.InThePoche, PID: 32679
E/AndroidRuntime(32679): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Boolean fr.gaulupeau.apps.Poche.entity.Article.getFavorite()' on a null object referenceE/AndroidRuntime(32679):        at fr.gaulupeau.apps.Poche.network.tasks.UpdateFeedTask.processFeed(UpdateFeedTask.java:347)
E/AndroidRuntime(32679):        at fr.gaulupeau.apps.Poche.network.tasks.UpdateFeedTask.updateByFeed(UpdateFeedTask.java:190)
E/AndroidRuntime(32679):        at fr.gaulupeau.apps.Poche.network.tasks.UpdateFeedTask.updateAllFeeds(UpdateFeedTask.java:124)
E/AndroidRuntime(32679):        at fr.gaulupeau.apps.Poche.network.tasks.UpdateFeedTask.doInBackground(UpdateFeedTask.java:71)
E/AndroidRuntime(32679):        at fr.gaulupeau.apps.Poche.network.tasks.UpdateFeedTask.doInBackground(UpdateFeedTask.java:30)
W/ActivityManager( 5364):   Force finishing activity 1 fr.gaulupeau.apps.InThePoche/fr.gaulupeau.apps.Poche.ui.ArticlesListActivity
W/PackageManager( 7727): Failure retrieving resources for fr.gaulupeau.apps.InThePoche: Resource ID #0x0
W/PackageManager( 5486): Failure retrieving resources for fr.gaulupeau.apps.InThePoche: Resource ID #0x0
I/ActivityManager( 5364): Process fr.gaulupeau.apps.InThePoche (pid 32679) has died
W/PackageManager( 7727): Failure retrieving resources for fr.gaulupeau.apps.InThePoche: Resource ID #0x0
I/ActivityManager( 5364): START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:fr.gaulupeau.apps.InThePoche cmp=com.android.settings/.applications.InstalledAppDetails} from uid 10066 on display 0
W/PackageManager( 7727): Failure retrieving resources for fr.gaulupeau.apps.InThePoche: Resource ID #0x0
^@^@^@^@^@^@^@^@^@y

@Strubbl
Copy link
Contributor

Strubbl commented Apr 25, 2016

This threads gets confusing. @gerroon I opened a new ticket for your issue: #224

@khinsen
Copy link

khinsen commented Apr 29, 2016

I am migrating from my Framabag account (Wallabag 1.9) to a self-hosted 2.0.3 instance. I had the latest Android app, but I uninstalled and reinstalled it because of the database issues mentioned in this thread. I am now at 1.9.9.3, with no obsolete configuration left.

First I entered the URL (no trailing slash) and my credentials, and then pressed "test connection". Result "Echec. Erreur inconnue. Code d'erreur: 4".

I tried to retrieve the RSS feed data nevertheless, which crashed the app.

In my mailbox, I found a message from my Wallabag instance with a code for two-factor-authentication, which I have indeed enabled on the server. I used the navigator to connect to my server first, choosing "I am on a trusted device" when entering the confirmaton code.

Then I tried configuring the app again, but with exactly the same error message and crash.

Any ideas?

@khinsen
Copy link

khinsen commented Apr 29, 2016

Oops.... I got another e-mail with a confirmation code. Apparently the Android app is seen as a different device from the Web browser on the same phone.

That means I am stuck, right? Back to Wallabag 1.9 :-(

@tcitworld
Copy link
Member

Indeed, the android app doesn't yet use the API so you can't use it with 2FA.

@khinsen
Copy link

khinsen commented May 1, 2016

I disabled 2FA and now the app works fine, so this was the cause of all my problems.

@mvdkleijn
Copy link

Just as an FYI for those reading this...

If you tried to connect with the mobile app and got an "wallabag service not found error code 1" style message due to 2FA or a wrong URL: hosting wallabag (latest version) in a subdirectory works fine for the app if you delete the data of the app.

I got that error message due to 2FA and the app kept giving the error even after I disabled 2FA. However, the app worked fine as soon as I deleted the app's data.

Hope this helps anyone.

@anarcat
Copy link

anarcat commented Nov 30, 2016

so i found this issue as well and found that 2FA breaks the android app as well. i find this utterly confusing - maybe there should be a warning somewhere in the app for this? i would have totally failed to figure that out if i didn't know about github (and spent a good 20 minutes reading up on issues here :)...

@di72nn
Copy link
Member

di72nn commented Nov 30, 2016

@anarcat thanks for pointing this out. Created a separate issue: #359.
// BTW, thanks for commenting in a bunch of other issues.

@di72nn
Copy link
Member

di72nn commented Nov 30, 2016

Closed as mostly obsolete.

@anarcat
Copy link

anarcat commented Nov 30, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests