ok. so i was able to run auth always, and added a user and copied the auth_always.pl into config enabled, and am getting the above error … when accessing swish via localhost:3050
any thoughts are much appreciated,
dan
ok. so i was able to run auth always, and added a user and copied the auth_always.pl into config enabled, and am getting the above error … when accessing swish via localhost:3050
any thoughts are much appreciated,
dan
Sounds dubious. Managing the configuration and the user DB should be done using the docker run -it ...
commands. See main README. Adding a user should create passwd
. Don’t remember exactly where. I think in the current directory.
i see.
When i created the docker based swish installation, i got the two folders (config-enabled, and data) created as well in my home directory – i.e. my own ubuntu 16.04.
Is this ok, or should these be included inside the docker image only
Dan
By default it uses the current directory to store its stuff. Surely you can also use a docker volume to do so. Study docker and look at the entry file that part of the swish docker. You do not want this data inside the swish docker as you want to maintain is separately for migrating and updating swish.
thanks.
i understand. just i thought perhaps thats the anomaly – since you flagged my comment that i had manually copied the auth http always.pl file over …
I am a bit at a loss – tinkering further doesnt seem to help.
I now also tried to instal locally, just to find that bower install – (via /usr/local/bin/bower install in the swish folder leads to a node not found error … so also local install i unfortunatley running into some problems (/usr/bin/env: ‘node’: No such file or directory)
Dan
now happen to find this online, seems to work to get the node error go away
sudo ln -s /usr/bin/nodejs /usr/bin/node
but now got this:
bower ENOTFOUND Request to https://registry.bower.io/packages/js-sha1 failed: getaddrinfo ENOTFOUND registry.bower.io registry.bower.io:443
and this
/swish/swish$ make src
make[1]: Entering directory ‘/home/dani/swish/swish/web’
patch bower_components/jquery.splitter/js/jquery.splitter-0.15.0.js patches/jsplitter.patch
patching file bower_components/jquery.splitter/js/jquery.splitter-0.15.0.js
Hunk #1 FAILED at 225.
patch: **** Can’t reopen file bower_components/jquery.splitter/js/jquery.splitter-0.15.0.js : No such file or directory
Makefile:34: recipe for target ‘bower_components/jquery.splitter/js/.patched’ failed
make[1]: *** [bower_components/jquery.splitter/js/.patched] Error 2
make[1]: Leaving directory ‘/home/dani/swish/swish/web’
Makefile:28: recipe for target ‘src’ failed
make: *** [src] Error 2
Installing bower isn’t always easy. That is why there is make bower-zip
, which just downloads the entire JavaScript stuff from swi-prolog.org and unzips it. Please read the README.md, which explains all this in a lot of detail.
thank you …
helped take the install further … i now managed to start the server but get an “unrendered” page with the following error emitted in the terminal window that runs the server:
% Updating GIT version stamps in the background.
% Started server at http://localhost:3050/
?- ERROR: [Thread httpd@localhost:3050_6] Failed to translate to HTML: \include_swish_css
ERROR: [Thread httpd@localhost:3050_6] Failed to translate to HTML: \include_swish_js
Means you do not have the JavaScript and CSS installed. Read the docs:
I did it three times on three different machines without a hitch. Including a Mac …
thank you.
Indeed, too much hacking
I am now doing a fresh install of Ubuntu 16.04 into a virtualbox VM and try it again in there … both a docker (first), and a local install (next).
Also, i didn’t do the make src … will try that too.
many thanks,
Dan
Hi Jan,
Here are the steps I followed when creating a docker swish in
One additional step was to download auth_http_always.pl from git, into the config-enabled folder of the ubuntu 16.04 installatin (not within docker).
And i am getting the 500 Internal server error: source_sink `passwd’ does not exist
Do you see anything that i am missing here:
2 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
3 sudo apt install curl
4 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5 sudo apt-get update
6 sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”7 sudo apt-get update 8 apt-cache policy docker-ce 9 sudo apt-get install -y docker-ce
10 sudo systemctl status docker
11 sudo usermod -aG docker {USER} 12 su - {USER}
13 docker run -d --net=none --name=rserve swipl/rserve
14 docker run -d -p 3050:3050 --volumes-from rserve -v $(pwd):/data swipl/swish15 docker run -it swipl/swish --auth=always
16 docker ps
17 docker restart 9d99e4c7a67f
18 ifconfig
19 docker ps
20 docker restart 9d99e4c7a67f
21 ifconfig
22 docker ps
23 docker run -d -p 3050:3050 --volumes-from rserve -v $(pwd):/data swipl/swish
24 docker ps
25 docker run -it swipl/swish --add-user
26 docker ps
27 docker restart e13b19e8b748
28 docker restart 9d99e4c7a67f
29 docker run -it swipl/swish --bash