NC 21 Whiteboard Integration Error

Nextcloud version (eg, 20.0.5): 21
Operating system and version (eg, Ubuntu 20.04): Raspbian GNU/Linux 10 (buster)
Apache or nginx version (eg, Apache 2.4.25): nginx/1.14.2
PHP version (eg, 7.4): v7.4.15

The issue you are facing:
From administration, check whiteboard config throws errors

Failed to contact Spacedeck API: cURL error 7: Failed to connect to localhost port 9666: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:9666/api/spaces

Spacedeck API is not accessible. cURL error 7: Failed to connect to localhost port 9666: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:9666/api/spaces

From the log:
{“reqId”:“nnSOhq5X5ltXIj4eLl6u”,“level”:3,“time”:“2021-02-28T18:20:03-08:00”,“remoteAddr”:"",“user”:"–",“app”:“integration_whiteboard”,“method”:"",“url”:"–",“message”:"[ERROR] Spacedeck is unreachable, it might not be running. cURL error 7: Failed to connect to localhost port 9666: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:9666/api/spaces",“userAgent”:"--",“version”:“21.0.0.18”,“id”:"603c5929ae591"}

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Install Whiteboard Integration App from app store
  2. In administration, click on Connected Accounts, Check Spacedeck config.

Having the exact same Problem here.

The problem seems to be that spacedeck.nexe.bin is a x86-64 binary and thus incompatible to the Raspberry Pi 4 using Raspberry Pi OS 64 on ARM64 / aarch64.

sudo file spacedeck.nexe.bin
spacedeck.nexe.bin: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=2f939e828e5332cd3be98272bedfe905c9f029a7, with debug_info, not stripped

@nextcloud Any chance you could provide a ARM64 version of whiteboard_integration?

Best regards
Thomas

Hallo,
wo genau liegt die spacedeck.nexe.bin? Ich habe die App ebenfalls installiert aber finde diese Datei njicht? Ich konnte das whiteboard nur duchr die Installation von spacedeck-open dazu bringen die Fehlermeldung nicht mehr anzuzeigen!?

@mueller

Daniel, pls keep to the language of Threadstarter… and pls post in english only on the int’l part of the forum.

You’ll find spacedeck.nexe.bin in [DATA]/appdata_xxxxxxxxxxxx/spacedeck/

Ok. The file is there, and spacedeck is running:
ps aux| grep spacedeck
root 5849 0.0 0.0 112824 968 pts/0 S+ 10:32 0:00 grep --color=auto spacedeck

But when I start the APP in Nextcloud there are errors:
./spacedeck.nexe.bin: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by ./spacedeck.nexe.bin) ./spacedeck.nexe.bin: /lib64/libstdc++.so.6: version GLIBCXX_3.4.21’ not found (required by ./spacedeck.nexe.bin)
./spacedeck.nexe.bin: /lib64/libstdc++.so.6: version `CXXABI_1.3.9’ not found (required by ./spacedeck.nexe.bin)
And that is the reason why the whiteboard is not working on my centos 7 machine
and gcc version:
gcc -v
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Ziel: x86_64-redhat-linux
Konfiguriert mit: …/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread-Modell: posix
gcc-Version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)

But I can proof I have:
strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH

But missing:
strings /usr/lib64/libstdc++.so.6 | grep CXXABI
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_TM_1
Whats wrong?

I have the same issue, below the error log

Spacedeck request connection error : cURL error 7: Failed to connect to localhost port 9666: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:9666/api/spaces

BR
Yassine

Hello the fact is and the solution:You need min. nodejs 10 installed and min. gcc 7.3
then the whiteboard is running.
Test with node -v

node -v

v10.24.0
And with gcc -v
gcc -v
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.3.0/lto-wrapper
Ziel: x86_64-pc-linux-gnu
Konfiguriert mit: ./configure --disable-multilib --enable-languages=c,c++
Thread-Modell: posix
gcc-Version 7.3.0 (GCC)

strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20 <–solved
GLIBCXX_3.4.21 <–solved
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_DEBUG_MESSAGE_LENGTH

strings /usr/lib64/libstdc++.so.6 | grep CXXABI
CXXABI_1.3
CXXABI_1.3.1
CXXABI_1.3.2
CXXABI_1.3.3
CXXABI_1.3.4
CXXABI_1.3.5
CXXABI_1.3.6
CXXABI_1.3.7
CXXABI_1.3.8
CXXABI_1.3.9
CXXABI_1.3.10
CXXABI_1.3.11
CXXABI_TM_1
CXXABI_FLOAT128
CXXABI_1.3
CXXABI_1.3.11
CXXABI_1.3.2
CXXABI_1.3.6
CXXABI_FLOAT128
CXXABI_1.3.9 <–solved
CXXABI_1.3.1
CXXABI_1.3.5
CXXABI_1.3.8
CXXABI_1.3.4
CXXABI_TM_1
CXXABI_1.3.7
CXXABI_1.3.10
CXXABI_1.3.3

On my centos 7 I insalled node js
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum clean expire-cache wenn neues repo
yum update nodejs

Installing gcc 7.3:
wget http://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-7.3.0/gcc-7.3.0.tar.gz
tar zxf gcc-7.3.0.tar.gz
cd gcc-7.3.0
yum -y install bzip2
./contrib/download_prerequisites
./configure --disable-multilib --enable-languages=c,c++
make -j 4
make install
ln -nfs /usr/local/lib64/libstdc++.so.6.0.24 /usr/lib64/libstdc++.so.6

Did you setup your own spacedeck? As in the nextcloud-app node.js is already packaged and the shouldn’t be the need to install node.js at all…

No I use the nextcloud spacedeck. Installed node.js 10 anyway. But as I noe recognize the Whiteboard is at this time real buggy. Now and then instead of my whiteboards there is a registration page of spacedeck showing up:


To buggy to go in production for me

Great answer, thank you! :slight_smile:

Hallo @mueller

Thanks for Info. I install gcc 7.3 and now spacedock starts and i can use it. But only when i go in appdata Folder and start its manuell. Its not start automatic.

Is it a problem in the CentOS 7 Selinux, Apache, PHP configuration? I nothing found in audith log. Manuell Start work… Where i can check for errors.

UPDATE: Sorry, it was a selinux Problem. Just do “semanage permissive -a httpd_sys_script_t” and its work now.

I have the same screen as you, I am using the latest docker image.
However I checked the version of gcc, it is 8.3.0 so should be fine?
Next I checked the version of nodejs, unfortunately it was not installed. However after installation and reboot, still the same nice SpaceDeck screen.
Could you found a solution?

Hi,

I have the same error with Nextcloud 21.0.1 installed on a Synology NAS, any idea on how i can fix this ? I did try to install Node.js 12 from Synology app store.

Hi, I have the same issue. I’m running it in snap on ubuntu LTS 18.04, nextcloud version 21.0.1

I registered the issue at Whiteboard not working in nextcloud snap 21.0.1 · Issue #1768 · nextcloud/nextcloud-snap · GitHub

Same issue for me.
I’m using Nextcloud 21.0.4.1 installed with NextCloudPi on Raspberry Pi 4 4GB running Raspberry Pi OS 64bit with Desktop.
I have Node.js version 14.17.6 and gcc version: 8.3.0.
Nevertheless, when I try to open a whiteboard file within the Nextcloud Files app I see this error message:
Impossible to load Spacedeck whiteboard "cURL error 7: Failed to connect to localhost port 9666: Connection refused (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html) for http:\/\/localhost:9666\/api\/spaces"

I also made sure my router has port 9666 open for my Pi’s ip address.

Any solution for this issue?
Thank you for any help

@mjeshurun, same problem here using NextCloudPi 22.2.3

Same problem with latest Nextcloud Hub, any solutions?

Not working on Pi because of the binary not compiled for arm processors:

Same for you @patcloud and maybe you @tj0xin