Coder Social home page Coder Social logo

Comments (66)

Hightech1011 avatar Hightech1011 commented on May 23, 2024 2

For this issue, can an option be added in the "Status" section to delete specific queued tasks? This would remove the need to clear the caches which resets the total jobs count.

from seat.

Nutbolt52 avatar Nutbolt52 commented on May 23, 2024 1

I have this issue as well on my SeAT install. I am on Ubuntu, its all up to date, and it happens on random keys, but also the one which seems to hang first is checking the server status. This is frustrating as after about 2 or 3 weeks all 25 keys in my install hang and so nothing is updating. Let me know what you need (ping me on slack), to help continue troubleshooting this. Thanks! Much appreciated!

from seat.

leonjza avatar leonjza commented on May 23, 2024

php artisan seat:cache:clear.

Can you try see if there are any exceptions in the logfiles from about 2 days ago that can help me debug this?

from seat.

Maarten28 avatar Maarten28 commented on May 23, 2024

I'm having similar issues where jobs are running for 14+h now, while others do finish. The only thing which I came across in the workers log is the following error:

[PDOException] SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

When I ran the code above it does not show any working jobs anymore. It therefore seems to be more an issue of caching?

from seat.

leonjza avatar leonjza commented on May 23, 2024

@Maarten28 That error only means your MySQL Server was down.
As for the command, it simply clears all jobs. Not exactly a caching thing.

from seat.

Maarten28 avatar Maarten28 commented on May 23, 2024

In that case, I'm currently running the app with about 400 APIs, of which 1 is a corp API. Before I was running the beta version of SeAT, which did not have any issues on this front. At the moment my best guess (compared to the beta) is that the API calls are taking longer then before. One difference compared to this bug is that my APIs are updating through various stages and the last updated time is being updated to something more recent, so it might be a different bug compared to the one described above.

from seat.

leonjza avatar leonjza commented on May 23, 2024

A bit of a vague description.
I need one of the keys that were 'stuck'. Feel free to pm me on slack/irc with the key & vcode.

from seat.

Maarten28 avatar Maarten28 commented on May 23, 2024

At the moment I do not have such a key at hand, since I just deleted my working jobs queue. However, since the whole queue got stuck, I would say at least 50 keys (since I tested whether the issue persisted with 50 instead of 20 workers) have this issue. I'll inform you when I have a key I can share.

from seat.

leonjza avatar leonjza commented on May 23, 2024

I finally had a few that got 'stuck' an hour or so ago. I had a connectivity related problem on the server, so it seems like a case where the job that times out is not reaped.

from seat.

 avatar commented on May 23, 2024

Having this issue also with a corporation key, all account keys process through fine, corporation key seems to hang on Processing: ContractsItems every time, 15 hours now and it is still on that. Tried clearing the cache and restarting, no joy.

from seat.

leonjza avatar leonjza commented on May 23, 2024

Could you guys drop the --tries 10 value to --tries 1 in your supervisord.conf, flush caches with php artisan cache:clear && php artisan seat:cache:clear and report back after while?

from seat.

 avatar commented on May 23, 2024

I had a continued issue after dropping --tries 10 down to --tries 1. Seems to have resolved itself now though, I flushed caches, updated to latest version (Forgot to do that before but done now), ran keys update and had 4 stuck, cleared caches again, updated supervisor to go from 1 worker to 4, ran a keys update and none stuck. No idea if anything I did resolved it or if it just decided to play nice, my corporation key has also finally managed to get all the way through, that was the main one that got stuck.
I will keep an eye on it and let you know if I get any that get stuck again.

from seat.

leonjza avatar leonjza commented on May 23, 2024

@MythicalDreams be sure to bump this expire value up in your install too: https://github.com/eveseat/seat/blob/master/config/queue.php#L73

from seat.

warlof avatar warlof commented on May 23, 2024

@leonjza it could be related to an unreachable CCP api server. I got this issue on a fresh install too and got "unreachable api.eveonline.com" in logs.

Trying to ping the server from multiple location and all packets where lost.

from seat.

leonjza avatar leonjza commented on May 23, 2024

Yes, I have realized that the server may respond with a 403, then the process gets stuck too.

from seat.

Hightech1011 avatar Hightech1011 commented on May 23, 2024

I am running into the same issue. I have done a fresh install. I followed the instructions for CentOS found "https://github.com/eveseat/seat/wiki/CentOS-6.x-Installation" and made modification to fit the platform I have 'SeAT" running in.

Details:

Hosted VPS running CentOS 6.5
Apache Version 2.2.31
PHP 5.5.32 (cli) (built: Feb 11 2016 00:08:12)
mysql Ver 14.14 Distrib 5.6.29, for Linux (x86_64) using EditLine wrapper
cPanel Version 54.0 (build 14)

All of the install process was done as root. Username were changed for the platform. Web interface work correctly and accepts APIs, but unable to pull the APIs due to hung working jobs.

As requested by warlof, I have provided:

php seat_path/artisan seat:admin:diagnose - Results
iptables -L (huge, server runs CSF with a large list of banned IPs due to attempted bruteforce attempts to other hosted sites) - https://drive.google.com/file/d/0B98rlAIeHlHmbVJJLW1XWDhkVW8/view?usp=sharing

seat_path/storage/logs/laravel.log content - https://drive.google.com/file/d/0B98rlAIeHlHmZXV5SFZlZXFOakk/view?usp=sharing
supervisor status -

supervisorctl status

seat1 RUNNING pid 15881, uptime 3:25:04
redis statu - Results

from seat.

op6sie avatar op6sie commented on May 23, 2024

I have about 180 apikey's and updated seat yesterday, i tried Ubuntu and now am on CentOS7
with MySQL en MariaDB both run to slow to clear the cue within an hour
getting the information from the 180 apikey's is not a problem.
are there minimum requirements to the machine?

i have used the 1 line installer from this site.

from seat.

leonjza avatar leonjza commented on May 23, 2024

@op6sie I suggest you join slack to discuss your performance question. It is not on topic for this ticket now.

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

I am also experiencing this issue. It seems to happen if an API key is deleted by a user on the eve side, or if the API servers do not return a hello fast enough. If it cannot resolve the API key, it doesn't produce an error it just sits in limbo for days. Could we look into adding php artisan seat:cache:clearas a button or have better handling of hangs?

from seat.

leonjza avatar leonjza commented on May 23, 2024

No the error occurs when an unexpected HTTP code is returned. A fix is pending.

from seat.

shibdib avatar shibdib commented on May 23, 2024

same issue https://i.imgur.com/ysQlr8g.png

looking forward to a fix

from seat.

Hightech1011 avatar Hightech1011 commented on May 23, 2024

I have found a quick fix for this when jobs appear to be stuck. In my case, a restart of "supervisord" (I'm running CentOS 6.5) restarts the processing of keys, without having to clear the SeAT cache.

from seat.

leonjza avatar leonjza commented on May 23, 2024

Pushed some updates for this. Clear cache and monitor how it goes.

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

So far so good, no hanging processes on my end.

from seat.

shibdib avatar shibdib commented on May 23, 2024

http://i.imgur.com/V1RpjFf.png still getting some

much less than before. (This is a seat install that has about 400 keys)

from seat.

op6sie avatar op6sie commented on May 23, 2024

Currently my vmserver had an update problem once restored i'll check
Op 4 mrt. 2016 07:24 schreef "shibdib" [email protected]:

http://i.imgur.com/V1RpjFf.png still getting some


Reply to this email directly or view it on GitHub
#42 (comment).

from seat.

leonjza avatar leonjza commented on May 23, 2024

I can also see the odd job still getting stuck. But its no longer blocking on ApiKeyInfo calls that respond HTTP 403 for some reason..

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

I have 2 hangs as well.
http://i.imgur.com/JqEX41F.png

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

For this issue, can an option be added in the "Status" section to delete specific queued tasks? This would remove the need to clear the caches which resets the total jobs count.

I agree with this, at least add a button to the command list so i don't have to keep logging in to enter the clear cache command.

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

Is there any movement on this?

from seat.

warriorsoul15 avatar warriorsoul15 commented on May 23, 2024

Honestly seat should fail jobs by x-time and clear them from the queue.

On Wed, Jul 6, 2016 at 3:03 PM, Bingmano [email protected] wrote:

Is there any movement on this?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#42 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AKwStPxc8pF3X57iHfn9yTUNlYshDfh9ks5qS_vwgaJpZM4G9-An
.

from seat.

leonjza avatar leonjza commented on May 23, 2024

Could you guys give me some indication on how many jobs you have in the failed table?

select count(*) from failed_jobs;

Output should be something like (yes this is my real failed count):

mysql> select count(*) from failed_jobs;
+----------+
| count(*) |
+----------+
|      339 |
+----------+
1 row in set (0.00 sec)

from seat.

Bingmano avatar Bingmano commented on May 23, 2024
MariaDB [seat]> select count(*) from failed_jobs;
+----------+
| count(*) |
+----------+
|       37 |
+----------+
1 row in set (0.00 sec)

worst spacing ever but it gets the point across

from seat.

Nutbolt52 avatar Nutbolt52 commented on May 23, 2024

246; and I have about 15 api keys in SeAT, and running for ~1 to 2 months

from seat.

leonjza avatar leonjza commented on May 23, 2024

After a lot of debugging, I pushed eveseat/eveapi@bd3e928 to attempt to fix the 'stuck jobs' issue. If the tests pass and it works ok in my staging env then I'll tag a release.

from seat.

leonjza avatar leonjza commented on May 23, 2024

Changes tagged and release. Make sure you update to eveseat/[email protected] (using the upgrade script here) and provide feedback.

from seat.

leonjza avatar leonjza commented on May 23, 2024

Also make sure you have run php artisan seat:cache:clear at least once after the upgrade.

from seat.

op6sie avatar op6sie commented on May 23, 2024

Just updated to 1.0.15
prior 61 failed jobs on 35 apikey's and about 35k on jobs.

letting you know if the fail count goes up (without me doing it wrong).
php artisan seat:cache:clear executed.

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

Updated to 1.0.15 and am now experiencing the following issue (i did clear the cache a day ago).

Job ID 0WRXRFFaHbpY4Hicy8ksjM62RBpvIFvK
Api Server
Scope Server
Status Error
An unknown failure in Seat\Eveapi\Jobs\UpdatePublic occured.

from seat.

leonjza avatar leonjza commented on May 23, 2024

Updated to 1.0.15 and am now experiencing the following issue (i did clear the cache a day ago).

Yay. And the job is not stuck?

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

nope, there's a failure and also a stuck job :(

image

from seat.

op6sie avatar op6sie commented on May 23, 2024

No i have tested a few day's ( 11513 jobs so far) with 4 stuck jobs.

I use this to clear up the Queued Jobs but there still are failed in the query you gave earlier.

update seat.job_trackings
set status = 'Done'
where status != 'Done'
and status != 'Working';

from seat.

leonjza avatar leonjza commented on May 23, 2024

Alright. I guess the next logical step is going to be to create a reaper job for these. Really hoped to be able to get to the bottom of this, but I have run out of options now.

from seat.

leonjza avatar leonjza commented on May 23, 2024

The queue clearing command is now now released. Update using the upgrade script and it should be part of the ecosystem now.

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

Applied the update today but i'm still getting the below error:

Job ID 06NoCFuHscVkU6li3GBlR9FXRWkssH1X
Api Server
Scope Server
Status Error

An unknown failure  in Seat\Eveapi\Jobs\UpdatePublic occured. Refer to the logs at 2016-07-23 18:50:06 for more information.

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

Log:

[2016-07-23 18:50:06] local.ERROR: A job failure occured in Seat\Eveapi\Jobs\UpdatePublic. Marking it as failed.
[2016-07-23 18:55:02] local.WARNING: A job for Api Server and owner 0 already exists.
[2016-07-23 19:00:02] local.WARNING: A job for Api Server and owner 0 already exists.

from seat.

leonjza avatar leonjza commented on May 23, 2024

The last update simply adds a job that will cleanup jobs like these every day.

from seat.

molten360 avatar molten360 commented on May 23, 2024

I just ran into this issue tonight. It cant query Contractitems from one of my Corp API's Cleared the cache and restarted it, hung at the exact same spot.

Ubuntu 14.04 running the latest version of SeAT.

from seat.

leonjza avatar leonjza commented on May 23, 2024

Poking this for a last time. Hows things going? Are jobs that get 'stuck' getting cleared etc?

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

After a certain amount of time it will produce a failed job but seems to no
longer get stuck in queued.

On Aug 25, 2016 12:10 PM, "Leon Jacobs" [email protected] wrote:

Poking this for a last time. Hows things going? Are jobs that get 'stuck'
getting cleared etc?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#42 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AP1UCA4ZWEl7PxbxFpzzi3OfdGEELkjsks5qjb5pgaJpZM4G9-An
.

from seat.

op6sie avatar op6sie commented on May 23, 2024

Me also got An error but No stick queue anymore

Op 25 aug. 2016 6:28 p.m. schreef "Bingmano" [email protected]:

After a certain amount of time it will produce a failed job but seems to no
longer get stuck in queued.

On Aug 25, 2016 12:10 PM, "Leon Jacobs" [email protected] wrote:

Poking this for a last time. Hows things going? Are jobs that get 'stuck'
getting cleared etc?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#42 (comment), or
mute
the thread
<https://github.com/notifications/unsubscribe-auth/
AP1UCA4ZWEl7PxbxFpzzi3OfdGEELkjsks5qjb5pgaJpZM4G9-An>
.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#42 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOeTcYwMmhld9tlTTmAJTpOfcJGVU5DZks5qjcLCgaJpZM4G9-An
.

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

I have several jobs stuck in queued status again.

image

from seat.

leonjza avatar leonjza commented on May 23, 2024

Reaper only runs every 6 hours. Those jobs are only 5 hours old.

from seat.

Bingmano avatar Bingmano commented on May 23, 2024

yeah ignore that, it seems that my jobs aren't running at all. not seat's fault on this one :)

from seat.

warlof avatar warlof commented on May 23, 2024

We perhaps have a solution for this issue which i'm testing since 3 month now without issue.

I would know if somebody else with lot of stucked job would try it himself on his environment ?

In addition it's drastically lowering memory and cpu needs for running Seat, so somebody with a small server is à perfect candidate.

The thing consist on a simple line modification into supervisor seat config file, but will tell more in private.

from seat.

 avatar commented on May 23, 2024

@warlof I'm interested. I run seat on a small server with over 2000 API keys, so the memory/cpu impact of running it is quite substantial. I also get stuck jobs daily

from seat.

warlof avatar warlof commented on May 23, 2024

@Raikia517 go on slack, i'll PM yourself with the change ;)

from seat.

shibdib avatar shibdib commented on May 23, 2024

can you just share the "fix" here?

Better to have other sets of eyes see it

from seat.

warlof avatar warlof commented on May 23, 2024

I'll prefer make this under control at the moment since it's still unofficial/testing segment and it could change with port to latest Laravel version since they've change the way they handle queue.

If you want the fix, go on slack and Pm me. I'll share you the new config for supervisor. Depending of the result it will be available on doc as replacement or not.

from seat.

 avatar commented on May 23, 2024

What slack am I "getting on"? I'm on tweetfleet slack already

EDIT: Nevermind, im on it

from seat.

warlof avatar warlof commented on May 23, 2024

It seems that last test was successfull, as a result, you'll find the solution bellow :

  • Edit your SeAT supervisor configuration file (by default, located at /etc/supervisor/conf.d/seat.conf)
  • Comment the line command=/usr/bin/php /PATH_TO_YOUR_SEAT_SETUP/artisan queue:listen --queue=high,medium,low,default --tries 1 --timeout=3600 (by default, the seat setup path is /var/www/seat) using ; front of the line
  • Add the line command=/usr/bin/php /PATH_TO_YOUR_SEAT_SETUP/artisan queue:work --daemon --queue=high,medium,low,default --tries=3 --sleep=3 (by default, the seat setup path is /var/www/seat)
  • Finally, restart supervisor using sudo service supervisor restart

This will be available on next released documentation and installation scripts

from seat.

leonjza avatar leonjza commented on May 23, 2024

Applied the update today but i'm still getting the below error:

Job ID 06NoCFuHscVkU6li3GBlR9FXRWkssH1X
Api Server
Scope Server
Status Error

An unknown failure in Seat\Eveapi\Jobs\UpdatePublic occured. Refer to the logs at 2016-07-23 18:50:06 for more information.

With the upgrade to Laravel 5.3, we can finally get the exception thrown for this instead of reporting the error as Unknown. I added this in the the following commit: eveseat/eveapi@dffd1c9. Hopefully when this lands in the next major release, this ticket can finally be closed ;)

from seat.

mthomas92868 avatar mthomas92868 commented on May 23, 2024

So i'm using Alpha 2.0 on PHP 7.0, and experince same issue where corp queue just looks up on a job, I'm seeing when it makeing the following calling this

https://api.eveonline.com/corp/ContractItems.xml.aspx?contractID=110537703&keyID=********&vCode=****************
which is return Invalid or missing contractID.
but if i return and call https://api.eveonline.com/corp/Contracts.xml.aspx
that contractID does exist but has been deleted. So Seat is throwing a 400

So after this happen the queue get stuck and doesn't continue...

from seat.

warlof avatar warlof commented on May 23, 2024

tsk... CCP -_-
Unfortunatelly, it's not SeAT which is throwing a 400, it's only handling it from CCP Api.

I don't know if we're able to applying a special case for 400 since it can be raise for many real reason which are not "hey, stuff is working, but well... we just want to use a code"

But, with 2.x it shouldn't be stuck since exception are shared between job and worker. Have to investigate a bit more in order to know why this case happening.

from seat.

mthomas92868 avatar mthomas92868 commented on May 23, 2024

alright latest 2.0 seem to handl exception better and cleared the job out...so now i know the issue

from seat.

leonjza avatar leonjza commented on May 23, 2024

Considering the codebase for handling jobs has changed significantly in SeAT 2.0, I am closing this in favour of a new ticket should there be any new issues.

from seat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.