NCP down then SSH down after upgrade

Hello everyone,

I’ve been using NCP for 3 years like a breeze (automatic update), but nothing is working anymore. It happened in two steps:

  • first: I wasn’t able to reach my nextcloud through my home wifi anymore (–> invalid certificate). But it would work when connected to the internet with my phone or from a computer outside my house.
  • Second step: I didn’t know how to fix this home wifi problem so I upgraded the system (raspbian) with a command line directly from my RPi. Nothing is working anymore now. SSH is down as well. It is very likely due the fact that the server can’t access the internet.

I am no geek at all and I have no idea how to proceed. Could someone help please ?

Thank you !

[details=“Support intro”]

Nextcloud version (eg, 20.0.5): replace me
Raspbian Gnu/Linux 10 Nextcloudpi tty
Apache/2.4.38 Raspbian
PHP version : ???

The output of your Nextcloud log in Admin > Logging:

Nextcloudpi V1.35.0
No connectivity to https://github.com ?
grep: /var/run/.ncp-latest-version: no suche file or directory

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

I think without linux knowledge you can not solve the problem. If you have no ssh access you must mount the sd card with the operaton system on another system. Search the web. But normally a linux and not windows client is used.

I have no Pi and this is from 2014. Perhaps it changed. It is only a way to search the hopefully right direction.

Thank you for your answer.
I can access my RPi through a keybord and a screen though… what I meant was that the internet seems to be down and I don’t know how solve this problem.

Ok. Then search ssh service how to stop, start, configure. Post details.

Sometimes storage get full and norhing works. Look:

df -h

The 2 most full drives are :
/boot 60%
/media/myCloudDrive 45%

The pb is internet access.

ping 8.8.8.8 → connect: Network is unreachable

ok no internet access. perhaps also no access to lan.
Please post more details to your network.

man ip

How do you want me to use the ip command ?

ip a

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:2e:88:0e brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:7b:dd:5b brd ff:ff:ff:ff:ff:ff

Could someone help me please ?

Below, the result of ifconfig :

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether b8:27:eb:2e:88:0e txqueuelen 1000 (Ethernet)
RX packets 19 bytes 2442 (2.3 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 29 bytes 4231 (4.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 35208 bytes 2223088 (2.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 35208 bytes 2223088 (2.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether b8:27:eb:7b:dd:5b txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

What OS are you running?

It seems like eth0 does only get an IPv6 address. Is that intentional? If not… Did you try to set a static IP? Maybe something is wrong in your network configuration or an IP conflict with another device in your network occured…

Thanks !
The OS is Raspbian Gnu/Linux 10, the network problem occured right after the upgrade.

No I didn’t do anything (at least intentionnaly :wink: …) and it used to work as is. What should I do to check if anything’s wrong with the configuration ?

is it supposed to work via Wi-Fi or do you use a network cable?

It works via wifi

It seems your Wi-Fi interface (wlan0) is down for some reason. Maybe this is of any help to fix it…

https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md

I asume you have no desktop enviroment installed…?

Thanks for the link, I will take a close look.
No I can only type in the commands.

Ah ok… Then I would first try to restore the connection with the raspi-config tool, as it is suggested in the article. If that doesn’t work, you could try to fix it manually, using the the detailed explanations below… Good luck.

I think it is going to be too difficult for me …
Do you think i can try to reinstall everything from scratch. My concern is the time it will take me, but more importantly I do not want to loose my database with the content of my “cloud” stored on an external disk. I’am not sure I will be able to recpver my data (moreover it is encrypted…)

Thanks for your help !

I tried this, and don’t know what to do with it:

sudo iwlist wlan0 scan

wlan0 Scan completed :
Cell 01 - Address: A4:3E:51:78:5D:46
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=70/70 Signal level=-26 dBm
Encryption key:on
ESSID:“Livebox-5D46”
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 80ms ago
IE: Unknown: 000C4C697665626F782D35443436
IE: Unknown: 010882848B962430486C
IE: Unknown: 030101
IE: Unknown: 0706465220010D14
IE: Unknown: 200100
IE: Unknown: 23021000
IE: Unknown: 2A0104
IE: Unknown: 32040C121860
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 0B0505001E0000
IE: Unknown: 46053200000000
IE: Unknown: 2D1AAD0117FFFFFF0000000000000000000000000000000000000000
IE: Unknown: 3D1601081500000000000000000000000000000000000000
IE: Unknown: 7F080400000000000040
IE: Unknown: DD970050F204104A0001101044000102103B00010310470010413433453531F738F54434364134334510210008536167656D636F6D10230015536167656D636F6D46617374353336305F4D4942341024000C53475F4C42345F312E312E3010420009414E313831363346461054000800060050F2040001101100094C697665626F782034100800020006103C0001011049000600372A000120
IE: Unknown: DD090010180205101C0000
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
Cell 02 - Address: 3C:37:86:81:35:6B
Channel:2
Frequency:2.417 GHz (Channel 2)
Quality=33/70 Signal level=-77 dBm
Encryption key:on
ESSID:“Freebox-43119D”
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 80ms ago
IE: Unknown: 000E46726565626F782D343331313944
IE: Unknown: 010882840B162430486C
IE: Unknown: 030102
IE: Unknown: 050400020000
IE: Unknown: 2A0100
IE: Unknown: 32040C121860
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 0B050100150000
IE: Unknown: 46053208010000
IE: Unknown: 2D1AAD0917FFFFFF0000000000000000000000000000000000000000
IE: Unknown: 3D1602001300000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F080500080000000040
IE: Unknown: DD0600146C000000
IE: Unknown: DD310050F204104A0001101044000102104700109BDE9CADB5CC866027B287970ADB838B103C0001031049000600372A000120
IE: Unknown: DD1E00904C0408BF0CB259820FEAFF0000EAFF0000C0050002000000C3020002
IE: Unknown: DD090010180201001C0000
IE: Unknown: DD180050F2020101880003A4000027A400004243BC0062326600

did you try to use the raspi-config tool?

Have a look here…

https://www.seeedstudio.com/blog/2021/01/25/three-methods-to-configure-raspberry-pi-wifi/

…in the section Other Methods to Set Up Raspberry Pi Wi-Fi - Method 2

Great !!! this second link was more helpful, it did work, the wifi is now up and running !!!
Thanks a lot for this first step !
Now I checked ssh it works as well !
but Php 7.3 does not seem to work. Could you help please ?

You can also install the package “apt-show-versions” and test the correct release.

apt-show-versions |grep buster 

→ show all packages from buster

apt-show-versions |grep -v buster 

→ show all packages not from buster

Also execute:

apt-get autoremove

Ok, thanks. I did run autoremove as well.
What do you think i should do ? This is what I get:

apt-show-versions |grep -v buster
btrfs-tools:armhf 4.7.3-1 installed: No available version in archive
debian-archive-keyring:all 2017.7 installed: No available version in archive
gcc-4.6-base:armhf 4.6.4-5+rpi1 installed: No available version in archive
gcc-4.7-base:armhf 4.7.3-11+rpi1 installed: No available version in archive
gcc-4.8-base:armhf 4.8.5-4 installed: No available version in archive
libargon2-1:armhf 0~20190702-0.1+0~20190710.3+debian9~1.gbp2fb167 newer than version in archive
libboost-iostreams1.60.0:armhf 1.60.0+dfsg-6+b2 installed: No available version in archive
libcryptsetup4:armhf 2:1.7.3-4 installed: No available version in archive
libdns-export162:armhf 1:9.10.3.dfsg.P4-12.3+deb9u8 installed: No available version in archive
libgdbm3:armhf 1.8.3-14 installed: No available version in archive
libicu65:armhf 65.1-1+0~20200223.8+debian9~1.gbp519cf3 installed: No available version in archive
libidn2-0:armhf 2.2.0-2+0~20200302.4+debian9~1.gbpf85c2e newer than version in archive
libisc-export160:armhf 1:9.10.3.dfsg.P4-12.3+deb9u8 installed: No available version in archive
libmagickcore-6.q16-3:armhf 8:6.9.7.4+dfsg-11+deb9u11 installed: No available version in archive
libmagickwand-6.q16-3:armhf 8:6.9.7.4+dfsg-11+deb9u11 installed: No available version in archive
libmpdec2:armhf 2.4.2-2+0~20210301.2+debian9~1.gbp6b87f9 newer than version in archive
libpcre3:armhf 2:8.44-2+0~20210301.9+debian9~1.gbpa278ad newer than version in archive
libprocps6:armhf 2:3.3.12-3+deb9u1 installed: No available version in archive
libssl-dev:armhf 1.1.1j-1+0~20210301.25+debian9~1.gbp2578a0 newer than version in archive
libssl1.0.2:armhf 1.0.2u-1~deb9u4 newer than version in archive
libssl1.1:armhf 1.1.1j-1+0~20210301.25+debian9~1.gbp2578a0 newer than version in archive
libunistring0:armhf 0.9.6+really0.9.3-0.1 installed: No available version in archive
libxml2:armhf 2.9.9+dfsg-1+0~20200226.5+debian9~1.gbp3b6674 newer than version in archive
mountall:armhf 2.54 installed: No available version in archive
openssl:armhf 1.1.1j-1+0~20210301.25+debian9~1.gbp2578a0 newer than version in archive
perl-modules-5.24:all 5.24.1-3+deb9u7 installed: No available version in archive
php-bcmath:all 2:8.0+81+0~20210223.34+debian9~1.gbpf52eb0 newer than version in archive
php-common:all 2:81+0~20210223.34+debian9~1.gbpf52eb0 newer than version in archive
php-igbinary:armhf 3.2.1+2.0.8-6+0~20210223.25+debian9~1.gbp4f4993 newer than version in archive
php-imagick:armhf 3.4.4+php8.0+3.4.4-7+0~20210305.28+debian9~1.gbpdcb27b newer than version in archive
php-redis:armhf 5.3.2+4.3.0-7+0~20210228.34+debian9~1.gbp893bd4 newer than version in archive
php-smbclient:armhf 1.0.6-1+0~20210301.18+debian9~1.gbpbf56d3 newer than version in archive
php5.6-common:armhf 5.6.40-47+0~20210227.51+debian9~1.gbpd522a2 installed: No available version in archive
php5.6-igbinary:armhf 3.2.1+2.0.8-6+0~20210223.25+debian9~1.gbp4f4993 installed: No available version in archive
php7.0-common:armhf 7.0.33-47+0~20210228.54+debian9~1.gbp7f60a9 installed: No available version in archive
php7.0-igbinary:armhf 3.2.1+2.0.8-6+0~20210223.25+debian9~1.gbp4f4993 installed: No available version in archive
php7.1-common:armhf 7.1.33-34+0~20210228.54+debian9~1.gbpb1fb69 newer than version in archive
php7.1-igbinary:armhf 3.2.1+2.0.8-6+0~20210223.25+debian9~1.gbp4f4993 installed: No available version in archive
php7.2-common:armhf 7.2.34-18+0~20210223.60+debian9~1.gbpb21322 newer than version in archive
php7.2-gmp:armhf 7.2.34-18+0~20210223.60+debian9~1.gbpb21322 newer than version in archive
php7.2-igbinary:armhf 3.2.1+2.0.8-6+0~20210223.25+debian9~1.gbp4f4993 installed: No available version in archive
php7.3-common:armhf 7.3.27-9+0~20210227.82+debian9~1.gbpa4a3d6 newer than version in archive
php7.3-igbinary:armhf 3.2.1+2.0.8-6+0~20210223.25+debian9~1.gbp4f4993 installed: No available version in archive
php7.4-common:armhf 7.4.16-1+0~20210305.42+debian9~1.gbpbbe65e installed: No available version in archive
php7.4-igbinary:armhf 3.2.1+2.0.8-6+0~20210223.25+debian9~1.gbp4f4993 installed: No available version in archive
php8.0-bcmath:armhf 8.0.3-1+0~20210305.17+debian9~1.gbp899a74 installed: No available version in archive
php8.0-common:armhf 8.0.3-1+0~20210305.17+debian9~1.gbp899a74 installed: No available version in archive
php8.0-igbinary:armhf 3.2.1+2.0.8-6+0~20210223.25+debian9~1.gbp4f4993 installed: No available version in archive
php8.0-imagick:armhf 3.4.4+php8.0+3.4.4-7+0~20210305.28+debian9~1.gbpdcb27b installed: No available version in archive
php8.0-redis:armhf 5.3.2+4.3.0-7+0~20210228.34+debian9~1.gbp893bd4 installed: No available version in archive
php8.0-smbclient:armhf 1.0.6-1+0~20210301.18+debian9~1.gbpbf56d3 installed: No available version in archive