Streamlit to work on my Synology NAS

Thank you for letting me use your sharering service. :pray:
However, I was unable to create a fourth app, so I had to find another way.

I was able to get streamlit to work on my Synology NAS. :wink:

  • Own domain
  • SSL (Let’s Encrypt, automatically renewed for 3 months)
  • Unlimited apps added (within NAS memory)
  • Super energy saving ( 24H , 30w )

The current NAS memory is 16 gigs, so it’s running very comfortably.

For reference streamlit hello app will run until the end of May.
https://st.mac365.com/

Translated with www.DeepL.com/Translator (free version)

My NAS (model: Synology DiskStation DS918+ )
image

1 Like

@matzoka great stuff and very resourceful of you. I have a Synology too and would love to see your instructions on getting this running, please? I could help you put together a deployment guide and test the reproducibility.

Hi @asehmi.
I can help you if you like.

So, where should we start?

ps: Today, I used the same method to connect my Synology NAS to my Google Cloud , Compute Engine instance and it worked perfectly.

GCE Demo Site:
https://google.mac365.com/

I haven’t tried it yet, but I’m sure Amazon EC2 can be done easily as well.

1 Like

Could you list the steps you followed to create and deploy the Streamlit site to your Synology NAS and expose it on a public domain?

I was able to connect to your st demo app, but not to the GCE demo.

I understand. It will take some time.

I created the following document because I wanted to refer to the settings later myself.

It may be difficult to understand.

Note that there are some SynologyNAS models that cannot install streamlit.

Please follow the instructions from 1 to 3 in the document to determine if your model does not support streamlit before proceeding to 4 and 5.

The problematic part was the symptom that numpy could not be installed correctly.

https://integralsoft.jp/streamlit/synology_settings.html

I readjusted the GCE based on other users’ settings.
Maybe it will work correctly.
https://google.mac365.com/

Hey @matzoka, I don’t have a Synology but just chiming in to say I love your mindmap tutorial, I brainstorm and organize in mindmap but never thought of chronologically describing steps like you did. What software did you use? (I’m not sure I can put this much details in freemind…)

Have a nice day,
Fanilo

Hi @andfanilo.

Here is the software.

help documents:
https://onlinehelp.mindjet.com/help/MindManager/19/JA/mindmanager_help.htm

Have a nice day.
Matsuoka

1 Like

This worked! Nice deployments.

Fantastic. If you don’t mind can you post your .mmap file too so I can load it into my MindManager app?

Many thanks!

It has been uploaded here.
Please use it.
They are both the same, but if there is a problem, we will find another way.

https://integralsoft.jp/streamlit/synology_settings.mmap

https://integralsoft.jp/streamlit/synology_settings.zip

1 Like

Thank you!! And it opens fine in my 12 years old version of MM… you gotta love products with this kind of backwards compatibility.

2 Likes

Hi @asehmi

I’m glad you were able to use the files.

I was able to synchronize the github repository with SynologyNAS today.

github Webhook

SynologyNAS (Python http server)

Execute git pull (shell)

Sync streamlit app

Now I can finally move out of the share that I borrowed from streamlit.

1 Like

Very nice! Though I imagine for most people paying a few $$$ for a Streamlit share (when it is out of beta) or for Heroku, etc. will be much more convenient than setting up their own “private cloud”.

1 Like

You’re right.
It’s only for people who already have nas like synology.

Hi @matzoka,

Thank you for the map,

I encounter problems in installing streamlit on a synology DS220j,

calling pip install failed for backports.zoneinfo and argon2-cffi

For both of them I have the following error:

error: command '/usr/local/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-wrap-gcc' failed with exit status 1

I will enjoy any idea you can share with me in order to fix this

Many thanks for your time

Hi @LeonDpl, thanks for reaching out.

I recently upgraded my Synology NAS from 6.0 to 7.0 and my pre-configured Python environment is no longer available.

I have now changed my policy and am using Synology’s Virtual Machine Manager to run Ubuntu Server 20.04 to build my Python environment.

Therefore, I’m not running Streamlit alone inside Synology NAS, but I’m using the features of Synology NAS for other things like SSL, port forwarding, etc.

I’m sorry I can’t help you.
I will try to set up an environment to use Python directly on Synology NAS when I get a chance.

Translated with www.DeepL.com/Translator (free version)