followed the instructions here to setup a remote scope on my linux machine.
Expected to be able to add remote scope with bit remote add...
error: remote scope "/opt/bit/my-scope-name" was not found.
But it's there - I created the scope with bit init --bare
Also when I try to scp bit@my-server-name:/opt/bit/my-scope-name/scope.json . there is no problem (works fine with the ssh public key).
Follow exactly the instructions on the doc to add remote scope on my server and bit remote add... on my working machine.
By the way when I try on the remote server where I have the remote scope to create:
mkdir /opt/bit/test
cd /opt/bit/test
bit init
bit remote add file:///opt/bit/my-remote-scope
It works fine
@ramigg Thanks for reporting this.
I suggest you will look on this repo - https://github.com/teambit/bit-docker
This repo is a docker container you can run and come with a bare scope you can connect to using ssh.
You can use it as is or just take a look on the dockerfile / init.sh script and make the same configuration on your own server.
Let me know if you need more help.
I know this issue is closed, but for those who encounter this problem, check the log in ~/Library/Caches/Bit/logs/debug.log. In my case the log shows
ssh: failed parsing error as JSON, error: bash: bit: command not found
I could ssh to my server and run bit command just fine. I installed bit using npm but the bin directory is in a custom path which I added to $PATH variable in .bashrc file. Unfortunately, there's a piece of code at the top of my .bashrc file that prevents the path to bit to be set.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
Comment those lines or delete and now I can add remote scope.
same question
got an error from command add
User gets the following error: error: remote scope "/www/bit_server/react-demo-scope" was not found.
error: remote scope "/www/bit_server/react-demo-scope" was not found.

@ckken Are you trying to add it on the same machine or another machine?
What did you pass to the bit remote add command?
Most helpful comment
I know this issue is closed, but for those who encounter this problem, check the log in
~/Library/Caches/Bit/logs/debug.log. In my case the log showsI could ssh to my server and run
bitcommand just fine. I installedbitusing npm but the bin directory is in a custom path which I added to$PATHvariable in.bashrcfile. Unfortunately, there's a piece of code at the top of my.bashrcfile that prevents the path tobitto be set.Comment those lines or delete and now I can add remote scope.