-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use #9
Comments
I updated the readme. docker-compose down follow the set up steps once again, and afterwards post the output of docker-compose ps |
$ docker-compose ps
WARNING: The API_HOST variable is not set. Defaulting to a blank string.
Name Command State Ports
----------------------------------------------------------------------------------------------
pbft_api_1 /entrypoint.sh python main ... Up 443/tcp, 0.0.0.0:80->80/tcp
pbft_node_1 /usr/lib/jvm/java-8-openjd ... Up 4458/tcp
pbft_postgres_1 docker-entrypoint.sh postgres Up 5432/tcp
pbft_postgres_browser_1 bash start.sh Up 0.0.0.0:8080->80/tcp
pbft_web_1 /entrypoint.sh Up 0.0.0.0:8000->8000/tcp another problem is that the db seems outdate. |
Please make sure you successfully cloned the submodule of the java node, so the folder @WuZifan This can be found here:
If you plan to use the python nodes, I don't really remember how far we developed those prototypes. We later switched to the java nodes, as java was a project requirement. However, contributions and improvements to the code are always welcome! |
@livc You might have to look into editing that Dockerfile, to install a newer phppgadmin. Another approach would be to just use an older postgres. Line 15 in 1a524b9
Change it to one older version of postgres: https://hub.docker.com/_/postgres/ image: postgres:X.X.X Please report back what worked for you. |
@luckydonald But I still can not see the pictures down below: can you show me how to get this two pictures? |
hello, I'm sorry to bother that how to get the image when I click the Web GUI "http://localhost:8000/src/". There is no picture shown when it's running. Sincerely need your help! |
Hello @luckydonald I am also not able to get the project running properly. Can you please give me the hints to make it run. Here is the output of docker-compose ps command :
I have been going through the codes since past one week, I am beginning to understand the structure of the project but some running example which can be traced back to the code again, will help immensely. |
You can inspect error logs via docker-compose logs Or for specific services like the following: docker-compose logs api node web Maybe that'll show some error? This was a university project, finished quite some time ago, and thus I don't run it locally any longer. |
Hi @luckydonald , thanks for your prompt reply. I went through each of the logs separately as you suggested. I do not see any errors there. The only problem I had was to initiate the service postgres_browser. I made the subsequent changes in the Dockerfile for updating debian 8.6 as done here. For the localhost:8000 all I see is this : Can you please give me a hint for where exactly to look to make the animations run properly? Let me know if you need some more information. |
You should be able to click on the postgres link until you reach the table, to check if there are events getting inserted. Also you can have a look at the node and the api containers, they should log if something is happening. The GUI is only a visualisation of what's happening, so if there is no display, maybe nothing is happening. |
Hello @luckydonald I upgraded the postgres version you had suggested here with : and I get this for phppgadmin now. How do the events get filled in those tables now? Thanks and regards, |
Hello @luckydonald The logs are getting filled now successfully. And I can see the updating log for node with this : Can you please explain in brief how to interpret the messages database defined here. Do I have to define any other database other than the messages? The web gui is also not showing any nodes. I will really appreciate your help. Thanks and regards, Bajrang |
Hey, could you post a full screenshot of some more output of the node logs, please? docker-compose logs node > /tmp/node-log.txt and simply upload the resulting file at /tmp/node-log.txt Also if you did something different to get it work please describe what you did and share it with everyone else. The db "messages" you linked above is just the database the API writes to. If you look closer the postgres container has the same value for its database environment variable so that will be created on first launch automatically. |
Hi @luckydonald , thanks for your reply. Also for the things to work, I made this change to the
starts the various docker services :
with these processes :
The db "messages" seems to be empty in my case. Can you possibly help me debug that please or few pointers would also help? |
Hello @luckydonald , one quick question. In this code here, when the host_to_post variable is empty, the code returns nothing and hence the api is unable to pass different values to the database. And that is what is exactly happening in my case. Ideally, I guess this host_to_post variable must be the API_HOST value passed in the docker-compose.yml file, but its empty in my case. For a quick debugging, I tried to pass different string values like "api", "0" etc. to host_to_post, but with no luck, I get this error in the logs of the node. also with host_to_post set to "http://localhost:8080/api" I get this error message in the node log. Can you please tell me what should be this host_to_post value so that, it will start filling-in the database? I will appreciate your help. Thanks, |
when run the $ docker-compose up -d postgres postgres_browser have a error |
@bajarang |
I was having trouble building but this worked for me |
I run as README but get a blank web page:
So how to add nodes or commits? Could you demonstrate or add it to README?
Thanks.
The text was updated successfully, but these errors were encountered: