PDA

View Full Version : [Issue] Cannot import json file


bunnie
09-27-2015, 07:12
I've followed the tutorial and went to install the [store] trails into my servers.
After that I went into my web panel to import the Json file, and it just freezes there. (nothing happens, it loads forever)

Any help would be appreciated.
(edit) If you guys need anything like where do I run the web panel on, feel free to ask.

Cheers,
Bunnie

Arrow768
09-27-2015, 10:00
This usually happens if the mysql server has a poor performance.

Yes, you need to tell us a bit more about your environment:
* Is the webserver and the mysql server and the gameserver running on the same host ? (If no, how are they setup)
* Are you using a freehoster for the db or the webpanel ?


You could try to split up the trail.json into multiple smaller files

bunnie
09-27-2015, 11:18
This usually happens if the mysql server has a poor performance.

Yes, you need to tell us a bit more about your environment:
* Is the webserver and the mysql server and the gameserver running on the same host ? (If no, how are they setup)
* Are you using a freehoster for the db or the webpanel ?


You could try to split up the trail.json into multiple smaller files

Yes they are all running on the same host. I don't see any performance issues (Internet is 100mbps)
I use xampp for my webserver.. I also use this to host my fast dl server
I currently have 4 game servers running at the same time (avg cpu load 30-40%) and xammp(where my fast dl server and my web panel and database is)

I don't understand your second question because I don't really understand "database"

supreeda
09-27-2015, 11:26
Yes they are all running on the same host. I don't see any performance issues (Internet is 100mbps)
I use xammp for my webserver.. I also use this to host my fast dl server
I currently have 4 game servers running at the same time (avg cpu load 30-40%) and xammp(where my fast dl server and my web panel and database is)

I don't understand your second question because I don't really understand "database"

if u can't import Json

you try instant import by Categories or Add new item ?

and Database you set it already ?

Arrow768
09-27-2015, 12:03
Yes they are all running on the same host. I don't see any performance issues (Internet is 100mbps)
I use xammp for my webserver.. I also use this to host my fast dl server
I currently have 4 game servers running at the same time (avg cpu load 30-40%) and xammp(where my fast dl server and my web panel and database is)

I don't understand your second question because I don't really understand "database"

A freehoster is a webhoster that offers his services for free.
And usually you get what you pay for.

Feel free to add me on steam and i will take a look to see what the problem might be.

bunnie
09-27-2015, 12:18
A freehoster is a webhoster that offers his services for free.
And usually you get what you pay for.

Feel free to add me on steam and i will take a look to see what the problem might be.

I have my db on my xampp which is hosted on my internet.

bunnie
09-27-2015, 12:20
if u can't import Json

you try instant import by Categories or Add new item ?

and Database you set it already ?

Yes database I have set. I typed !store in my server and it comes out.
I haven't tried import by categories or add new item. I will try it tomorrow if I have the time.

Arrow768
09-27-2015, 12:24
I have my db on my xammp which is hosted on my internet.
What is your profile link?

You should have received a pm

birdehz
10-17-2015, 02:43
i am getting this aswell. I can import equipment and titles but not trails

Arrow768
10-17-2015, 06:15
I forgot to post the solution to his problem:

TL;DR: The import worked, but it took some time. The cpu of his webserver was not able to handle the decoding of the json file in a timely manner. We moved the webserver to a different host.

Long Version:
If you import the json file, the webpanel needs to decode the json file into a useable format.
The issue with titles is, that there are so many titels and the file is huge.
So the decoding requires "a bit" of cpu power.
If the cpu is not powerfull enough, it works but it just takes some time.

You basically have two options:
* Wait for it to finish
* Use a webserver with a better cpu

birdehz
10-17-2015, 20:16
I forgot to post the solution to his problem:

TL;DR: The import worked, but it took some time. The cpu of his webserver was not able to handle the decoding of the json file in a timely manner. We moved the webserver to a different host.

Long Version:
If you import the json file, the webpanel needs to decode the json file into a useable format.
The issue with titles is, that there are so many titels and the file is huge.
So the decoding requires "a bit" of cpu power.
If the cpu is not powerfull enough, it works but it just takes some time.

You basically have two options:
* Wait for it to finish
* Use a webserver with a better cpu

How would i wait for it to finish when i just get an error screen?
thanks

Robin955
10-17-2015, 23:23
how you want us to fix it if you dont tell us the error?

thanks for making me make this comment.

Arrow768
10-18-2015, 05:50
How would i wait for it to finish when i just get an error screen?
thanks

His problem was that the import screen seems to "freeze" not that there is an error.

[..]
After that I went into my web panel to import the Json file, and it just freezes there. (nothing happens, it loads forever)[..]


If you dont tell us the error we cant help you.