SMM Panel (Cronjob Issues)

Intofantasy

Senior Member
Joined
Jan 18, 2013
Messages
991
Reaction score
334
Im having over 30k orders pending on my smm panel.

IM using an "script" called -> SmartPanel - SMM Panel Script

The cronjob issue, status won't be updated on my panel.
It worked in the beginning now it just stopped.

Advice?
 
Probably you have updated something and versions no longer work. Check the error_log and crontab log.
 
Thank you, in my hosting correct?
 
I've been having issues with one of my suppliers using SmartPanel too..
 
1593642040311.png
 
Probably you have updated something and versions no longer work
 
had the same issue a few days ago but it managed to fix on its own i guess
try deleting the cron job then adding again and SET ONCE PER MINUTE (*)

make sure it's the one that Tuyen has provided in the docs. This one;
Code:
wget --spider -O - http://yourdomain.com/api_provider/cron/status >/dev/null 2>&1

worst case contact Tuyen on skype or CC
let us know if you figured it out or need extra efforts resolving it
 
had the same issue a few days ago but it managed to fix on its own i guess
try deleting the cron job then adding again and SET ONCE PER MINUTE (*)

make sure it's the one that Tuyen has provided in the docs. This one;
Code:
wget --spider -O - http://yourdomain.com/api_provider/cron/status >/dev/null 2>&1

worst case contact Tuyen on skype or CC
let us know if you figured it out or need extra efforts resolving it
To be honest, Tuyen don’t care about this issue.
I did offer him $100 to help me resolve the issue.
He wants access to the hosting files, where all the valuble information is. Privacy for my clients.
 
had the same issue a few days ago but it managed to fix on its own i guess
try deleting the cron job then adding again and SET ONCE PER MINUTE (*)

make sure it's the one that Tuyen has provided in the docs. This one;
Code:
wget --spider -O - http://yourdomain.com/api_provider/cron/status >/dev/null 2>&1

worst case contact Tuyen on skype or CC
let us know if you figured it out or need extra efforts resolving it
Does not work sir.
 
To be honest, Tuyen don’t care about this issue.
I did offer him $100 to help me resolve the issue.
He wants access to the hosting files, where all the valuble information is. Privacy for my clients.
I know exactly what you’re talking about bro what a great refresher.
I'm guessing the problem didn’t resolve yet. If freelancers are not an option (and I 100% understand why)
we can go further and mess with the code a little (I'm checking it right now)


* Since I'm just like you, I had trust issues (+curiosity etc.) and these things teach us getting out of the comfort zone
we can experiment but it ain't my business so we'll try something really basic since it's Codeigniter (PHP)
I've never went deeper with it since I mostly messed with Laravel apps and only modded SmartPanel's design
but after a few minutes of learning the environment, I see the whole picture so we'll aim straight at what the cronjob command is executing.

go here:
Code:
public_html/app/modules/api_provider/controllers
you will see 'api_provider.php'
now check if there's anything suspicious like 'last modded' date and check code length (1319 lines in Ver. 3.2)
I've seen line '939', '1038', and some lines at the start of the code that handles order status

you can only try 2 things now since only you should have access to the code in this case.
make sure that you backup the file ('api_provider.php'), you could simply do it by double clicking it or downloading it on Cpanel
you can make a backup folder inside Cpanel but most importantly make sure you know which file is the one you had installed.

I'll make more clean to your convenience;

1. Head into public_html -> app -> modules ->api_provider -> controllers
2. Backup your 'api_provider' file just in case
3. Go to your PC, extract the installation .rar you originally downloaded from CC (or just extract/open the same 'api_provider' file)
4. Open the clean 'api_provider' file (I use Atom but you can use any text editor you like)
5. Copy the whole code (Ctrl+A -> Ctrl+C) and paste it inside the same 'api_provider' file in your host
6. Hit 'Save changes'

If it does save, the code have been messed with for sure no matter the 'last modified' date.
Just give it a moment and check in a few minutes if the order status has been fixed.
(You can always hit 'Undo' and save again or just take the code from your backup)

*we didn't mod any CSS and such so it makes little to no sense, but if you use Cloudflare make sure you're in 'Development Mode' just in case.

I feel like it might be useless and your host has something to do with it but there's always a way man I'm telling you. ALWAYS.
PHP version got nothing to do with it. Code is on point. Cron is ok. You're good to go man check your resources cause last time I've seen such amount of orders
(the man provides his own services to some major panels) migration to a hosting 'like mine' fixed it all so it is a poor hosting performance issue
leading to multiple issues for sure but let's be sure first cause I'm telling you man I had the exact same issue a few days ago and something have triggered it
to work fine or it went good on its own.

Maybe try something random to trigger it like syncing your services? such order volume might lead to poor performance and command execution as well
let us know bro and check your logs as well.




LAST RESORT: I personally got designs jacked, a good dude I know got his whole webserver and a few authority domains hosted that got jacked but I assume Tuyen
ain't this type of man I mean what could the man possibly trip on to ruin such a good rep on himself? And yeah me and a few devs have experienced email exports etc.
I feel your paranoia man I know a dude running a successful panel that managed to get jacked for a few monthly 4 figure+ clients via email I mean the horror stories go on

Your clients' security really should be your priority starting with personal info as well I totally feel you but I'm damn sure you can not only limit Cpanel access but
DB access as well I mean which table could possibly change in the database that a DB access would be required? I don't think so bro we can run a quick search
or get advice here on BHW on restrictions etc. but I've seen the code man I'm telling you the database is the only thing you should worry about for now.

+ You can go through folders later and check what's been modded in case you're really concerned
But I'm telling you bro there's no way such a reputable dev with play with somebody else's bread and even worse, inject malicious codes I mean this ain't no
indusrabbit modded panel we're talking about with tons of ioncube encrypted code on JS, controllers etc. that's a pretty clean and solid Codeigniter framework

Let us know what's up with the code bro,
Best of luck man I feel you on this one
 
I know exactly what you’re talking about bro what a great refresher.
I'm guessing the problem didn’t resolve yet. If freelancers are not an option (and I 100% understand why)
we can go further and mess with the code a little (I'm checking it right now)


* Since I'm just like you, I had trust issues (+curiosity etc.) and these things teach us getting out of the comfort zone
we can experiment but it ain't my business so we'll try something really basic since it's Codeigniter (PHP)
I've never went deeper with it since I mostly messed with Laravel apps and only modded SmartPanel's design
but after a few minutes of learning the environment, I see the whole picture so we'll aim straight at what the cronjob command is executing.

go here:
Code:
public_html/app/modules/api_provider/controllers
you will see 'api_provider.php'
now check if there's anything suspicious like 'last modded' date and check code length (1319 lines in Ver. 3.2)
I've seen line '939', '1038', and some lines at the start of the code that handles order status

you can only try 2 things now since only you should have access to the code in this case.
make sure that you backup the file ('api_provider.php'), you could simply do it by double clicking it or downloading it on Cpanel
you can make a backup folder inside Cpanel but most importantly make sure you know which file is the one you had installed.

I'll make more clean to your convenience;

1. Head into public_html -> app -> modules ->api_provider -> controllers
2. Backup your 'api_provider' file just in case
3. Go to your PC, extract the installation .rar you originally downloaded from CC (or just extract/open the same 'api_provider' file)
4. Open the clean 'api_provider' file (I use Atom but you can use any text editor you like)
5. Copy the whole code (Ctrl+A -> Ctrl+C) and paste it inside the same 'api_provider' file in your host
6. Hit 'Save changes'

If it does save, the code have been messed with for sure no matter the 'last modified' date.
Just give it a moment and check in a few minutes if the order status has been fixed.
(You can always hit 'Undo' and save again or just take the code from your backup)

*we didn't mod any CSS and such so it makes little to no sense, but if you use Cloudflare make sure you're in 'Development Mode' just in case.

I feel like it might be useless and your host has something to do with it but there's always a way man I'm telling you. ALWAYS.
PHP version got nothing to do with it. Code is on point. Cron is ok. You're good to go man check your resources cause last time I've seen such amount of orders
(the man provides his own services to some major panels) migration to a hosting 'like mine' fixed it all so it is a poor hosting performance issue
leading to multiple issues for sure but let's be sure first cause I'm telling you man I had the exact same issue a few days ago and something have triggered it
to work fine or it went good on its own.

Maybe try something random to trigger it like syncing your services? such order volume might lead to poor performance and command execution as well
let us know bro and check your logs as well.




LAST RESORT: I personally got designs jacked, a good dude I know got his whole webserver and a few authority domains hosted that got jacked but I assume Tuyen
ain't this type of man I mean what could the man possibly trip on to ruin such a good rep on himself? And yeah me and a few devs have experienced email exports etc.
I feel your paranoia man I know a dude running a successful panel that managed to get jacked for a few monthly 4 figure+ clients via email I mean the horror stories go on

Your clients' security really should be your priority starting with personal info as well I totally feel you but I'm damn sure you can not only limit Cpanel access but
DB access as well I mean which table could possibly change in the database that a DB access would be required? I don't think so bro we can run a quick search
or get advice here on BHW on restrictions etc. but I've seen the code man I'm telling you the database is the only thing you should worry about for now.

+ You can go through folders later and check what's been modded in case you're really concerned
But I'm telling you bro there's no way such a reputable dev with play with somebody else's bread and even worse, inject malicious codes I mean this ain't no
indusrabbit modded panel we're talking about with tons of ioncube encrypted code on JS, controllers etc. that's a pretty clean and solid Codeigniter framework

Let us know what's up with the code bro,
Best of luck man I feel you on this one
First of all, i have to thank you for taking the time to help me.
I really appriciate it, somehow i feel like we was once in the same boat in our situations.


I checked, last time the orders was running and had no issue with status was (2020-03-16)
I checked also last time the "api_provider.php" was updated was (2020-03-17) after that everything got screwed.
I have version 3.2, i did the update after this issue and was hoping it to get resolved honestly.
Nothing happend, you seem like a wonderful person.
 
To be honest, Tuyen don’t care about this issue.
I did offer him $100 to help me resolve the issue.
He wants access to the hosting files, where all the valuble information is. Privacy for my clients.
I know exactly what you’re talking about bro
CC does have some problems with the devs but it’s an unprofessional minority.

And Im guessing the problem didn’t resolve yet.
First of all, i have to thank you for taking the time to help me.
I really appriciate it, somehow i feel like we was once in the same boat in our situations.


I checked, last time the orders was running and had no issue with status was (2020-03-16)
I checked also last time the "api_provider.php" was updated was (2020-03-17) after that everything got screwed.
I have version 3.2, i did the update after this issue and was hoping it to get resolved honestly.
Nothing happend, you seem like a wonderful person.
I truly appreciate the kind words! I'm pretty far from perfect but I'm getting there bro I debatably bad habit of getting stuck on unsolved things as well so I'll try my best to help you here

Try this and tell me if anything is happening after this
Copy this: http://yourdomain.com/api_provider/cron/status

* I did a fresh installation and tested an order (Completed), look at the response below




I could quote it but i want you to actually see what happens once you paste and go
that's a good and correct response, Cron job is confirmed to work as i've tested before and manually went
Try it and see if you get any response (I'll check if there's something missing in the code as well) and check your panel after that

*CHECK WHERE YOU'RE PULLING FROM!

SmartPanel is API v1 and the extended version supports API's v1, v2.. perfectpanel/indus/yoyo etc. <-- THIS MIGHT BE THE ISSUE AS WELL. MAYBE SOMETHING HAVE CHANGED ON PROVIDER SIDE
I'll check soon where we can manually configure the API parameters just in case (for status fetching)
so you could manually change the parameters if there's some type of conflict

If you have some balance somewhere else try adding a service from there and checking an order
if it's the same bs, it's hosting/cron related for sure which we can get to it and recheck cronjob log
you could try a service from the provider the script comes with you gotta know what i'm talking about (It's HQ... API v1 Supported for pulling descriptions as well)
it's the "ultimate test" (and some services are fire as well)

I'll check everything out once I'll come back home

best of luck man i truly feeling you on this one once again.






I
 
I know exactly what you’re talking about bro
CC does have some problems with the devs but it’s an unprofessional minority.

And Im guessing the problem didn’t resolve yet.

I truly appreciate the kind words! I'm pretty far from perfect but I'm getting there bro I debatably bad habit of getting stuck on unsolved things as well so I'll try my best to help you here

Try this and tell me if anything is happening after this
Copy this: http://yourdomain.com/api_provider/cron/status

* I did a fresh installation and tested an order (Completed), look at the response below




I could quote it but i want you to actually see what happens once you paste and go
that's a good and correct response, Cron job is confirmed to work as i've tested before and manually went
Try it and see if you get any response (I'll check if there's something missing in the code as well) and check your panel after that

*CHECK WHERE YOU'RE PULLING FROM!

SmartPanel is API v1 and the extended version supports API's v1, v2.. perfectpanel/indus/yoyo etc. <-- THIS MIGHT BE THE ISSUE AS WELL. MAYBE SOMETHING HAVE CHANGED ON PROVIDER SIDE
I'll check soon where we can manually configure the API parameters just in case (for status fetching)
so you could manually change the parameters if there's some type of conflict

If you have some balance somewhere else try adding a service from there and checking an order
if it's the same bs, it's hosting/cron related for sure which we can get to it and recheck cronjob log
you could try a service from the provider the script comes with you gotta know what i'm talking about (It's HQ... API v1 Supported for pulling descriptions as well)
it's the "ultimate test" (and some services are fire as well)

I'll check everything out once I'll come back home

best of luck man i truly feeling you on this one once again.






I
Man, i owe you so much respect.
I have resolved the issue.
I had over 50k orders total on my website.
I went in stablehost and deleted ALL orders.
This helped all the orders process without issue and complete parital and alot more.

IM so happy that its resolved now, i do hope this might help you if it happends with u.
 
Finally.

Congrats bro! the panel can finally breathe good solution though I’d usually handle it from the DB thanks for sharing the steps that resolved it for you mannn..

I appreciate it man and anytime bro
best of success,

God bless and take care!
 
Finally.

Congrats bro! the panel can finally breathe good solution though I’d usually handle it from the DB thanks for sharing the steps that resolved it for you mannn..

I appreciate it man and anytime bro
best of success,

God bless and take care!
Yes, after so many months and alot of pending orders and manual work to resolve and keeping this togheter.
I can finally feel the weight of my shoulder.

This issue can be resolved in the hosting, by removing all the current orders that has been made in files.
 
Back
Top