Skip to content

Remote instance in update pending mode breaks federated shares when folders are accessed in between #22461

@juliusknorr

Description

@juliusknorr
  1. Have a federated shared folder from instance NC2 to NC1
  2. Increase version of NC2 but don't run occ upgrade
  3. try to access the folder on NC1, but fail
  4. Upgrade NC2
  5. Try to access again, but it still fails

It actually seems that the storage availability is not updated ever again:

MariaDB [nextcloud]> select * from oc_storages where id like 'shared::%';
+------------+------------------------------------------+-----------+--------------+
| numeric_id | id                                       | available | last_checked |
+------------+------------------------------------------+-----------+--------------+
|       1013 | shared::47004d5108ca3a32a7feab300abbc744 |         0 |   1598544715 |
|       2723 | shared::deb9a9d7bbad83bcd5cebbe2efca6053 |         0 |   1598545310 |
+------------+------------------------------------------+-----------+--------------+
2 rows in set (0.001 sec)

Updating it manually resolves it.

MariaDB [nextcloud]> update oc_storages set available = 1 where id like 'shared::%';
Query OK, 2 rows affected (0.019 sec)
Rows matched: 2  Changed: 2  Warnings: 0

MariaDB [nextcloud]> update oc_storages set available = 1 where id like 'shared::%';

To be further investigated...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions