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

Debian 11 Bullseye #1321

Closed
sunjam opened this issue Aug 15, 2021 · 20 comments
Closed

Debian 11 Bullseye #1321

sunjam opened this issue Aug 15, 2021 · 20 comments
Assignees
Labels

Comments

@sunjam
Copy link

sunjam commented Aug 15, 2021

Debian 11 Bullseye was released to stable.
https://www.debian.org/News/2021/20210814

@nachoparker
Copy link
Member

this is volunteer work, so no timelines. If you want it faster, you can always help out

@svenb1234
Copy link

Bullseye means there will be a 64bit raspberry pi OS and thus the news app as well as the trashbin (nextcloud/server#13160) will work again?

@sunjam
Copy link
Author

sunjam commented Sep 7, 2021 via email

@nachoparker
Copy link
Member

we have been using 64bit Rpi images for a long time FYI

@sunjam
Copy link
Author

sunjam commented Sep 8, 2021 via email

@nachoparker
Copy link
Member

yes, we'll have to wait until it's available for rpi to generate the new release

@svenb1234
Copy link

we have been using 64bit Rpi images for a long time FYI

That's true. But if you run ncp as docker container, the host would be 32 bit and the image 64bit. Thus you have to use the 32bit container and thus the trashbin does not work anymore.

@nachoparker
Copy link
Member

@svenb1234 not sure what you mean. Our non docker images for RPi are 64 bits. If you want to run docker, you have both architectures available.

A 32 bit host can never run 64 bit containers (but the other way around works)

@nachoparker
Copy link
Member

#1342

@nachoparker
Copy link
Member

bullseye works fine, only one package missing, and ofc rpi/armbian support

#1342

@sunjam
Copy link
Author

sunjam commented Nov 9, 2021

Raspberry Pi OS for Bullseye is released. However, armhf listed in the documentation.
Here is arm64 minimal release for Raspberry Pi
Armbian Bullseye support looks good at a glance

@ghost
Copy link

ghost commented Dec 15, 2021

I am running bullseye von a Pi4 and ncp 1.46.7 and noticed a few things.

  1. /usr/local/bin/ncp-diag still contains:
    echo "MariaDB service|$( pgrep -c mysqld &>/dev/null && echo up || echo down )"

  2. /usr/local/etc/ncp-recommended.cfg
    is thinking about php7.3 and buster

3./etc/apt/apt.conf.d/20ncp-upgrades still contains:
buster and not bullseye

4.ncp-dist-upgrade is removing a already higher php-Version and downgrade to php7.4
Maybe the php-version should be checked first like:

get the realy installed php-version:

sphp=php -v | grep PHP -m 1 | awk '{print $2}'
curphp=$(echo ${sphp:0:3})
...
curphp shows: '7.3', '7.4', '8.0', '8.1' or whatever

Hope that helps.

@jvonau
Copy link

jvonau commented Dec 15, 2021

Here is how I installed on a RPi4 running on 2021-10-30-raspios-bullseye-arm64-lite.zip RaspiOS.
sudo apt update
sudo apt -y upgrade avoids the dhcpcd issue as that was resolved in a later deb package.
reboot as there is a new kernel.
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh > install.sh
edit install.sh master -> devel near the top.
sudo bash install.sh
Ran to completion. No 'news' issue found as in #1316

news 17.0.1 installed
news enabled
news already enabled

pi@raspberrypi:~ $ php -v | grep PHP -m 1 | awk '{print $2}'
7.4.25
pi@raspberrypi:~ $ ls /etc/php
7.4

Found this:

--2021-12-15 06:40:06--  https://github.com/nachoparker/noip-DDNS/archive/master/latest.tar.gz
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/nachoparker/noip-DDNS/tar.gz/master [following]
--2021-12-15 06:40:07--  https://codeload.github.com/nachoparker/noip-DDNS/tar.gz/master
Resolving codeload.github.com (codeload.github.com)... 140.82.114.10
Connecting to codeload.github.com (codeload.github.com)|140.82.114.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘STDOUT’

-                                 [  <=>                                            ] 136.62K   407KB/s    in 0.3s    

2021-12-15 06:40:08 (407 KB/s) - written to stdout [139904]

/tmp/nextcloudpi.epnFCL/nextcloudpi
gcc -Wall -g -Dlinux -DPREFIX=\"/usr/local\" noip2.c -o noip2 
noip2.c: In function ‘dynamic_update’:
noip2.c:1595:6: warning: variable ‘i’ set but not used [-Wunused-but-set-variable]
 1595 |  int i, x, is_group, retval, response;
      |      ^
noip2.c: In function ‘domains’:
noip2.c:1826:13: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
 1826 |         int x;
      |             ^
noip2.c: In function ‘hosts’:
noip2.c:1838:20: warning: variable ‘y’ set but not used [-Wunused-but-set-variable]
 1838 |         int     x, y, z;
      |                    ^
noip2.c: In function ‘autoconf’:
noip2.c:2538:19: warning: ‘%s’ directive writing up to 255 bytes into a region of size 247 [-Wformat-overflow=]
 2538 |  sprintf(line, "%s%s%s%s", USTRNG, login, PWDSTRNG, password);
      |                   ^~               ~~~~~
noip2.c:2538:2: note: ‘sprintf’ output between 16 and 526 bytes into a destination of size 256
 2538 |  sprintf(line, "%s%s%s%s", USTRNG, login, PWDSTRNG, password);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/nextcloudpi.epnFCL/nextcloudpi
Installing samba

pi@raspberrypi:~ $ ls /usr/local/etc/ncp-recommended.cfg
ls: cannot access '/usr/local/etc/ncp-recommended.cfg': No such file or directory

pi@raspberrypi:~ $ grep bullseye /etc/apt/apt.conf.d/20ncp-upgrades
o=Debian,n=bullseye-security;
o=deb.sury.org,n=bullseye-security;
o="Raspberry Pi Foundation",n=bullseye-security;
o="Raspbian",n=bullseye-security;

@UN-pi think you need to be on the devel branch.
On to configuration...

@ghost
Copy link

ghost commented Dec 15, 2021

Thanks for the idea.
The pi4 runs with 64bit, bullseye and php8, as it is to be expected that the 7.4 version will be replaced by 8.0 in the future. It all works very well.
The suggested install script ends with the message that the NC database already exists. Which is not surprising, since the NC is already installed.

Perhaps it would be helpful to note somewhere or to configure in general whether you are using the branch master or devel. Maybe in ncp.cfg?
Then ncp-update would also recognize it automatically.

Alternatively, I have the file
/etc/cron.daily/ncp-autoupdate changed to:

if / usr / local / bin / ncp-test-updates; then
/ usr / local / bin / ncp-update devel || exit 1
notify_admin "NextCloudPi" "NextCloudPi was updated to $ (cat / usr / local / etc / ncp-version)"

So devel is used by default.

@jvonau
Copy link

jvonau commented Dec 15, 2021

Thanks for the idea. The pi4 runs with 64bit, bullseye and php8, as it is to be expected that the 7.4 version will be replaced by 8.0 in the future. It all works very well. The suggested install script ends with the message that the NC database already exists. Which is not surprising, since the NC is already installed.

Full disclosure, I've been part of small team that started putting OC on offline hardware in 2015 over at IIAB where NC is now running under both RaspiOS and Ubuntu being trouble free so I was rather shocked when I found out about the 'news' issue on 32bit. We too are also looking at the future with 8.1 with ongoing testing on Ubuntu 22.04 while going to 21.10 with php8.0 was pretty straight forward once you understand how things were shuffled around within the bump of php.

@Maxxxel
Copy link

Maxxxel commented Dec 28, 2021

@jvonau this doesn't work for me. Installation runs through, but ncp is not useable. The webui doesn't work and ncp-config is not responding at all.

After installation nextcloud is working with ip/nextcloud/ but I have no nextcloudpi anywhere.

DietPi:~/downloads# ncp-check-updates
grep: /usr/local/etc/ncp-version: No such file or directory
grep: /usr/local/etc/ncp-version: No such file or directory
grep: /usr/local/etc/ncp-version: No such file or directory
/usr/local/bin/ncp-test-updates: line 20: [: : integer expression expected
/usr/local/bin/ncp-test-updates: line 22: [: : integer expression expected
/usr/local/bin/ncp-test-updates: line 24: [: : integer expression expected
cat: /usr/local/etc/ncp-version: No such file or directory

NextCloudPi  is up to date

Config Terminal broken too

nc-admin          No description.  ↑                                                      nc-database       No description.  ▮                                                    * nc-datadir        No description.  ▒                                                      nc-httpsonly      No description.  ▒                                                      nc-init           No description.  ▒                                                      nc-limits         No description.  ▒                                                      nc-nextcloud      No description.  ▒                                                      nc-passwd         No description.  ▒                                                      nc-prettyURL      No description.  ▒                                                      nc-previews-auto  No description.  ↓

Whenever I click anything the following messages appear:

Running nc-webui                                                                          Site ncp already disabled
ncp-web disabled
Done. Press any key...

var/www/ncp-web also doesent exist.

@sirdrakeistda
Copy link

sirdrakeistda commented Jan 3, 2022

@jvonau have you managed to solve this error message:

An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)

I got this error message on a self updated system and on a new setup with debian bullseye. php-apcu is installed and I tried to enable this in config settings, but it was not succesfull.

Maybe one additional comment: To get Nextcloud working the only solution I found is to delete these two lines in the config file:

  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',

but this is not a good long term solution.

@jvonau
Copy link

jvonau commented Jan 3, 2022

I have not circled back around with no plans to try given the forced-pushed changes on live devel branch with the claim the changes are already applied.

@Wimmelbach
Copy link

@nachoparker: On September 12th you mentioned:
"Our non docker images for RPi are 64 bits."
But 'I am wondering if they are already based on bullseye or still on buster.

@nachoparker
Copy link
Member

creating images, will be published tomorrow for testers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants