syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
393 stars 40 forks source link

Initial Syncloud user is not in Nextcloud "admin" group #579

Closed mikini closed 3 years ago

mikini commented 3 years ago

Describe the bug After initial installation of latest image downloaded today for Raspberry 3B I struggled finding any clue on how to access the Admin UI for installing/reviewing Nextcloud Apps

Hunt through official Syncloud & eventually Nextcloud docs. and forum said just "left panel under settings" but nothing was there for the initial user.

However, another post revealed the existence of a Nextcloud "admin" user group which had no members on the soundcloud installation, but which gained me access to admin UI when I remembered having seen some very subtly hinted "fix rights" LDAP mapping sql commands from the Nextcloud wiki page.

# snap run nextcloud.occ group:list
  - admin:
  - syncloud:
    - <syncloud initial user> 
# snap run nextcloud.psql -c "update oc_ldap_group_mapping set owncloud_name = 'admin'"
could not change directory to "/root": Permission denied
UPDATE 1
# snap run nextcloud.psql -c "update oc_ldap_group_members set owncloudname = 'admin'"
could not change directory to "/root": Permission denied
UPDATE 1
# snap run nextcloud.occ group:list
  - admin:
    - <syncloud initial user> 
#

This ought to be more clearly documented as a required procedure after installation until it is fixed properly to do the right thing during installation.

cyberb commented 3 years ago

We actually do this during the installation, but in rare cases it does not work and I am still not able to understand why. Could you help us and remove your Neztcloud and then install again to see if issue is back? If issue is back could you send us logs and the output of these two commands:

snap run nextcloud.psql -c 'select * from oc_ldap_group_members'
snap run nextcloud.psql -c 'select * from oc_ldap_group_mapping'
mikini commented 3 years ago

I have tried redoing SD-flash and Syncloud installation process 4-5 times since, and I have not experienced the same issue again.

Having gained some experience with Syncloud, I have probably been holding back on opening multiple simultaneous tabs against the platform backend (that's a habit), because I see some lagging and timing out between the tabs when doing so. I reckon they are somehow interfering with each-other.

Maybe that also gives a hint of what could be causing the above?

cyberb commented 3 years ago

no really, when you say multiple tabs do you mean device web ui itself or apps?

mikini commented 3 years ago

I mean the Syncloud platform UI.

I'm running this on a Raspberry Pi 3B and it is so slow that I for long thought something was broken regarding end notification to the busy spinner during fx. installation. So after becoming impatient I've clicked along in the UI, reloaded the installation page and/or opened other tabs.

It is my impression that this concurrent activity can affect the running task, because sometimes it would never complete (fx. app never gets to installed/uninstalled state).

After discovering that the spinner does indeed close and the page reload properly to show the new state if I wait patiently, I've done this consequently and not seen any of these situations, nor the state of the current issue.

cyberb commented 3 years ago

Could you open another issue and I will help you to investigate that.

mikini commented 3 years ago

Opened interference issue as #582 and progress/busy indication issue as #581.