syncloud / platform

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

can't access it via SSH or SFTP #523

Closed Sipfox closed 4 years ago

Sipfox commented 4 years ago

With the device credentials I can't access it via SSH or SFTP. Error message invalid user data.

cyberb commented 4 years ago

You need to use login root and device password. https://github.com/syncloud/platform/wiki/SSH

Sipfox commented 4 years ago

Unfortunately, it doesn't work that way either...

cyberb commented 4 years ago

What SSH app are you using? Can you show the output?

Sipfox commented 4 years ago

Putty

login as: root

root@***'s password:

Access denied

cyberb commented 4 years ago

Could you check for updates in settings and update if needed? Then can you reactivate your device from settings - activation with the same details.

Then try again to SSH. If does not work could you send us logs from settings - support.

Sipfox commented 4 years ago

It worked. I can access via SSH. When updating (Nextcloud) the following error message appears:

login as: root

root@***'s password:

The programs included with the Debian GNU/Linux system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

permitted by applicable law.

Last login: Tue Jun 2 20:42:03 2020 from 192.168.1.101

root@syncloud:~# snap install nextcloud --channel=master

snap "nextcloud" is already installed, see "snap refresh --help"

root@syncloud:~# snap refresh nextcloud --channel=master

error: cannot perform the following tasks:


2020-06-15 18:50:45,716 - nextcloud_config - INFO - setting value: datadirectory = /opt/disk/internal/nextcloud

2020-06-15 18:50:47,667 - nextcloud_config - INFO - setting datadirectory = /opt/disk/internal/nextcloud

2020-06-15 18:50:48,561 - nextcloud_occ - INFO - Nextcloud or one of the apps require upgrade - only a limited number of commands are available

You may use your browser or the occ upgrade command to do the upgrade

2020-06-15 18:50:49,200 - nextcloud_occ - INFO - Nextcloud or one of the apps require upgrade - only a limited number of commands are available

You may use your browser or the occ upgrade command to do the upgrade

Maintenance mode enabled

Starting ...

0/0 [>---------------------------]   0% Starting ...

0/0 [->--------------------------]   0%2020-06-15 18:52:05,407 - nextcloud_occ - INFO - Nextcloud or one of the apps require upgrade - only a limited number of commands are available

You may use your browser or the occ upgrade command to do the upgrade

Set log level to debug

Updating database schema

Updated database

Disabled incompatible app: circles

Disabled incompatible app: rainloop

Disabled incompatible app: workflow_pdf_converter

Updating ...

Migrate old user config

Updated to 1.5.0

Updating ...

Updated to 1.9.0

Updating ...

Updated to 1.8.0

Updating ...

Updated to 0.16.0

Updating ...

Updated to 1.8.0

Updating ...

Updated to 2.4.0

Updating ...

Updated to 1.9.1

Updating ...

Updated to 1.1.0

Updating ...

Updated to 1.3.0

Updating ...

Updated to 1.9.0

Updating ...

Updated to 0.7.0

Updating ...

Updated to 1.9.0

Updating ...

Updated to 1.1.0

Updating ...

Updated to 1.2.1

Updating ...

Updated to 1.7.0

Updating ...

Updated to 1.8.0

Updating ...

Updated to 1.3.0

Updating ...

Updated to 1.9.0

Updating ...

Updated to 1.7.0

Updating ...

Updated to 1.7.0

Updating ...

Updated to 1.14.0

Updating ...

Updated to 2.12.0

Updating ...

Updated to 1.2.0

Updating ...

Fix broken values of calendar objects

Updated to 1.15.0

Updating ...

Updated to 1.11.0

Updating ...

Updated to 1.9.0

Updating ...

Updated to 1.12.0

Updating ...

Updated to 1.9.0

Updating ...

Updated to 2.1.0

Updating ...

Updated to 1.9.0

Updating ...

Updated to 2.8.0

Updating ...

Updated to 1.8.0

Updating ...

Updated to 2.7.0

Updating ...

Updated to 1.9.0

Updating ...

Updated to 1.10.0

Checking for update of app accessibility in appstore

Checked for update of app "accessibility" in appstore

Checking for update of app activity in appstore

Checked for update of app "activity" in appstore

Checking for update of app calendar in appstore

Checked for update of app "calendar" in appstore

Checking for update of app cloud_federation_api in appstore

Checked for update of app "cloud_federation_api" in appstore

Checking for update of app comments in appstore

Checked for update of app "comments" in appstore

Checking for update of app contacts in appstore

Checked for update of app "contacts" in appstore

Checking for update of app cookbook in appstore

Update app cookbook from appstore

Checked for update of app "cookbook" in appstore

Checking for update of app dav in appstore

Checked for update of app "dav" in appstore

Checking for update of app deck in appstore

Checked for update of app "deck" in appstore

Checking for update of app federatedfilesharing in appstore

Checked for update of app "federatedfilesharing" in appstore

Checking for update of app federation in appstore

Checked for update of app "federation" in appstore

Checking for update of app files in appstore

Checked for update of app "files" in appstore

Checking for update of app files_antivirus in appstore

Checked for update of app "files_antivirus" in appstore

Checking for update of app files_pdfviewer in appstore

Checked for update of app "files_pdfviewer" in appstore

Checking for update of app files_rightclick in appstore

Checked for update of app "files_rightclick" in appstore

Checking for update of app files_sharing in appstore

Checked for update of app "files_sharing" in appstore

Checking for update of app files_trashbin in appstore

Checked for update of app "files_trashbin" in appstore

Checking for update of app files_versions in appstore

Checked for update of app "files_versions" in appstore

Checking for update of app files_videoplayer in appstore

Checked for update of app "files_videoplayer" in appstore

Checking for update of app firstrunwizard in appstore

Checked for update of app "firstrunwizard" in appstore

Checking for update of app groupfolders in appstore

Checked for update of app "groupfolders" in appstore

Checking for update of app logreader in appstore

Checked for update of app "logreader" in appstore

Checking for update of app lookup_server_connector in appstore

Checked for update of app "lookup_server_connector" in appstore

Checking for update of app nextcloud_announcements in appstore

Checked for update of app "nextcloud_announcements" in appstore

Checking for update of app notes in appstore

Checked for update of app "notes" in appstore

Checking for update of app notifications in appstore

Checked for update of app "notifications" in appstore

Checking for update of app oauth2 in appstore

Checked for update of app "oauth2" in appstore

Checking for update of app ocdownloader in appstore

Checked for update of app "ocdownloader" in appstore

Checking for update of app onlyoffice in appstore

Checked for update of app "onlyoffice" in appstore

Checking for update of app password_policy in appstore

Checked for update of app "password_policy" in appstore

Checking for update of app photos in appstore

Checked for update of app "photos" in appstore

Checking for update of app privacy in appstore

Checked for update of app "privacy" in appstore

Checking for update of app provisioning_api in appstore

Checked for update of app "provisioning_api" in appstore

Checking for update of app recommendations in appstore

Checked for update of app "recommendations" in appstore

Checking for update of app serverinfo in appstore

Checked for update of app "serverinfo" in appstore

Checking for update of app settings in appstore

Checked for update of app "settings" in appstore

Checking for update of app sharebymail in appstore

Checked for update of app "sharebymail" in appstore

Checking for update of app support in appstore

Checked for update of app "support" in appstore

Checking for update of app survey_client in appstore

Checked for update of app "survey_client" in appstore

Checking for update of app systemtags in appstore

Checked for update of app "systemtags" in appstore

Checking for update of app tasks in appstore

Checked for update of app "tasks" in appstore

Checking for update of app theming in appstore

Checked for update of app "theming" in appstore

Checking for update of app twofactor_backupcodes in appstore

Checked for update of app "twofactor_backupcodes" in appstore

Checking for update of app twofactor_totp in appstore

Checked for update of app "twofactor_totp" in appstore

Checking for update of app viewer in appstore

Checked for update of app "viewer" in appstore

Checking for update of app workflowengine in appstore

Checked for update of app "workflowengine" in appstore

Checking for update of app circles in appstore

Update app circles from appstore

Checked for update of app "circles" in appstore

Checking for update of app rainloop in appstore

Update app rainloop from appstore

Checked for update of app "rainloop" in appstore

Checking for update of app workflow_pdf_converter in appstore

Update app workflow_pdf_converter from appstore

Checked for update of app "workflow_pdf_converter" in appstore

Checking for update of app documentserver_community in appstore

Checked for update of app "documentserver_community" in appstore

Starting code integrity check...

Finished code integrity check

Update successful

Maintenance mode is kept active

Reset log level

2020-06-15 18:52:06,003 - nextcloud_occ - INFO - Maintenance mode disabled

2020-06-15 18:52:09,085 - nextcloud_occ - INFO - Check indices of the share table.

Check indices of the filecache table.

Check indices of the twofactor_providers table.

Check indices of the login_flow_v2 table.

Check indices of the whats_new table.

Check indices of the cards table.

Check indices of the cards_properties table.

Check indices of the calendarobjects_props table.

Check indices of the schedulingobjects table.

Check indices of the oc_properties table.

Adding properties_path_index index to the oc_properties table, this can take some time...

oc_properties table updated successfully.

There are no commands defined in the "ldap" namespace.

2020-06-15 18:52:10,277 - nextcloud_occ - ERROR - occ error:

Traceback (most recent call last):

File "/snap/nextcloud/200615157/meta/hooks/configure", line 7, in

Installer().configure()

File "/snap/nextcloud/200615157/hooks/installer.py", line 112, in configure

self.occ.run('ldap:set-config s01 ldapEmailAttribute mail')

File "/snap/nextcloud/200615157/hooks/octools.py", line 19, in run

raise e

subprocess.CalledProcessError: Command '/snap/nextcloud/current/bin/occ-runner ldap:set-config s01 ldapEmailAttribute mail' returned non-zero exit status 1

-----)

root@syncloud:~#

But I still can't access via sftp (Putty)

Status: Verbinde mit ****...

Antwort: fzSftp started, protocol_version=9

Befehl: open "sipfox@***" 22

Befehl: Verändertem Serverschlüssel vertrauen: Ja

Befehl: Pass: ***

Fehler: Authentifizierung fehlgeschlagen.

Fehler: Kritischer Fehler: Herstellen der Verbindung zum Server fehlgeschlagen

Status: Verbinde mit ***...

Antwort: fzSftp started, protocol_version=9

Befehl: open "sipfox@***" 22

Befehl: Pass: ***

Fehler: Authentifizierung fehlgeschlagen.

Fehler: Kritischer Fehler: Herstellen der Verbindung zum Server fehlgeschlagen

Status: Verbindung zum Server getrennt

Sipfox commented 4 years ago

Now Nextcloud no longer works.

cyberb commented 4 years ago

Strange my upgrade went fine, probably you have more Nextcloud apps installed. Do you have a backup to restore? If you remove and install it again it should work fine.

cyberb commented 4 years ago

Let me close this one, reply on Nextcloud 19 please.

Sipfox commented 4 years ago

No, don't have a current backup. What data will I lose - the apps or my data?

cyberb commented 4 years ago

Only app settings like contacts or calendars. Files will stay on on the disk and will be visible after reinstall.

cyberb commented 4 years ago

putty sftp:

C:\Program Files\PuTTY>psftp.exe                                    
psftp: no hostname specified; use "open host.name" to connect                                  
psftp> open 192.168.1.108                                           
login as: root                                                      
root@192.168.1.108's password:                                      
Remote working directory is /root                                   
psftp>                                                    

Could you show me the same output?

cyberb commented 4 years ago

@Sipfox do you still have stfp problems?

Sipfox commented 4 years ago

Yeah, I didn't have time to take care of it anymore.

cyberb commented 4 years ago

Ok, reopen when you have time