Skip to content
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

dies randomly #16

Open
jameseriksen74 opened this issue Jul 2, 2021 · 4 comments
Open

dies randomly #16

jameseriksen74 opened this issue Jul 2, 2021 · 4 comments

Comments

@jameseriksen74
Copy link

I've been having a problem were it just dies while "streaming" a video, How can I run this as a daemon and have it restart if/when it dies?

@WinPooh32
Copy link
Owner

Can you describe how much ram you have, what os, etc?
Do you use docker version?
Which start parameters are used for app?
How much free space on hdd?
Any errors when fails?

How can I run this as a daemon and have it restart if/when it dies?

For bash you can try infinite start loop:

while true; do perrstohttp; sleep 1; done

@jameseriksen74
Copy link
Author

jameseriksen74 commented Jul 2, 2021

I'm just testing for now using an AWS instance not using docker.

Ubuntu 20, go 1.16

I'm guessing you mean:

while true; do go run github.com/WinPooh32/peerstohttp/cmd -port=8585; sleep 1; done
I can resize the instance accordingly if you have recommended specs.
Also I have set up a clean up cron script that will run every minute and remove files older than 4hrs

UPDATE This worked

@WinPooh32
Copy link
Owner

I'm just testing for now using an AWS instance not using docker.

As I know most of hosters block any p2p torrent activity.

@jameseriksen74
Copy link
Author

Actually AWS supports downloads they even have torrents api on s3
https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectTorrent.html
Eventually I will be looking for a host after I complete the construction of my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants