How do I start it on a Virtual machine? #920
Comments
Simply add a DNS entry which points |
I created digitalocean's droplet with ubuntu+docker, added "127.0.0.1 localhost paperwork.local api.paperwork.local www.paperwork.local" in my /etc/hosts, then i run:
And after that i got "404 page not found" on the 80 port |
The DNS needs to point to the Docker Swarm. If you don't run Docker Swarm locally, pointing the DNS to 127.0.0.1 makes no sense. |
Oh, i see. I don't know enough about docker swarm, But it seems that i have to go trough it if i want to test this app. |
@sandzhaj thanks for pointing out. I've adjusted the Makefile, so that |
@sandzhaj as for the rest: Unfortunately, yes. I've tried to make it clearer here. As of right now, v2 really is not suited for the average Joe who'd simply like a sneak-peek of Paperwork. However, in order to communicate the current state in a better way, I've updated the existing screenshots and even added a couple of more. I'm also working to upload a short gif that demonstrate the current state of Paperwork v2. :) |
Hello again, I made a clean installation and I made the modifications indicated in the file /etc/hosts, but when I put the url 192.168.1.xxx I get the following error "404 page not found" Some help. Thanks in advance. |
Hi, I'm still trying things, but I can not start the paperwork website. http://url:8080 show me this... I think all is correct, but I cannot start web |
@moblesmarti what does |
That's weird. Are you sure you're accessing the correct URL/IP? |
This is my /etc/hosts file http://192.168.1.114:8080 goes to Traefik, but http://192.168.1.114 doesn't go to web, I don't undersand it too |
I have got the same result. Traefik works, paperwork - doesn't.
You can also check it with every virtual machine, on fresh install, Ubuntu 18.04, behavior will be the same |
I ran swarm on the same machine where I tried paperwork to start |
@moblesmarti first of all, you're not supposed to have duplicated entries in there. Either configure *.paperwork.local for 127.0.0.1 (if you run it on your localhost) or on 192.168.... (if you run it on that specific host). Second (cc @sandzhaj), please make sure that:
After having Paperwork started, you can check |
Hi @mrusme I have tried it in different ways and I always get the error 404 page not found |
@moblesmarti I understand that. However, I'm trying to figure out where the issue might be. For that I need a little bit more information from your side, otherwise I really can't help you there. So, have you made sure that there is no other process on that machine running on port 80? Also, have you adjusted your Could you run these two commands and show me the output of them? $ curl -v api.paperwork.local
$ curl -v www.paperwork.local |
@moblesmarti you could also try this request, which would register a new user account on your Paperwork instance: curl -vX "POST" "http://api.paperwork.local/registration" \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"email": "test@example.com",
"name": {
"first_name": "John",
"last_name": "Doe"
},
"password": "hunter2!hunter2"
}' |
@mrusme Here you have the answers to what you have requested, thanks in advance. $ curl -v www.paperwork.local |
@moblesmarti thanks for providing that information. As you can see yourself on the |
@moblesmarti is it possible that your web browser would try to automatically redirect you towards 443 (HTTPS)? Because HTTPS is not working at the very moment, since this setup does not auto-generate SSL certificates. |
@mrusme Hi! I've tried a new one on another server, and the same. http://api.paperwork.local (Chrome, Firefox and Safari) all error 404 |
@moblesmarti could you open the web inspector / console in either of these browsers and maybe check if it shows any useful info? Also: When was the last time you |
@mrusme Sorry to be heavy on the topic. This is what I get in different browsers And this is what I have in the docker I have turned off and rebooted the image, but I still can not get it. I deleted the image and reinstalled it with this script #!/bin/bash echo -e "\n==== Verify the fingerprint of the GPG key ====" echo -e "\n==== Add the stable Docker repository ====" echo -e "\n==== Update your package index and install Docker CE ====" echo -e "\n==== Download the latest version of Docker Compose ====" echo -e "\n==== Install software necessary ====" echo -e "\n==== Download Paperwork from github ====" echo -e "\n==== Install software ====" but the same error always comes out. |
I've researched in the logs docker and I've seen this: paperwork/service-gatekeeper:latest paperwork/service-notes:latest 09:12:36.387 [error] Mongo.Protocol (#PID<0.1631.0>) failed to connect: ** (Mongo.Error) tcp connect: connection refused - :econnrefused warning: deprecated time unit: :milliseconds. A time unit should be :second, :millisecond, :microsecond, :nanosecond, or a positive integer warning: deprecated time unit: :milliseconds. A time unit should be :second, :millisecond, :microsecond, :nanosecond, or a positive integer |
This should not be the case, hm. Maybe there's some issue with networking on your machine? You could check However, I wanted to take on this task soon, so maybe just wait until there is a demo up and running - maybe during the setup I'll experience similar issues to yours and will find out what's wrong. As of right now I'm only running the Docker stack on Docker Desktop for Mac. There it works without any issues. |
The Paperwork demo is now running at http://www.demo.paperwork.cloud, using the latest paperwork.yml from this repository. It's running on a pure Docker host, no magic configured whatsoever. That's basically the proof that deployment works, locally on my Mac but also on a Linux server - exactly the way you appear to want to deploy it. Please update all images and try deploying on a fresh VM that is only running Docker and doesn't block anything through its firewall. Deployment should work out of the box. |
I'm sorry, but it's still the same. I have created a new VM on my Proxmox server, clean, just Docker. |
@moblesmarti I'm sorry to be unable to help you further on this topic. I see that you have some other components (Proxmox -> KVM?) in between, which might play into this topic. However, if you have the chance maybe give it a go on your local machine, using Docker Desktop. |
Hi, everyone, first of all, I have a server with Proxmox and I have installed in a virtual machine Ubuntu Server 18.04, docker, docker composer and the latest version of PaperWork 2 software according to the instructions.
It seems that it's installed correctly, but I don't know how to start it because it is a virtual machine and it is on the address 192.168.1.XXX, not localhost. I can not see where the error is.
Can somebody help me?
Thanks in advance.
The text was updated successfully, but these errors were encountered: