Help with installation on Synology

Hello there and a Happy new Year,

I am trying to install the Teddycloud on my Synology NAS but run into some problems but could solve some of them my self.

But if I try to run a docker-compose yaml the process is sgetting stuck along the way. This is as far as my putty will carry me:

Creating network "dockervlan" with driver "macvlan"
Pulling teddycloud (ghcr.io/toniebox-reverse-engineering/teddycloud:develop)...
develop: Pulling from toniebox-reverse-engineering/teddycloud
a48641193673: Already exists
9ca30222e8ac: Pull complete
33079e5e9ef4: Pull complete
0481f8b25459: Pull complete
038b0568f50a: Pull complete
a3a4bcfd6f74: Pull complete
78999bb3293f: Pull complete
7db58efb8b4d: Pull complete
766e4555a0f4: Pull complete
14ce77973b92: Pull complete
cf245c08047d: Pull complete
Digest: sha256:b33f60b1cc08b3b0ca5cacad44d9e4428b194d7151440f288dfb770478fce97f
Status: Downloaded newer image for ghcr.io/toniebox-reverse-engineering/teddycloud:develop
Creating teddycloud ... done
Attaching to teddycloud
teddycloud    | TeddyCloud vX.X.X (79945c2) - 2024-01-06 10:25:32 +0000 linux-x86_64
teddycloud    |
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.overlay.ini
teddycloud    | WARN |settings.c:0631:settings_load_ovl| Config file does not exist, creating it...
teddycloud    | INFO |settings.c:0518:settings_save_ovl| Save settings to config/config.overlay.ini
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.ini
teddycloud    | WARN |settings.c:0631:settings_load_ovl| Config file does not exist, creating it...
teddycloud    | INFO |settings.c:0518:settings_save_ovl| Save settings to config/config.ini
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.overlay.ini
teddycloud    | INFO |tls_adapter.c:0387:tls_adapter_init| Loading certificates...
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/server/ca-root.pem' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/server/ca-root.pem' failed
teddycloud    | INFO |settings.c:1229:settings_load_certs_id| ********************************************
teddycloud    | INFO |settings.c:1230:settings_load_certs_id|    No certificates found. Generating.
teddycloud    | INFO |settings.c:1231:settings_load_certs_id|    This will take some time...
teddycloud    | INFO |settings.c:1232:settings_load_certs_id| ********************************************
teddycloud    | INFO |cert.c:0396:cert_generate_default| Generating CA certificate...
teddycloud    | INFO |cert.c:0042:cert_generate_rsa| Generating RSA Key... (slow!)
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:268:55: runtime error: left shift of 192 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:260:47: runtime error: left shift of 203 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:385:34: runtime error: left shift of 211 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:390:34: runtime error: left shift of 192 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:400:34: runtime error: left shift of 144 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:395:34: runtime error: left shift of 138 by 24 places cannot be represented in type 'int'
teddycloud    | src/cyclone/cyclone_crypto/mpi.c:792:48: runtime error: left shift of 216 by 24 places cannot be represented in type 'int'
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/ca-root.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/server/teddy-cert.pem' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/server/teddy-cert.pem' failed
teddycloud    | INFO |cert.c:0420:cert_generate_default| Generating Server certificate...
teddycloud    | INFO |cert.c:0079:cert_load_ca| Load CA certificate...
teddycloud    | INFO |cert.c:0103:cert_load_ca| Load CA key...
teddycloud    | INFO |cert.c:0042:cert_generate_rsa| Generating RSA Key... (slow!)
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/ca-root.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/teddy-cert.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/ca.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/ca.der' failed
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/client.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/client.der' failed
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/private.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/private.der' failed
teddycloud    | INFO |settings.c:1234:settings_load_certs_id| ********************************************
teddycloud    | INFO |settings.c:1235:settings_load_certs_id|    FINISHED
teddycloud    | INFO |settings.c:1236:settings_load_certs_id| ********************************************
teddycloud    | INFO |toniesJson.c:0050:tonies_update| Updating tonies.json from GitHub...
teddycloud    | INFO |cloud_request.c:0158:web_request| Connecting to HTTP server raw.githubusercontent.com:443...
teddycloud    | ERROR|platform_linux.c:0376:resolve_host| getaddrinfo Temporary failure in name resolution
teddycloud    | ERROR|cloud_request.c:0189:web_request| Failed to resolve ipv4 address!
teddycloud    | ERROR|toniesJson.c:0078:tonies_update| ... failed updating tonies.json error=553
teddycloud    | INFO |toniesJson.c:0113:tonies_readJson| Trying to read config/tonies.custom.json with size 0
teddycloud    | INFO |toniesJson.c:0198:tonies_readJson| Create empty json file
teddycloud    | INFO |toniesJson.c:0113:tonies_readJson| Trying to read config/tonies.json with size 0
teddycloud    | INFO |toniesJson.c:0198:tonies_readJson| Create empty json file
teddycloud    | INFO |settings.c:1153:settings_loop| Settings file changed. Reloading.
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.ini
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/ca-root.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/teddy-cert.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/ca.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/ca.der' failed
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/client.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/client.der' failed
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/private.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/private.der' failed
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.overlay.ini

so how can i continue from here?

best regards and thanks for your help
M4x

You have trouble with the internet connection and maybe later with port 443.

This post may help: Working docker-compose.yml file for creating the docker container

thank you very much
okay i deaktivated PiHole one the same Synology and tried it again. At leas the tonies.jason got downloaded now.

Within my fritz box the given IP is also showing within network overview.

But still stuck here:

Creating network "dockervlan" with driver "macvlan"
Creating teddycloud ... done
Attaching to teddycloud
teddycloud    | TeddyCloud v0.3.4 (79945c2) - 2024-01-06 10:25:32 +0000 linux-x86_64
teddycloud    |
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.overlay.ini
teddycloud    | WARN |settings.c:0631:settings_load_ovl| Config file does not exist, creating it...
teddycloud    | INFO |settings.c:0518:settings_save_ovl| Save settings to config/config.overlay.ini
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.ini
teddycloud    | WARN |settings.c:0631:settings_load_ovl| Config file does not exist, creating it...
teddycloud    | INFO |settings.c:0518:settings_save_ovl| Save settings to config/config.ini
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.overlay.ini
teddycloud    | INFO |tls_adapter.c:0387:tls_adapter_init| Loading certificates...
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/server/ca-root.pem' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/server/ca-root.pem' failed
teddycloud    | INFO |settings.c:1229:settings_load_certs_id| ********************************************
teddycloud    | INFO |settings.c:1230:settings_load_certs_id|    No certificates found. Generating.
teddycloud    | INFO |settings.c:1231:settings_load_certs_id|    This will take some time...
teddycloud    | INFO |settings.c:1232:settings_load_certs_id| ********************************************
teddycloud    | INFO |cert.c:0396:cert_generate_default| Generating CA certificate...
teddycloud    | INFO |cert.c:0042:cert_generate_rsa| Generating RSA Key... (slow!)
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:268:55: runtime error: left shift of 219 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:260:47: runtime error: left shift of 216 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:400:34: runtime error: left shift of 163 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:385:34: runtime error: left shift of 223 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:395:34: runtime error: left shift of 157 by 24 places cannot be represented in type 'int'
teddycloud    | cyclone/cyclone_crypto/cipher/aes.c:390:34: runtime error: left shift of 236 by 24 places cannot be represented in type 'int'
teddycloud    | src/cyclone/cyclone_crypto/mpi.c:792:48: runtime error: left shift of 198 by 24 places cannot be represented in type 'int'
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/ca-root.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/server/teddy-cert.pem' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/server/teddy-cert.pem' failed
teddycloud    | INFO |cert.c:0420:cert_generate_default| Generating Server certificate...
teddycloud    | INFO |cert.c:0079:cert_load_ca| Load CA certificate...
teddycloud    | INFO |cert.c:0103:cert_load_ca| Load CA key...
teddycloud    | INFO |cert.c:0042:cert_generate_rsa| Generating RSA Key... (slow!)
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/ca-root.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/teddy-cert.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/ca.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/ca.der' failed
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/client.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/client.der' failed
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/private.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/private.der' failed
teddycloud    | INFO |settings.c:1234:settings_load_certs_id| ********************************************
teddycloud    | INFO |settings.c:1235:settings_load_certs_id|    FINISHED
teddycloud    | INFO |settings.c:1236:settings_load_certs_id| ********************************************
teddycloud    | INFO |toniesJson.c:0050:tonies_update| Updating tonies.json from GitHub...
teddycloud    | INFO |cloud_request.c:0158:web_request| Connecting to HTTP server raw.githubusercontent.com:443...
teddycloud    | INFO |cloud_request.c:0208:web_request|   trying IP: 185.199.108.133
teddycloud    | INFO |cloud_request.c:0036:httpClientTlsInitCallbackBase| Initializing TLS...
teddycloud    | INFO |cloud_request.c:0071:httpClientTlsInitCallbackBase| Initializing TLS done
teddycloud    | INFO |cloud_request.c:0308:web_request| HTTP code: 200
teddycloud    | INFO |cloud_request.c:0339:web_request| Content-Type is text/plain; charset=utf-8
teddycloud    | INFO |cloud_request.c:0417:web_request| Connection closed
teddycloud    | INFO |toniesJson.c:0072:tonies_update| ... success updating tonies.json from GitHub, reloading
teddycloud    | INFO |toniesJson.c:0113:tonies_readJson| Trying to read config/tonies.custom.json with size 0
teddycloud    | INFO |toniesJson.c:0198:tonies_readJson| Create empty json file
teddycloud    | INFO |toniesJson.c:0113:tonies_readJson| Trying to read config/tonies.json with size 4241987
teddycloud    | INFO |settings.c:1153:settings_loop| Settings file changed. Reloading.
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.ini
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/ca-root.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/ca-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | INFO |tls_adapter.c:0208:read_certificate| File 'certs/server/teddy-cert.pem' assumed PEM style
teddycloud    | INFO |tls_adapter.c:0205:read_certificate| File 'certs/server/teddy-key.pem' detected as DER style RSA PRIVATE KEY
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/ca.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/ca.der' failed
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/client.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/client.der' failed
teddycloud    | ERROR|tls_adapter.c:0193:read_certificate| Failed to open 'certs/client/private.der' for cert type detection
teddycloud    | ERROR|tls_adapter.c:0375:load_cert| Loading cert 'certs/client/private.der' failed
teddycloud    | INFO |settings.c:0623:settings_load_ovl| Load settings from config/config.overlay.ini

This looks totally fine. You’ll need to continue with the guide now.

again thank you i deleted all the artefacts from previous runs and did a frash start.

With success. I can now access my Teddycloud via browser. Only abnormal thing is that within Docker GUI i am not seeing a container for Teddycloud…But well as long as it works.

Thanks again

Which Synology OS version do you have?

I also use TeddyCloud (Docker) on a Synology NAS (DS923+ with DSM 7.2.1).
Container is visable via ContainerManager (can be stopped and started there) and you can check the protocol. So it should work. How do you create the container exactly?

If it helps, i can post my docker-compose.yaml.

Hello, is there any way you could post your yaml file that works for running TeddyCloud on a Synology NAS? Thank you!

Here u are:

version: '3'
services:
  teddycloud:
    container_name: teddycloud
    hostname: teddycloud
    image: ghcr.io/toniebox-reverse-engineering/teddycloud:latest
    volumes:
      - /volume1/docker/teddycloud/certs:/teddycloud/certs
      - /volume1/docker/teddycloud/config:/teddycloud/config
      - /volume1/docker/teddycloud/content:/teddycloud/data/content
      - /volume1/docker/teddycloud/library:/teddycloud/data/library
      - /volume1/docker/teddycloud/firmware:/teddycloud/data/firmware
    restart: unless-stopped
    networks:
      macvlan-home:
        ipv4_address: 192.168.178.123

networks:
  macvlan-home:
    name: macvlan-home
    external: true

If you do Not know how to use MACVLAN, let me know.

Thank you very much! I have not used MACVLAN before. I will look into it to see if I can figure out how to set it up, but if you have any tips that would be appreciated.

I figured it out and got TeddyCloud running! Now I am just waiting for the components to arrive for me to make the necessary modifications to the Tonieboxes. Thank you!

Hi, unfortunately I am a total beginner. Unfortunately I can’t get it to work. Can you please tell me your procedure? I must have made a mistake somewhere. Thank you. Unfortunately my English is not good :smiley:

I install it on my Synology but in Portainer no published ports are displayed. there is only a “-”

i use this in the Stacks

ports:
- 80:80 #optional (for the webinterface)
- 8443:8443 #optional (for the webinterface)
- 443:443 #Port is needed for the connection for the box, must not be changed!

The Webinterface can be opened and is accessible under the ip address

Once the range of usable IPs has been defined, you must make sure that this range is available on the router (or on the DHCP server). When you configure that IP on the container through a VLAN, all the ports of the container will be exposed on the network, it does not matter whether you define a port or not in the compose file.