Extension upload fail

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

adpist
Posts: 4
Joined: 27 Jul 2022, 08:15

Extension upload fail

Postby adpist » 27 Jul 2022, 08:21

Hello,

I've been trying to create a first extension which seems to be working fine on my local SFS install.

When i try to upload the jar file, the name of the extension is red, i have a "!" next to the extension file and next to the "Done" text. I can only clear and close the upload popup. The extension file isn't added and i can't link it to my zones/rooms.

I assume there is an error but i don't have any feedback on the web interface.

I'm using win 11 with chrome.

Can anyone help me with that issue ?

Thanks !
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Extension upload fail

Postby Bax » 27 Jul 2022, 10:29

Did you check the server logs? Any error reported there when you try to upload the Extension?
Also, can you please check the JavaScript console of the browser, just in case something is reported there?
Paolo Bax
The SmartFoxServer Team
adpist
Posts: 4
Joined: 27 Jul 2022, 08:15

Re: Extension upload fail

Postby adpist » 27 Jul 2022, 12:32

i do have an error in the javascript console when i try to upload it :

Code: Select all

[ ADMINTOOL | INFO ] Connection to XXX established
shell-controller.js:419 [ ADMINTOOL | INFO ] Successful login to XXX performed
shell-controller.js:410 [ ADMINTOOL | INFO ] An updated version of SmartFoxServer 2X is available for download
kendo.all.min.js:63           
POST XXX/BlueBox/SFS2XFileUpload?sessHashId=9b1243a9d85526756871f68a2935cd43 500 (Internal Server Error)
postFormData @ kendo.all.min.js:63
performUpload @ kendo.all.min.js:63
(anonymous) @ kendo.all.min.js:63
each @ jquery-3.3.1.min.js:2
onSelect @ kendo.all.min.js:63
_onInputChange @ kendo.all.min.js:62
i @ jquery-3.3.1.min.js:2
dispatch @ jquery-3.3.1.min.js:2
y.handle @ jquery-3.3.1.min.js:2
kendo.all.min.js:26 Server response: <!doctype html><html lang="fr"><head><title>État HTTP 500 – Erreur interne du serveur</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>État HTTP 500 – Erreur interne du serveur</h1><hr class="line" /><p><b>Type</b> Rapport d'exception</p><p><b>message</b> Upload Refused from: 172.70.246.218 Missing valid session token.</p><p><b>description</b> Le serveur a rencontré une erreur interne qui l'a empêché de satisfaire la requête.</p><p><b>exception</b></p><pre>
javax.servlet.ServletException: Upload Refused from: 172.70.246.218 Missing valid session token.

   sfs2x.ws.tomcat.upload.HttpUploadManager.validateSession(HttpUploadManager.java:229)
   sfs2x.ws.tomcat.upload.HttpUploadManager.doPost(HttpUploadManager.java:78)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
</pre><p><b>note</b> La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de ce serveur.</p><hr class="line" /></body></html>


Not sure why i'm getting this :
javax.servlet.ServletException: Upload Refused from: 172.70.246.218 Missing valid session token.

Any idea ?
Thanks for your help :)
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Extension upload fail

Postby Bax » 27 Jul 2022, 13:43

What version of SmartFoxServer are you using?
What AdminTool version?

Also, is the error occurring every time you try to upload the Extension, or sometimes only?
Paolo Bax
The SmartFoxServer Team
adpist
Posts: 4
Joined: 27 Jul 2022, 08:15

Re: Extension upload fail

Postby adpist » 27 Jul 2022, 14:15

Right now the repro rate is 100% :)

remote administration v3.2.7
Server version: 2.18.2
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Extension upload fail

Postby Bax » 28 Jul 2022, 07:35

Would you be able to provide us a temporary access to your AdminTool?
We would like to test this behavior from our computers.
If yes, please contact us by email at info@smart... referencing this post.
Thank you.
Paolo Bax
The SmartFoxServer Team
adpist
Posts: 4
Joined: 27 Jul 2022, 08:15

Re: Extension upload fail

Postby adpist » 29 Jul 2022, 07:57

Hello,

I've sent a mail with requested access infos.

Thanks for your help.
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Extension upload fail

Postby Bax » 29 Jul 2022, 11:06

adpist wrote:Hello,
I've sent a mail with requested access infos.
Thanks for your help.

Yes, we also replied, please check your mailbox :-)
We can continue the conversation by email, and then post here once we solve your issue.
Paolo Bax
The SmartFoxServer Team
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Extension upload fail

Postby Bax » 02 Aug 2022, 09:06

As a recap of the issue, it turned out the server was hosted in our Overcast cloud service, but behind an external, third party proxy server not under our control.
Activating the “Enable X-Forward-For” option in the AdminTool > Server Settings > Web Server tab fixed the issue.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 36 guests