Newcomer1989 / TSN-Ranksystem

A PHP Bot that assigns time based server groups on TeamSpeak3.
https://ts-ranksystem.com
GNU General Public License v3.0
144 stars 60 forks source link

Bot won't start #513

Closed alsoGAMER closed 6 years ago

alsoGAMER commented 6 years ago

If i start the bot from the webinterface it shutting down automatically after 3/4 seconds ranksystem.log

Newcomer1989 commented 6 years ago

When you start the Bot, will there be created a file named "pid" inside the "logs" folder?

alsoGAMER commented 6 years ago

No

Newcomer1989 commented 6 years ago

Then this is the problem.

Please have a look to the permissions of your Ranksystem installation.

You need to set the right owner.. for linux: chown -R www-data:www-data /var/www/ranksystem

And you also need to set special permissions to some directories.. for linux: chmod 777 avatars/ tsicons/ update/ logs/

Perhaps you can make an ls -l and send us a screenshot of it.

alsoGAMER commented 6 years ago

All is correctly configured, also the /var/log/ranksystem (for logs)

alsoGAMER commented 6 years ago

The webinterface itself run correctly, only the bot have this problem

Newcomer1989 commented 6 years ago

The logspath is only for the logfile.. the PID file will be created inside the ranksystem installation directory inside the "logs" folder. Are you sure this folder is existent and has the needed permissoins? You checked the existing PID file inside the right path (beginning question)?

alsoGAMER commented 6 years ago

Logs folder exist and all permissions is correctly configured photo_2018-07-19_21-13-28

Newcomer1989 commented 6 years ago

Puh.. it is all, but not correct. You did chmod 777 all of the folders. Please only do this on the above defined ones.

You checked the existing PID file inside the right path (beginning question)?

This question is still open. You observed the path /var/www/ranksystem/logs for a pid file on starting the Ranksystem?

alsoGAMER commented 6 years ago

the file is not created, and the screenshot I sent shows that the permissions (777) are there and they are all correct, it is not the first time that I install this interface

alsoGAMER commented 6 years ago

Now it works, I tinkered a bit and I did start. Still remains the question of why is a bit lazy to generate the pid file.

Tip: Make sure that the pid file is put in directory not accessible by the webserver, but which are accessible if you set the correct permissions (Eg. /var/log/ranksystem)

Newcomer1989 commented 6 years ago

hmm, I think it is not possible it will sometimes work and sometimes not with exactly the same system envoirements. It need to be changed anything it is now able to start. Would be nice, if you can give us a hint, what you have done. Then we can validate it and perhaps enable a new check for this.

alsoGAMER commented 6 years ago

I simply reinstalled it until it worked, however the choice to make it only compatible with php5 has made things a bit more complex, it would be much appreciated (personally) an update that makes it compatible with php7. I'm also working for the improvement of the Italian translation since the current one has many typos/grammatical and even contains some strings not translated. I would be very honored if you, once finished the file is uploaded in the repository and used as the official

alsoGAMER commented 6 years ago

With regard to the file "pid" I'll see if changing the code that deals with creating and maintaining I can move it and force the creation in another directory

Shad86 commented 6 years ago

an update that makes it compatible with php7

We support php 7 since "Version1.1.2" (30.October30.2016 and with "Version 1.2.2" 21.January.2017 7.1+ (so over one and a half year now we have a full support for all php 7 Versions)

I'm also working for the improvement of the Italian translation since the current one has many typos/grammatical and even contains some strings not translated.

We do not translate this things, the community is doing it, so thank you for fixing / improving it.

alsoGAMER commented 6 years ago

The most recent version downloadable from the website, but the problem is that if I configure everything to use php7 to the interface would give errors only and the bot does not start even

Shad86 commented 6 years ago

Again which php7 Version did you use?

pascual48 commented 6 years ago

How did you fix the problem of the pid file?

alsoGAMER commented 6 years ago

@Shad86 php7.2.7, but atm i using php5.6 without errors

alsoGAMER commented 6 years ago

@pascual48 reinstalling everything over and over again until it worked, also trying to change multiple versions of php, directories, and configurations of nginx

Newcomer1989 commented 6 years ago

Ok, I think the topic is solved.. All other please in a new/other issue