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

Can't see any of my files and folders on Nextcloud App, nor can I upload from Android #13004

Open
4 tasks done
ccamara opened this issue May 12, 2024 · 9 comments
Open
4 tasks done
Labels
bug feature: authentication Authentication or accounts related Version/3028

Comments

@ccamara
Copy link

ccamara commented May 12, 2024

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Install Nexcloud app v3.29.0 for Android from F-Droid
  2. On my Nexcloud server (v.27.1.7) I create a password for the app, and I generate a QR
  3. On Nextcloud app for Android, I read the QR code generated at 2.
  4. The account gets linked, and I can see my avatar, the colors match those from my custom theme and the stats showing my disk quota match those on the server

I've tried with installing the app via PlayStore with identical results, and also with 3.28.2

Expected behaviour

Files and folders should appear, matching those on my NC server.
I should be able to upload files from Android

Actual behaviour

  1. Files' section is empty: no files and folders are shown, despite they are in my NC server.
    Screenshot

  2. Upload icon is greyed out, and cannot be pressed to upload files.

  3. When I search for a file that I know is on my NC server, it does show up.

  4. When I search for an existing folder, it is shown, but not their content

Android version

12

Device brand and model

Xiaomi Redmi9

Stock or custom OS?

Stock

Nextcloud android app version

3.28.2

Nextcloud server version

27.1.7

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

No response

Additional information

No response

@ccamara ccamara added the bug label May 12, 2024
@mr-bolle
Copy link

I have three same behavior. After reinstall the App, the files still don't exist.

@joshtrichards
Copy link
Member

On my Nexcloud server (v.27.1.7) I create a password for the app, and I generate a QR

To clarify: Are you saying this only occurs when using the QR code, but if you use a more traditional login flow it works fine?

Also, can you provide the web server logs from the period when you open the client?

I noticed you mentioned you're not sure if you're using a reverse proxy. Does that mean you aren't the admin and can't provide the Nextcloud config?

@joshtrichards joshtrichards added feature: authentication Authentication or accounts related Version/3028 labels May 16, 2024
@strayedelectron
Copy link

strayedelectron commented May 17, 2024

I have a similar problem:
I updated to App version 3.29.0 and since then the App could not connect to my Server version 27.1.6 any more.
The App version before just worked fine. Could see and open my files, auto upload worked too. Now I open the App and it tries to connect forever.
Shame that Fdroid did not allow me to downgrade the version.
I will try to update my server and hope that it will fix the problem.

@mr-bolle
Copy link

mr-bolle commented May 17, 2024

On my Nexcloud server (v.27.1.7) I create a password for the app, and I generate a QR

To clarify: Are you saying this only occurs when using the QR code, but if you use a more traditional login flow it works fine?

I have reinstall the App and use the Google version. With the App token login. If I search any file from the server, I can get the file.

Update: additional Tests

  • Login Default User with User / Password
  • Login Default User with QR-Code
  • Login Admin User with QR-Code

In all cases, I cannot see any files from the logged-in account

Server v27.1.9.1
Android 13
Samsung A54 (stock rom)
Traefik reverse proxy

F-Droid App v20240510 error log
2024-05-17T22:34:41.120+0200;D;LogsActivity;onPause() ending
2024-05-17T22:34:41.130+0200;D;SettingsActivity;onStart() starting
2024-05-17T22:34:41.133+0200;D;SettingsActivity;onResume() starting
2024-05-17T22:34:41.570+0200;D;LogsActivity;onStop() ending
2024-05-17T22:34:41.573+0200;D;LogsActivity;onDestroy() ending
2024-05-17T22:34:42.155+0200;D;SettingsActivity;onPause() ending
2024-05-17T22:34:42.166+0200;V;BaseActivity;onRestart() start
2024-05-17T22:34:42.170+0200;D;FileDisplayActivity;onStart() starting
2024-05-17T22:34:42.178+0200;D;ExternalLinks;links disabled
2024-05-17T22:34:42.194+0200;V;FileDisplayActivity;onResume() start
2024-05-17T22:34:42.197+0200;D;FileDisplayActivity;onResume() starting
2024-05-17T22:34:42.199+0200;D;FileDataStorageManager;getFolderContent - start
2024-05-17T22:34:42.200+0200;D;FileDataStorageManager;getFolderContent - finished
2024-05-17T22:34:42.209+0200;V;FileDisplayActivity;onResume() end
2024-05-17T22:34:42.667+0200;D;SettingsActivity;onStop() ending
2024-05-17T22:34:42.668+0200;D;SettingsActivity;onDestroy() ending
2024-05-17T22:34:42.753+0200;D;OwnCloudClient #3;REQUEST GET /status.php
2024-05-17T22:34:42.756+0200;D;AdvancedSslSocketFactory;Creating SSL Socket with remote nc.domain.com:443, local null:0, params: org.apache.commons.httpclient.params.HttpConnectionParams@6175309
2024-05-17T22:34:42.756+0200;D;AdvancedSslSocketFactory; ... with connection timeout 5000 and socket timeout 40000
2024-05-17T22:34:42.757+0200;I;ServerNameIndicator;SSLSocket implementation: org.conscrypt.Java8EngineSocket
2024-05-17T22:34:42.757+0200;I;ServerNameIndicator;SNI done, hostname: nc.domain.com
2024-05-17T22:34:42.923+0200;D;UpdateOCVersionOperation;Got new OC version 27.1.9.1
2024-05-17T22:34:42.923+0200;I;UpdateOCVersionOperation;Check for update of Nextcloud server version at https://nc.domain.com/remote.php/dav/files/User: Operation finished with HTTP status code -1 (success)
2024-05-17T22:34:42.937+0200;D;OwnCloudClient #3;REQUEST GET /ocs/v2.php/cloud/capabilities
2024-05-17T22:34:43.022+0200;D;GetCapabilitiesRemoteOperation;Capabilities not modified
2024-05-17T22:34:43.023+0200;D;GetCapabilitiesRemoteOperation;*** Get Capabilities completed 
2024-05-17T22:34:43.049+0200;D;com.owncloud.android.lib.common.network.AdvancedX509KeyManager;init(): Loading SharedPreferences named com.nextcloud.android.beta.AdvancedX509KeyManager
2024-05-17T22:34:43.049+0200;D;com.owncloud.android.lib.common.network.AdvancedX509KeyManager;init(): keychain aliases = []
2024-05-17T22:34:43.244+0200;D;com.owncloud.android.lib.common.network.AdvancedX509KeyManager;init(): Loading SharedPreferences named com.nextcloud.android.beta.AdvancedX509KeyManager
2024-05-17T22:34:43.244+0200;D;com.owncloud.android.lib.common.network.AdvancedX509KeyManager;init(): keychain aliases = []
2024-05-17T22:34:43.520+0200;I;RefreshFolderOperation;Got display name: UserInfo(id=User, enabled=true, displayName=User, email=email@domain.com, phone=, address=, website=, twitter=, quota=Quota(free=591789248, used=1555694400, total=2147483648, relative=72.44, quota=2147483648), groups=[Dokumente, Familie, RPA-Team])
2024-05-17T22:34:43.520+0200;D;RefreshFolderOperation;Checking changes in User@nc.domain.com/
2024-05-17T22:34:43.526+0200;D;OwnCloudClient #3;REQUEST PROPFIND /remote.php/dav/files/User/
2024-05-17T22:34:43.648+0200;I;RefreshFolderOperation;Checked User@nc.domain.com/ : changed
2024-05-17T22:34:43.652+0200;D;OwnCloudClient #3;REQUEST PROPFIND /remote.php/dav/files/User/
2024-05-17T22:34:43.973+0200;E;ReadFolderRemoteOperation;Synchronized /: The Nextcloud server is not configured!
2024-05-17T22:34:43.974+0200;D;RefreshFolderOperation;Refresh folder User@nc.domain.com/
2024-05-17T22:34:43.974+0200;D;RefreshFolderOperation;Refresh folder with remote idnull
2024-05-17T22:34:43.983+0200;D;RefreshFolderOperation;Send broadcast com.owncloud.android.operations.RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED
2024-05-17T22:34:43.983+0200;D;RefreshFolderOperation;Send broadcast com.owncloud.android.operations.RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED
2024-05-17T22:34:43.984+0200;D;FileDisplayActivity;Received broadcast com.owncloud.android.operations.RefreshFolderOperation.EVENT_SINGLE_FOLDER_CONTENTS_SYNCED
2024-05-17T22:34:43.999+0200;D;FileDataStorageManager;getFolderContent - start
2024-05-17T22:34:44.000+0200;D;FileDataStorageManager;getFolderContent - finished
2024-05-17T22:34:44.032+0200;D;FileDisplayActivity;Setting progress visibility to true
2024-05-17T22:34:44.033+0200;D;FileDisplayActivity;Received broadcast com.owncloud.android.operations.RefreshFolderOperation.EVENT_SINGLE_FOLDER_SHARES_SYNCED
2024-05-17T22:34:44.040+0200;D;FileDataStorageManager;getFolderContent - start
2024-05-17T22:34:44.041+0200;D;FileDataStorageManager;getFolderContent - finished
2024-05-17T22:34:44.053+0200;D;FileDisplayActivity;Setting progress visibility to false
2024-05-17T22:34:50.728+0200;V;FileDisplayActivity;onPause() start
2024-05-17T22:34:50.728+0200;D;FileDisplayActivity;onPause() ending
2024-05-17T22:34:50.729+0200;V;FileDisplayActivity;onPause() end
2024-05-17T22:34:50.741+0200;D;SettingsActivity;onCreate(Bundle) starting
2024-05-17T22:34:50.776+0200;D;SettingsActivity;onStart() starting
2024-05-17T22:34:50.778+0200;D;SettingsActivity;onResume() starting
2024-05-17T22:34:51.342+0200;D;FileDisplayActivity;onStop() ending
2024-05-17T22:34:51.344+0200;V;FileDisplayActivity;onSaveInstanceState() start
2024-05-17T22:34:51.345+0200;D;FileDisplayActivity;onSaveInstanceState(Bundle) starting
2024-05-17T22:34:51.346+0200;D;ExtendedListFragment;onSaveInstanceState()
2024-05-17T22:34:51.347+0200;V;FileDisplayActivity;onSaveInstanceState() end
2024-05-17T22:34:54.994+0200;D;SettingsActivity;onPause() ending
2024-05-17T22:34:55.011+0200;D;LogsActivity;onCreate(Bundle) starting
Server error log
[webdav] Fehler: OCP\Files\GenericFileException:  at <<closure>>

 0. /var/www/html/apps/text/lib/DAV/WorkspacePlugin.php line 119
    OC\Files\Node\File->getContent()
 1. /var/www/html/3rdparty/sabre/dav/lib/DAV/PropFind.php line 95
    OCA\Text\DAV\WorkspacePlugin->OCA\Text\DAV\{closure}("*** sensitive parameters replaced ***")
 2. /var/www/html/apps/text/lib/DAV/WorkspacePlugin.php line 117
    Sabre\DAV\PropFind->handle("{http://nextcloud.org/ns}rich-workspace", ["Closure"])
 3. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\Text\DAV\WorkspacePlugin->propFind(["Sabre\\DAV\\PropFind"], ["OCA\\DAV\\Connector\\Sabre\\Directory"])
 4. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
    Sabre\DAV\Server->emit("propFind", [["Sabre\\DAV\\P ... ]])
 5. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 984
    Sabre\DAV\Server->getPropertiesByNode(["Sabre\\DAV\\PropFind"], ["OCA\\DAV\\Connector\\Sabre\\Directory"])
 6. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath("files/Admin-User", ["{DAV:}creation ... "], 1)
 7. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus(["Sabre\\Xml\\Wr ... ]], ["Generator"], false)
 8. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus(["Generator"], false)
 9. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind(["Sabre\\HTTP\\Request"], ["Sabre\\HTTP\\Response"])
10. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit("method:PROPFIND", [["Sabre\\HTTP\\ ... ]])
11. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod(["Sabre\\HTTP\\Request"], ["Sabre\\HTTP\\Response"])
12. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
13. /var/www/html/apps/dav/lib/Server.php line 368
    Sabre\DAV\Server->exec()
14. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
15. /var/www/html/remote.php line 172
    require_once("/var/www/html/a ... p")

PROPFIND /remote.php/dav/files/Admin-User/
from xx.xxx.xxx.xxx by Admin-User at 2024-05-17T14:57:50+00:00

@mr-bolle
Copy link

Hi,

I did some further testing with F-Droid DEV version 20240510.
If I log in with another Nextcloud user (who has fewer files available) then these are also displayed in the app.

I have attached the logs from the main user and second user.

logs_main-user.txt

logs_second-user.txt

@ccamara
Copy link
Author

ccamara commented May 21, 2024

Hello,

I'm not an admin of my instance, so I'm afraid I cannot provide logs.

I can add some info, though:

To clarify: Are you saying this only occurs when using the QR code, but if you use a more traditional login flow it works fine?

The issue happens if I use the QR as well as traditional login (my regular credentials). This happens with both Nexctloud app from F-Droid as well as Google's Play store.

@ccamara
Copy link
Author

ccamara commented May 21, 2024

I can see that @strayedelectron , @mr-bolle and myself are using nextcloud 27.1.x and the same app version (3.29.0). I wonder if this could be the issue.

I will ask my admin if they can upgrade Nextcloud server. @strayedelectron , did the upgrade fix your issue?

EDIT: I have another server with NC Server 28.0.3 and I can use the same Android app, in the same phone normally. The only difference between the two instances seem to be NC server version.

@ccamara
Copy link
Author

ccamara commented May 21, 2024

I can confirm that after upgrading NC Server to 28.0.3, the issue was addressed and I can use the same android app normally.

@mr-bolle
Copy link

mr-bolle commented May 22, 2024

I have now also done the update from the Nextcloud to v28.0.5, and after several hours troubleshooting. After the update I had no access to the data (also in the desktop browser)

Now everything works fine, and I have now been accessing all data again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: authentication Authentication or accounts related Version/3028
Projects
None yet
Development

No branches or pull requests

4 participants