UPDATE: this thread was regarding Speckle 1.0. To learn how to deploy a Speckle 2.0 server (either using Digital Ocean or manually) check out the docs here!
Please note: this is a quite insecure way of deploying the speckle server. It is, nevertheless, fast and gives a quick satisfaction :) You can follow this tutorial for a local install just as well; just skip to part 3 (install mongo).
Hi,
This looks like a gorgeous project so Iām giving it a try. I installed SpeckleServer on a Debian Sid machine, and I did the following steps, might be useful to someone else:
install mongodb and redis server: sudo apt-get install mongodb redis
Since I donāt want to have both the redis and mongo servers running all the time (Iām just testing for now), I disabled both startup scripts: sudo systemctl disable mongodb and sudo systemctl disable redis-server
quick and maybe uncomplete howto install speckle on windows 10.
How to install speckle server on windows 10:
download and install node.js https://nodejs.org/en/download/ - windows installer (.msi) 64-bit
download and install a microsoft port for redis 3.2.100 https://github.com/MicrosoftArchive/redis/releases - Redis-x64-3.2.100.msi
download and install mogodb community server https://www.mongodb.com/download-center?jmp=nav#community - for Windows 64-bit x64
download and install gitdesktop https://desktop.github.com/
in gitdesktop File> Clone repository > URL (tab) - paste the url https://github.com/speckleworks/SpeckleServer.git and remember the local path / change it to somewhere simple.
navigate to the github directory (the above local path) with a File Explorer. Make a new shortcut and type ācmdā. Edit the properties of the new shortcut and change the Start in: to the folder where github repository resides (the above local path)
run the cmd shortcut and in that window type:
cd SpeckleServer
npm install
To start the server, run the cmd shortcut and in that window type:
cd SpeckleServer
node server.js
So IT department decided to help setting up a windows 10 server.
After installation is complete the server returns this:
TypeError: JwtStrategy requires a secret or key
my guess itās a speckle.server error not related to a windows deployment.
from what i can figure itās a passpoert error related to an env (environment) variable not set.
did you make a copy of the .env-base file, rename it to .env and modify it with your settings?
Thank you for your quick reply.
It looks like the env did the trickā¦ however, we are sadly not there yet.
You mention something about a config.js file to edit, but we canāt find any such file in our installation. Is it a file we have to copy to the installation afterwards and then edit?
We are trying to set up a Speckle Server om a Windows 10 1803.
Hey @mthuesen! since youāve registered online, in the gh or rhino plugins you will need to login (thatās the last tab in the first screenshot you posted!).
For the server URL, http://YOUR_IP:3000/api/v1, and use your login details. Let me know how it goes!
PS: @teocomi published a guide for gh + dynamo recently here: https://speckle.works/log/speckle-guide/
After this I executed the suggested commands in the ā5 min Docker Installā. However, when I run the docker-compose up command it gives the following error:
sigve@docker-speckle:~/speckle$ ls
docker-compose.yml
sigve@docker-speckle:~/speckle$ docker-compose up
ERROR: Couldnāt connect to Docker daemon at http+docker://localhost - is it running?
If itās at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
I read this:
With the exception of the local Docker Machine setup, configurations where itās even possible to set $DOCKER_HOST to something else are dangerously insecure. Remember that being able to reach the Docker socket is equivalent to unrestricted root-level access over that system.
Hey Sigve, I just found this in a āto approveā queue. Speaks volumes about my forum admin prowess sorry for the delay!
If still a valid question: i think the error youāre getting is just because docker itself is not started (this is needed by compose). if you run docker version you should see if itās running or not.
If you installed docker as root and then switched to a new user, it will not be available, so most probably youāll need to re-run the docker install as sigve and not as root.