gexxxter / coinHiveMiner

Small UI for the https://coin-hive.com/ mining API
MIT License
22 stars 9 forks source link

Internal Server Error #6

Closed steffanjensen closed 7 years ago

steffanjensen commented 7 years ago

The website is getting Internal Server Error 90% of the time with getTopMiners.Php and getSitestats.php. Here is a picture image

But it can also be an error from coin-hive because of server overload.

gexxxter commented 7 years ago

On my server everything looks fine running the latest development version. Can you provide an apache error.log to see the error on the server side? Or an URL so I can give it a look on your site?

steffanjensen commented 7 years ago

Sure, here is my log https://github.com/reliefs/coinHiveMiner/blob/develop/error_log

and here is the website http://www.brominer.com

gexxxter commented 7 years ago

Thanks. Found something that could have caused this issue on your server. I hopefully fixed it with https://github.com/gexxxter/coinHiveMiner/commit/4b4f0b0ab886bec4be8b1464dc72e73bdea7af5f and pushed it to the development branch. Could you give it a try and see if this fixes your problem?

steffanjensen commented 7 years ago

thanks but it's even worse now it does not show up at all getTopMiners.php and when it "does" it is just pending image

gexxxter commented 7 years ago

Oh I took a look at your site and man there are a lot of users! Good for you :) I think your database cant handle the amount of connectionts that are opened. For now you can set the time for updating the statistics to a much higher value. Currently statistics update every 10 seconds you should set this to a much higher value. Todo so change this line (miner.js) setInterval(updateStats, 10000); to smth like this setInterval(updateStats, 300000); This will set the update intervall to 30 seconds.

Oh and to get rid of some of your errors copy the jquery-cookie-1.4.1.min.js to your scripts folder. With this the miner remembers the username or in your case the wallet address

A short google search told me that your hoster allows only 25 simultaneous database connections, this is quite low for an application like this.

steffanjensen commented 7 years ago

Thanks Yes I'm using Hostgator but I have my own Synology so I will just host the website myself from now on, i also thought that was the problem because when I started out with a low amount of users I had no connecting problem. Thanks for fixing my other problems also :)

You can see I had to think out of the box, because I did not understand how I would pay user out based on a username so that is why I changed it to wallet and not username.

steffanjensen commented 7 years ago

I just changed my host now getSiteStats.php works 100% of the time but getTopMiners.php does not work at all.

image

Edit: I think it's a dbconnecting issue looking into it.

gexxxter commented 7 years ago

Your hoster is still hostgator, so I think the 500 error is still the database refusing connection.

gexxxter commented 7 years ago

The guys over at coinhive published a new http api, with this I removed the need of a database connection. Just update to newest development version and there shouldn´t be any issues with your db connections anymore.

Commit https://github.com/gexxxter/coinHiveMiner/commit/cacb42f985aeb79db593026e60d1b403d4bfd863

steffanjensen commented 7 years ago

thanks works fine now awesome work

steffanjensen commented 7 years ago

Getting the same error again + loading issues and downtime

image

No problem on server image

Edit looking into it again can be my cloudflare redirect

steffanjensen commented 7 years ago

Here is my HTTP bandwith

image

Isn't that a little bit high ? What can that be?

gexxxter commented 7 years ago

Got any errormessages in your apache logfile?

steffanjensen commented 7 years ago

[25-Sep-2017 23:46:44 America/Chicago] PHP Warning: Invalid argument supplied for foreach() in /home4/w5u1p0n2/public_html/brominer.com/api/getTopMiners.php on line 11

gexxxter commented 7 years ago

This indicates that your call to the coinhive API didn't work as expected. I´ll build a quick test script to test the connection to coinhive.

steffanjensen commented 7 years ago

Your website is working fiSep-2017 12:26:13 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 12:26:13 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 12:27:01 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 12:27:02 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 12:27:05 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0ne, i think it

steffanjensen commented 7 years ago

Im still getting the max_user_connections how can that be when we are running on the API?

gexxxter commented 7 years ago

Found the problem with the db connections, I´ll quickly finish the testscript and fix the connection problems.

steffanjensen commented 7 years ago

ohh thanks. Weird that everything looks fine on your website :)

gexxxter commented 7 years ago

It's a dedicated host with a lot more power

gexxxter commented 7 years ago

Done check out the latest development branch and call /api/checkConnections.php. This will check your connections to the coinhive api and hopefully give you a better errormessage.

Try it and post the errormessage you get

gexxxter commented 7 years ago

It´s a quick check I will build a more sophisticated one when I get home.

steffanjensen commented 7 years ago

: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 08:21:19 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 08:21:20 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 08:21:21 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 08:23:12 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 08:23:12 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 08:24:04 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 08:24:07 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 08:24:10 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 08:24:12 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 08:24:26 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 08:27:22 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 08:59:55 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 09:01:26 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 09:01:26 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 09:17:45 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 09:17:45 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 09:47:26 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 09:47:26 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 09:53:24 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 09:53:24 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 10:13:30 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 10:30:36 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 10:32:13 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 10:45:29 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 10:45:29 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 11:00:17 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 11:00:17 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 11:14:32 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 11:14:32 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 11:34:45 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 11:34:45 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 11:35:58 America/Chicago] PHP Warning: mysqli_connect(): (42000/1203): User w5u1p0n2_stefa already has more than 'max_user_connections' active connections in /home4/w5u1p0n2/brominer.com/api/dbConnect.php on line 3 [24-Sep-2017 11:35:58 America/Chicago] PHP Fatal error: Call to a member function prepare() on boolean in /home4/w5u1p0n2/brominer.com/api/getTopMiners.php on line 3 [24-Sep-2017 11:48:04 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 11:48:04 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0 [24-Sep-2017 11:48:08 America/Chicago] PHP Warning: Unknown: Error occurred while closing statement in Unknown on line 0

Here is my log file

gexxxter commented 7 years ago

Did you pull the latest development branch? Other than in the login there shouldn´t be any databse connections

steffanjensen commented 7 years ago

Yes, I'm not getting any errors in the log (in the last 2 min)

But i'm still getting this error

jquery-3.2.1.min.js:4 GET http://brominer.com/api/getSiteStats.php 520 (Origin Error) send @ jquery-3.2.1.min.js:4 ajax @ jquery-3.2.1.min.js:4 r.(anonymous function) @ jquery-3.2.1.min.js:4 updateStats @ miner.js:4 jquery-3.2.1.min.js:4 GET http://brominer.com/api/getTopMiners.php 520 (Origin Error) send @ jquery-3.2.1.min.js:4 ajax @ jquery-3.2.1.min.js:4 r.(anonymous function) @ jquery-3.2.1.min.js:4 updateStats @ miner.js:3 jquery-3.2.1.min.js:4 GET http://brominer.com/api/getTopMiners.php 520 (Origin Error) send @ jquery-3.2.1.min.js:4 ajax @ jquery-3.2.1.min.js:4 r.(anonymous function) @ jquery-3.2.1.min.js:4 updateStats @ miner.js:3 jquery-3.2.1.min.js:4 GET http://brominer.com/api/getSiteStats.php 520 (Origin Error)

gexxxter commented 7 years ago

could you pls copy the api/checkConnections.php to your site. Then we can check if your request to coinhive is working

steffanjensen commented 7 years ago

I have done that, but i cannot access is because i made a nameserver change 4 hours ago away from cloudflare so I'm getting an error my ip is stuck in the cache.

http://www.brominer.com/api/checkConnections.php

"Error 520 Ray ID: 3a46ceff670a3d3d • 2017-09-26 14:10:46 UTC Web server is returning an unknown error" but I'm responsible for that error but i think you can access it.

steffanjensen commented 7 years ago

i can access it now http://www.brominer.com/api/checkConnections.php

But im just getting a blank page and no error log

steffanjensen commented 7 years ago

the error changed

image

gexxxter commented 7 years ago

I get a blank response this indicates that the script isn`t called at all. I think you might still have routing issues, changes to nameserver can take several hours to take effect

steffanjensen commented 7 years ago

image

yukonovalov commented 7 years ago

Very poorly understand the API. You will not be able to implement the withdrow function?

gexxxter commented 7 years ago

@StillArts I´m not planning to implement the withdraw function because it is not yet needed for my use case.

steffanjensen commented 7 years ago

@StillArts I'm going to implement the withdraw system, I will share it here when I figure it out. Got withdraw system to work but you still need to input username going to look at this later this week.

<?php $ch = curl_init(); $post_data = array( 'name' => 'steffan', 'secret' => '*****' ); curl_setopt($ch, CURLOPT_URL, 'https://api.coin-hive.com/user/reset'); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_exec($ch); curl_close($ch); ?>

Change reset to withdraw and add another field 'amount' =>'100',

steffanjensen commented 7 years ago

@gexxxter

I took the exact same files from my hostgator server into my own homeserver(synology) there the website has no problem, but the error does only happen on hostgator offcourse my synology does not have the same connections and i only can have 25 connections at hostgator which may be the reason checkConnections.php does not respond ?

This is hostgator and there but still there was no error_log (so everything seems fine) image

Own server all seems fine(Synology)

gexxxter commented 7 years ago

checkConnections.php does not use any db connections. The script checks if the coinhive api is reachable. My guess is that something in your server config is off. Check your file permissions, firewall, antivirus. Did you change anything in your php.ini file?

Maybe write a simple hello world php script to check if your webserver is configured correctly. Here´s a tutorial. https://www.w3schools.com/PhP/php_syntax.asp

steffanjensen commented 7 years ago

what should my permissions be?

gexxxter commented 7 years ago

644 should be safe to use

steffanjensen commented 7 years ago

Did hello.php everything is fine, also folder and file permissions this is the error in the jquery

{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Tb=[],Ub=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Tb.pop()||r.expando+"_"+ub++;return this[a]=!0,a}}),r.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Ub.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ub.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=r.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Ub,"$1"+e):b.jsonp!==!1&&(b.url+=(vb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||r.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?r(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Tb.push(e)),g&&r.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),o.createHTMLDocument=function(){var a=d.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),r.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var e,f,g;return b||(o.createHTMLDocument?(b=d.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=d.location.href,b.head.appendChild(e)):b=d),f=C.exec(a),g=!c&&[],f?[b.createElement(f[1])]:(f=qa([a],b,g),g&&g.length&&r(g).remove(),r.merge([],f.childNodes))},r.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=pb(a.slice(h)),a=a.slice(0,h)),r.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&r.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?r("<div>").append(r.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){r.fn[b]=function(a){return this.on(b,a)}}),r.expr.pseudos.animated=function(a){return r.grep(r.timers,function(b){return a===b.elem}).length},r.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=r.css(a,"position"),l=r(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=r.css(a,"top"),i=r.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),r.isFunction(b)&&(b=b.call(a,c,r.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},r.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){r.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),b=f.ownerDocument,c=b.documentElement,e=b.defaultView,{top:d.top+e.pageYOffset-c.clientTop,left:d.left+e.pageXOffset-c.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===r.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),B(a[0],"html")||(d=a.offset()),d={top:d.top+r.css(a[0],"borderTopWidth",!0),left:d.left+r.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-r.css(c,"marginTop",!0),left:b.left-d.left-r.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===r.css(a,"position"))a=a.offsetParent;return a||ra})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;r.fn[a]=function(d){return T(this,function(a,d,e){var f;return r.isWindow(a)?f=a:9===a.nodeType&&(f=a.defaultView),void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),r.each(["top","left"],function(a,b){r.cssHooks[b]=Pa(o.pixelPosition,function(a,c){if(c)return c=Oa(a,b),Ma.test(c)?r(a).position()[b]+"px":c})}),r.each({Height:"height",Width:"width"},function(a,b){r.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){r.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return T(this,function(b,c,e){var f;return r.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?r.css(b,c,h):r.style(b,c,e,h)},b,g?e:void 0,g)}})}),r.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),r.holdReady=function(a){a?r.readyWait++:r.ready(!0)},r.isArray=Array.isArray,r.parseJSON=JSON.parse,r.nodeName=B,"function"==typeof define&&define.amd&&define("jquery",[],function(){return r});var Vb=a.jQuery,Wb=a.$;return r.noConflict=function(b){return a.$===r&&(a.$=Wb),b&&a.jQuery===r&&(a.jQuery=Vb),r},b||(a.jQuery=a.$=r),r});

gexxxter commented 7 years ago

Add these lines right after the <?php in checkConnections.php

ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);

And point your browser to http://brominer.com/api/checkConnections.php If theres an php error you should see it now.

steffanjensen commented 7 years ago

Ok i got your old checkConnection to work by changing folder Got site statistics! Got top miners!

I tested your new script with api/ folder still no response

I then tried to rename index to 5 to see if there was a cache problem still same error. Weird

steffanjensen commented 7 years ago

all my folders are 755

gexxxter commented 7 years ago

Sounds like a server configuration issue

steffanjensen commented 7 years ago

@gexxxter I have figured it out now. When you run php 5+ GETminers and getstats does not work..

Works fine with php 7.0

gexxxter commented 7 years ago

K well done.

steffanjensen commented 7 years ago

Now it started again

image

I gets worst over time

image

Maybe too many request but still i think that should no be my server cpu is 3% maybe somehow it builds up and over request the site from the api call because it does not exit the prober way,

gexxxter commented 7 years ago

Can you provide your apache error log? Most likely it´s not a cpu problem.

steffanjensen commented 7 years ago

Look for how long it tries to request image 57 sec

steffanjensen commented 7 years ago

here is my appache error but is just shows the same request error

217.66.32.201 - - [28/Sep/2017:07:17:00 -0500] "GET /getTopMiners.php HTTP/1.1" 500 4347 "http://brominer.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" 81.24.70.2 - - [28/Sep/2017:07:17:00 -0500] "GET /getTopMiners.php HTTP/1.1" 500 4347 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 124.83.17.210 - - [28/Sep/2017:07:16:58 -0500] "GET /getSiteStats.php HTTP/1.1" 200 2505 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" 119.92.112.226 - - [28/Sep/2017:07:17:00 -0500] "GET /getSiteStats.php HTTP/1.1" 500 4347 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 176.37.65.91 - - [28/Sep/2017:07:16:58 -0500] "GET /getSiteStats.php HTTP/1.1" 200 2505 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 66.249.93.209 - - [28/Sep/2017:07:16:58 -0500] "GET /getTopMiners.php HTTP/1.1" 200 852 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 41.76.153.246 - - [28/Sep/2017:07:17:00 -0500] "GET /getSiteStats.php HTTP/1.1" 500 4347 "http://brominer.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 124.83.17.210 - - [28/Sep/2017:07:16:58 -0500] "GET /getTopMiners.php HTTP/1.1" 200 852 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36" 176.154.152.148 - - [28/Sep/2017:07:17:00 -0500] "GET /getTopMiners.php HTTP/1.1" 500 4347 "http://brominer.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 124.105.175.117 - - [28/Sep/2017:07:16:58 -0500] "GET /getSiteStats.php HTTP/1.1" 200 2505 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 66.249.93.208 - - [28/Sep/2017:07:16:58 -0500] "GET /getSiteStats.php HTTP/1.1" 200 2505 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 77.88.196.220 - - [28/Sep/2017:07:16:58 -0500] "GET /getSiteStats.php HTTP/1.1" 200 2505 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.29 Safari/537.36" 81.24.70.2 - - [28/Sep/2017:07:17:01 -0500] "GET /getTopMiners.php HTTP/1.1" 500 4347 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" 120.188.64.70 - - [28/Sep/2017:07:16:58 -0500] "GET /getSiteStats.php HTTP/1.1" 200 2505 "http://brominer.com/" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"

I

steffanjensen commented 7 years ago

We're moving to coinhive.com. Please update your script tags and API calls to the new domain now!

The old domain (coin-hive.com) will of course continue to function, but will be redirected to the new domain in a few days, instead of serving content directly.