Open a-h opened 7 years ago
If there's nothing enqueued, then there's no error.
I have also experienced this one. The error occurs in our MySQL version 5.6 database but when I tried it in MySQL version 5.7 database it works fine. Maybe the reason could be the package and MySQL version compatibility.
Thanks @projectzerotohero, that's likely the source of the problem. I was testing with a local MySQL 5.6 database, since I had intended to use Hangfire with AWS Aurora RDS which is "wire compatible" with MySQL 5.6.
I ended up writing a scheduler to run Lambdas in AWS at various intervals and points in the future instead of using Hangfire.
I'm getting this issue when trying to view Jobs (when it has something enqueued), Retries and Recurring Jobs. Dashboard does not throw any error, but both Realtime graph and History graph show nothing. Jobs, Retries and Recurring Jobs, all show the correct count beside them but gives exception on the actual page itself. I also checked my mysql db and found that all hangfire tables were created correctly and the hangfirejob table also has data (jobs i scheduled). I'm using mysql version: 8.0.12
Observed 2 types of errors:
HangfireJob table error during cross join
HangfireJob
j
cross join (SELECT @rownum := 0) r
left joi' at line 2HangfireSet table error
HangfireSet
,
(select @rownum := 0) r
wh' at line 3Please let me know if there's a solution to this.
I need help I'm having the same errors as mentioned by @V2Blessy
I get the same error . enviorment: asp.net core 3.1 Hangfire.aspnetcore 1.7.9 Hanfire.mysqlstore 2.0 mysql 8.0
when vsisit the url http://localhost:9519/hangfire/recurring
First I Get the error like : {"code":401,"data":"","message":"Parameter '@rownum' must be defined. To use this as a variable, set 'Allow User Variables=true' in the connection string."}
I Found the solution for that : Add AllowUserVariables=True; to the connectstring
But when I did that ,I found the error like that:
{"code":401,"data":"","message":"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank\r\n\t from Hangfire_Set
,\r\n (select @rownum := 0) r \r\n w' at line 3"}
I get the same error . enviorment: asp.net core 3.1 Hangfire.aspnetcore 1.7.9 Hanfire.mysqlstore 2.0 mysql 8.0
when vsisit the url http://localhost:9519/hangfire/recurring
First I Get the error like : {"code":401,"data":"","message":"Parameter '@rownum' must be defined. To use this as a variable, set 'Allow User Variables=true' in the connection string."}
I Found the solution for that : Add AllowUserVariables=True; to the connectstring
But when I did that ,I found the error like that: {"code":401,"data":"","message":"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank\r\n\t from
Hangfire_Set
,\r\n (select @rownum := 0) r \r\n w' at line 3"}
MySQL version 8.0 is not supported. Try with MySQL version 5.7 If you want something more modern use redis
I get the same error . enviorment: asp.net core 3.1 Hangfire.aspnetcore 1.7.9 Hanfire.mysqlstore 2.0 mysql 8.0 when vsisit the url http://localhost:9519/hangfire/recurring First I Get the error like : {"code":401,"data":"","message":"Parameter '@rownum' must be defined. To use this as a variable, set 'Allow User Variables=true' in the connection string."} I Found the solution for that : Add AllowUserVariables=True; to the connectstring But when I did that ,I found the error like that: {"code":401,"data":"","message":"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank\r\n\t from
Hangfire_Set
,\r\n (select @rownum := 0) r \r\n w' at line 3"}MySQL version 8.0 is not supported. Try with MySQL version 5.7 If you want something more modern use redis
Thank you very much!
Steps to reproduce
Environment
Error message