Closed derilium closed 3 years ago
Hi there. Have you opened the port on the firewall
Sudo ufw allow 9091
What are the service statuses of uwsgi and caddy?
I actually installed it 3 times and was met with the same error, the firewall wasn't on and when i looked into it more deeply caddy was never installed any of the times, by looking through syslog it stated that within /usr/lib/bin caddy file didnt exist.
By the sound of it the project could work really well for what i need, i just couldn't get it to work, this was on a vanilla Ubuntu 18.04 server, static ip address etc
I've since wiped the VM but would be happy to try again.
I also looked into the caddy installation specifically (from multiple websites) and the link they give to install it just doesnt work and has been superseded.
Let me know if any of that does or doesnt make sense.
thanks
rob
On Fri, 31 Jul 2020 at 09:21, morph1904 notifications@github.com wrote:
Hi there. Have you opened the port on the firewall
Sudo ufw allow 9091
What are the service statuses of uwsgi and caddy?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/morph1904/Tyger2/issues/28#issuecomment-666999661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFA43DRUZXTGRNBPWLNKEEDR6J5IHANCNFSM4PNYPN5A .
I actually installed it 3 times and was met with the same error, the firewall wasn't on and when i looked into it more deeply caddy was never installed any of the times, by looking through syslog it stated that within /usr/lib/bin caddy file didnt exist.
By the sound of it the project could work really well for what i need, i just couldn't get it to work, this was on a vanilla Ubuntu 18.04 server, static ip address etc
I've since wiped the VM but would be happy to try again.
I also looked into the caddy installation specifically (from multiple websites) and the link they give to install it just doesnt work and has been superseded.
Let me know if any of that does or doesnt make sense.
thanks
rob
Thanks for the info BTW I have hidden your duplicate comment.
I am currently working on the latest version which utilises caddy v2. This should solve the problem.
In the meantime, it may be worth seeing if the docker version will work for you, it is easy to get running even if you house it on that ubuntu box. When I have the time later, I will look at modifying the install script to work with caddy 2 or at least fix caddy v1.
That's great, I was going to give the docker a try this weekend and will keep you posted.
Thanks
Rob
On Fri, 31 Jul 2020, 16:42 morph1904, notifications@github.com wrote:
Thanks for the info BTW I have hidden your duplicate comment.
I am currently working on the latest version which utilises caddy v2. This should solve the problem.
In the meantime, it may be worth seeing if the docker version will work for you, it is easy to get running even if you house it on that ubuntu box. When I have the time later, I will look at modifying the install script to work with caddy 2 or at least fix caddy v1.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/morph1904/Tyger2/issues/28#issuecomment-667188516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFA43DSFKCN5BR2K334TFLLR6LQ53ANCNFSM4PNYPN5A .
I'm having the same issue - firewall is open.
I'll try the docker as well.
Can't wait for Caddy v2!
same here nothing is LISTENING on port 9091
uwsgi 797 root 7u IPv4 14375 0t0 TCP 127.0.0.1:45509 (LISTEN) uwsgi 797 root 8u IPv4 14378 0t0 TCP :9090 (LISTEN) uwsgi 903 root 7u IPv4 14375 0t0 TCP 127.0.0.1:45509 (LISTEN) uwsgi 904 root 7u IPv4 14375 0t0 TCP 127.0.0.1:45509 (LISTEN) uwsgi 905 root 7u IPv4 14375 0t0 TCP 127.0.0.1:45509 (LISTEN) uwsgi 906 root 7u IPv4 14375 0t0 TCP 127.0.0.1:45509 (LISTEN) uwsgi 907 root 7u IPv4 14375 0t0 TCP 127.0.0.1:45509 (LISTEN) uwsgi 908 root 8u IPv4 14378 0t0 TCP :9090 (LISTEN)
It looks like this issue is caused by caddy not being installed by the script anymore. The docker version builds it from source and so does not have this issue.
I am not sure it is worth fixing for ubuntu as the majority of users are using docker, which is working fine, and I am close the RC of the latest version. I would be open to a pull request if someone would like a fix in the meantime.
Hi All,
I am looking for some testers for the latest docker version if you are interested. Details on the readme.
I'm getting the same issue on docker. here's my compose file (version 2 for portainer):
version: "2"
services:
tyger2:
image: morph1904/tyger2:beta
container_name: tyger2
volumes:
- tyger2-data:/apps/Tyger2/data
- tyger2-certs:/root/.caddy
ports:
- 443:443
- 80:80
- 9090:9090
- 9091:9091
restart: unless-stopped
after creating user at 9090/install, can't reach the 9091 admin page. the IP I used is the IP of my docker host, not the internal docker network IP of the container.
@ksurl please can you post the container logs and any more information you might have? When you say you are unable to reach the admin page, what error are you getting?
@ksurl I see the issue. A testing version of the Caddyfile.conf was included in the repo and this was causing issues as the domain does not terminate at your IP. I have updated this and I am waiting for the build to complete.
Please can you remove your Container, and clear your data folder/volume, it may also be worth clearing your cached images of any reference to Tyger 2 and recreate your container pulling the latest image. This is essentially a clean install, and you should get the clean caddyfile.
Thanks. I'll check docker hub for the latest build timestamp before doing a new pull and redeploy from scratch
The build has now completed
this IP should be the private IP right? not public? if my subnet is 192.168.1.0/24 and my host is 192.168.1.10 it should be what is used in the 192.168.1.10:9090/install setup?
Yes, Both the frontend and backend services run in the same container. 9090 is the backend, 9091 is the frontend.
still can't access it.
OK.
I have just pulled a new version of Tyger2 onto my dev docker host. I use portainer, here is my setup:
Here is the volume configuration:
My log looks the same as yours (except it does not show creating the log files, are you sure you deleted your volumes? Have you tried a path bind like mine?):
This is my install screen (note how I have filled it out and the URL):
This was successful:
Clicking the link on the success page then brings me to the login:
Once logged in I see the main app:
My logs are unchanged at this point (correctly so).
Also, these are the permissions set on my paths:
Is there any more information that you can provide that would help me assist you? What issue are you getting accessing the http://
same permissions, owned by root, readable by group/other. browser error is site can't be reached, server refused to connect. using nc
to check port opening, it is not listening on 9091, only 9090. let me try creating the container manually in portainer instead of using a stack. though it shouldn't make a difference.
I redeployed after deleting volumes and it is working. very odd.
I think it was still using the data from your volume with the duff caddyfile. Once the file is created Tyger tries to re-use it. If it is missing it generates a new one.
Caddy actually serves the frontend in this version of TygerCaddy (a design flaw on my part that is rectified in the new version) so if the caddyfile is rubbish, the frontend becomes unavailble as Caddy is not working correctly and so can not serve the frontend.
Did you get this working on a default install on ubuntu 18, i ran through the process, configured through the web portal but then cant access it by port 9091 - unable to connect
On Thu, 1 Oct 2020 at 16:50, morph1904 notifications@github.com wrote:
I think it was still using the data from your volume with the duff caddyfile. Once the file is created Tyger tries to re-use it. If it is missing it generates a new one.
Caddy actually serves the frontend in this version of TygerCaddy (a design flaw on my part that is rectified in the new version) so if the caddyfile is rubbish, the frontend becomes unavailble as Caddy is not working correctly and so can not serve the frontend.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/morph1904/Tyger2/issues/28#issuecomment-702228647, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFA43DVTEQPFXS3YTSZG7RDSISQOFANCNFSM4PNYPN5A .
Hi @derilium,
The Ubuntu installer script is not installing Caddy correctly on this version of TygerCaddy and as I am very close to releasing a completely new version based on the updated Caddy 2 platform, there is little point in fixing this issue as the majority of users are using docker.
The installer script is broken as the team at Caddy have recently moved to a completely rebuilt version of Caddy
I would recommend either installing docker on your ubuntu server, and following the docker install steps (this should be very straightforward and the screenshots above should help). Or, you could assist with the testing of the latest version of TygerCaddy (also docker based) which does away with Python, uWSGI, and Caddy V1 altogether and is so far reportedly very stable with the current testers.
Closing Issue.
Pull request is welcome, however not looking to fix this currently. The latest version will be docker first and has been very successful during testing.
I have followed the install procedure, ran the script and ran through the install (on the website) it then states to click the link including port 9091
When i click the link page cannot be displayed, i have also restarted the server to make sure that wasn't causing any problems
This is on ubuntu 18.04 server
Thanks
rob