Comments (66)
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.
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.
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.
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.
@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.
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.
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.
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.
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.
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.
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.
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.
@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.
@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.
Yes, I have realized that the server may respond with a 403, then the process gets stuck too.
from seat.
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.
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.
@op6sie I suggest you join slack to discuss your performance question. It is not on topic for this ticket now.
from seat.
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:clear
as a button or have better handling of hangs?
from seat.
No the error occurs when an unexpected HTTP code is returned. A fix is pending.
from seat.
same issue https://i.imgur.com/ysQlr8g.png
looking forward to a fix
from seat.
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.
Pushed some updates for this. Clear cache and monitor how it goes.
from seat.
So far so good, no hanging processes on my end.
from seat.
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.
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.
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.
I have 2 hangs as well.
http://i.imgur.com/JqEX41F.png
from seat.
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.
Is there any movement on this?
from seat.
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.
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.
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.
246; and I have about 15 api keys in SeAT, and running for ~1 to 2 months
from seat.
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.
Changes tagged and release. Make sure you update to eveseat/[email protected] (using the upgrade script here) and provide feedback.
from seat.
Also make sure you have run php artisan seat:cache:clear
at least once after the upgrade.
from seat.
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.
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.
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.
nope, there's a failure and also a stuck job :(
from seat.
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.
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.
The queue clearing command is now now released. Update using the upgrade script and it should be part of the ecosystem now.
from seat.
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.
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.
The last update simply adds a job that will cleanup jobs like these every day.
from seat.
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.
Poking this for a last time. Hows things going? Are jobs that get 'stuck' getting cleared etc?
from seat.
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.
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.
I have several jobs stuck in queued status again.
from seat.
Reaper only runs every 6 hours. Those jobs are only 5 hours old.
from seat.
yeah ignore that, it seems that my jobs aren't running at all. not seat's fault on this one :)
from seat.
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.
@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.
@Raikia517 go on slack, i'll PM yourself with the change ;)
from seat.
can you just share the "fix" here?
Better to have other sets of eyes see it
from seat.
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.
What slack am I "getting on"? I'm on tweetfleet slack already
EDIT: Nevermind, im on it
from seat.
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.
Applied the update today but i'm still getting the below error:
Job ID 06NoCFuHscVkU6li3GBlR9FXRWkssH1X
Api Server
Scope Server
Status ErrorAn 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.
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.
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.
alright latest 2.0 seem to handl exception better and cleared the job out...so now i know the issue
from seat.
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)
- Broken evewho link HOT 2
- the role of the old corporation is retained for a time after the change of corporation HOT 4
- SDE doesn't update after changing required tables
- Foreign characters showing in my character list
- Limit Alliances Based on Valid Tokens HOT 3
- Duplicate New Application Notifications HOT 6
- InvalidStateException when user try to authenticate HOT 3
- Character sheet 500 error
- Feature Request: Ability to use @Here, etc. Alerting in Discord Notifications HOT 5
- Squad deletion confirmation
- Squad members default sort
- Suggestion: Ability to filter into squad based on Seat\Web\Models\Acl\Role HOT 1
- notifications/src/Notifications/Sovereignties /Discord/
- Instalation on Ubuntu 22.10 (Kinetic Kudu) HOT 2
- Unable to update modules HOT 1
- Its good
- InvalidClaimException & InvalidStateException HOT 4
- SeAT v5 - SQL Syntax Error - Top Wallet Transactions (Characters -> Intel) HOT 1
- SQL missing primary key on table password_resets HOT 1
- Zkill icon on char sheets not linking to char numbers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seat.