CarnetApp / CarnetNextcloud

GNU Affero General Public License v3.0
155 stars 30 forks source link

Android app connection #3

Open tomtom602 opened 6 years ago

tomtom602 commented 6 years ago

Hi,

I have installed your app on my new nextcloud installation. It works great on the web version, but I can't connect to it from the android app. I have the error "an error occurred, check credentials" when I try to connect to it. Is there something to add in the .htaccesso like a rewrite or something?

I use the last version of nextcloud Version 0.8.3 of your app. The Android app comes from the play store. And my server run on freenas.

Hope you can help me

PhieF commented 6 years ago

Hi

the app should work with nextcloud even if you don't have CarnetNextcloud on your server (basic file synchronisation) so that's weird

On the android app, did you enter server url with http or https ? can I ask you what your server url is ? :S thanks !

tomtom602 commented 6 years ago

I only use https. The nextcloud app is working. CalDAV and CardDAV are working too. There's just your android app... My server is at https://cloud.framery.me

Thanks for your help

⁣Envoyé par BlueMail ​

Le 7 oct. 2018 à 12:11, à 12:11, PhieF notifications@github.com a écrit:

Hi

the app should work with nextcloud even if you don't have CarnetNextcloud on your server (basic file synchronisation) so that's weird

On the android app, did you enter server url with http or https ? can I ask you what your server url is ? :S thanks !

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/PhieF/CarnetNextcloud/issues/3#issuecomment-427641276

tomtom602 commented 6 years ago

Hi,

I've made some more tests this morning. With the play store app the create account button for your server :live.carnet and mine don't point in the same link.

I've tried with the f-droid app. I can connect to my server (at least not error) but I can't choose the remote path. When I click on it I have a blank screen with pick folder button on top, that close the window, and a mail button on the bottom which does nothing. If I create note with the default configuration I can't find it on my server web app.

⁣Envoyé par BlueMail ​

Le 7 oct. 2018 à 12:11, à 12:11, PhieF notifications@github.com a écrit:

Hi

the app should work with nextcloud even if you don't have CarnetNextcloud on your server (basic file synchronisation) so that's weird

On the android app, did you enter server url with http or https ? can I ask you what your server url is ? :S thanks !

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/PhieF/CarnetNextcloud/issues/3#issuecomment-427641276

PhieF commented 6 years ago

I've tried again with your server, there is indeed an issue but can't see what is wrong. I will soon implement a new authentification way, I hope it will fix it

tomtom602 commented 6 years ago

Hi, I had some time to try to connect to your app on my server. I finaly managed to connect to it through local connection. But still can't connect with my domain name. I use a reverse proxy between the outside world and the nextcloud server. So you think I should add some specific parameters to connect to carnet? Or is there something to do on the nextcloud configuration?

Thanks for your help Thomas

⁣Envoyé par BlueMail ​

Le 7 oct. 2018 à 12:11, à 12:11, PhieF notifications@github.com a écrit:

Hi

the app should work with nextcloud even if you don't have CarnetNextcloud on your server (basic file synchronisation) so that's weird

On the android app, did you enter server url with http or https ? can I ask you what your server url is ? :S thanks !

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/PhieF/CarnetNextcloud/issues/3#issuecomment-427641276

xxKeith20xx commented 6 years ago

I too am facing this issue where everything else is connecting on my Nextcloud install but not Carnet. Is there a way to provide or view a debug log?

PhieF commented 6 years ago

Well the bug comes from the app itself, I haven't been able to find a way to log this something easy would be to give me an account on one of your server so that I could test properly

could you try this apk ?

https://cloud.exode.me/index.php/s/XJW92ogyibRywE2/download

thanks ! :)

tomtom602 commented 6 years ago

I have tried the app, same result. I have created a user for you on my server with login : test passwd: test54321

please tell me when you will be done with your tests in order to remove that test user.

PhieF commented 6 years ago

@tomtom602 could you please check if you have a line 'overwriteprotocol' => 'https' in the config.php file

?

tomtom602 commented 6 years ago

No, I do not have that line. Nextcloud is working fine without it. Do I have to add this for carnet?

⁣Envoyé par BlueMail ​

Le 3 nov. 2018 à 09:06, à 09:06, PhieF notifications@github.com a écrit:

@tomtom602 could you please check if you have a line 'overwriteprotocol' => 'https' in the config.php file

?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/PhieF/CarnetNextcloud/issues/3#issuecomment-435569086

PhieF commented 6 years ago

Nope and after a check nextcloud normal client works very well with basic username / password authentification, I have to find out why. Don't change your server conf, then

PhieF commented 6 years ago

@tomtom602 could you please check your server log when you try to login with carnet ?

tomtom602 commented 6 years ago

Hello, I've checked my servers log. On my nextcloud server I don't see anything weird related to carnet. I don't even see any access log in apache when I try to connect. I then, looked at my reverse proxy log, and I can't see anything corresponding to carnet trying to connect.

I 've just checked the code of your app. I'm no Java exert, but in the ChooseInstanceFragment.java the URL seem to always be your server. Again I can be wrong. I'm not used to Java.

⁣Envoyé par BlueMail ​

Le 6 nov. 2018 à 14:53, à 14:53, PhieF notifications@github.com a écrit:

@tomtom602 could you please check your server log when you try to login with carnet ?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/PhieF/CarnetNextcloud/issues/3#issuecomment-436259793

PhieF commented 6 years ago

Well nope, this fragment is there to "pre-fill" credentials on the next fragment, when you don't have a nextcloud server for example

I'm still investigating, I've reported the issue on nextcloud-library, could come from there

PhieF commented 6 years ago

@tomtom602 can I give the credentials you've created me to nextcloud dev ? :)

tomtom602 commented 6 years ago

Ok for me

⁣Envoyé par BlueMail ​

Le 8 nov. 2018 à 11:32, à 11:32, PhieF notifications@github.com a écrit:

@tomtom602 can I give the credentials you've created me to nextcloud dev ? :)

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/PhieF/CarnetNextcloud/issues/3#issuecomment-436948497

xxKeith20xx commented 5 years ago

Still getting this issue. Is this possibly related to having two-factor authentication being enabled? I get no log output server-side unfortunately.

PhieF commented 5 years ago

It might be the related indeed, could you create me a test account ?

Le lun. 31 déc. 2018 à 18:19, Keitha 20 notifications@github.com a écrit :

Still getting this issue. Is this possibly related to having two-factor authentication being enabled? I get no log output server-side unfortunately.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

mdallaire commented 5 years ago

I am seeing the same behavior using 2FA. I tried both using my regular password or an application password and login still fails.

mdallaire commented 5 years ago

I am seeing the same behavior using 2FA. I tried both using my regular password or an application password and login still fails.

The latest version of the Android client (0.13 I think) works well for me with 2FA using the app password now.

Crante commented 5 years ago

Hi,

I've same problem, if i want make synchronisation with "connect with nextcloud app", Nextcloud app crash & if i wan't make "connect with id", i have the error "an error occurred, check credentials" when I try to connect to it.

Domain is in https. Another app works

It's possible to right access? Server : Debian Stretch Nextcloud 15.0.4 (without 2FA) Carnet app (android) 0.1-20190210.2226 (Tested in Play Store & F-droid)

EDIT : I think i've solved that, before, i write my url like https://domain.tld/nextcloud/ & i view when i click to "new account" url https://domain.tld/nextcloud//index.php (double / ), So i make domain to https://domain.tld/nextcloud (without final / ) and it's works, i think they are a trouble of configuration to URL format to app.

theflyingwh4le commented 4 years ago

I am having this issue as well with nextcloud 20 and carnet app version 0.22.2. connect with ID gave me the "an error occurred, check credentials".
Connect with nextcloud app actually opened the nextcloud app. I backed out and the credentials seemed to remain, though notes do not seem to be syncing in app from the server.