Internal Server Error (500)

I have everything setup and ready to go and when I get ready to start my test print no matter what I do or what .stl file I use I get an error as in the title along with "RepetierServerConnector.ServerPrint.PreviewCallBack".
The full error reads "httpWebRequest,EndGetResponse, and RepetierServerConnector.ServerPrint.PreviewCallBack"

How can I fix this, what is the exact error?

Thank you

Comments

  • Posts: 0
    This is an error that occurs when host queries the gcode preview image.

    Can you see the images in the web frontend?

    If you see the images what are the exact steps to reproduce it? Did you slice and upload for printing or select existing gcode on server for printing ...
  • Posts: 18
    Sliced and upload for printing, it is when I click the upload button from the server tab that I get the error.
    When I try to slice and print straight across there is no print button highlighted.

    Thank You.
  • Posts: 18
    I also seem to have a disconnected setting in the frontend  page, how can I fix this?

    I do apologize this is all new to me.

    Thank you.
  • Posts: 18
    Just tried again in frontend and no I do not see the image.
  • Posts: 18
    Okay let me just go this route maybe it'll help better.

    I am using a TRONXY P802MA printer, the printers firmware is Marlin, it has a 220mm x 220mm x 240mm print area.
    I set it up in the server frontend settings with that information.
    Have I set it up wrong? Should I set the firmware as Repetier Firmware instead?
    The frontend states that my printer is not connected and I do not see the images in frontend.

    Thank you.
  • Posts: 0
    Marlin only works with marlin firmware. I do not think it is the configuration of Printer that is the problem here.

    If you select the printer in frontend and have uploaded gcodes and select icon view instead of tabs you should see images for the gcode files or a info image. If that does not happen something is wrong. In that case check the server.log in server data directory for your os. It might contains some error messages hinting why you get no images.

    On what device does the server run?
  • Posts: 18
    It is being run on a Dell Inspiron 15 with Windows 7.
    I will look in to that.

    Thank you.
  • Posts: 18
    Okay this is the server log:

    2017-04-06 23:10:53: Closing websocket for missing ping
    2017-04-06 23:10:53: Job created: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\models/00000003_.u
    2017-04-06 23:10:53: Creating new model caused error Assertion violation
    2017-04-06 23:10:54: Job created: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\models/00000004_CDM v2.12.26 WHQL Certified.zip.u
    2017-04-06 23:10:54: finish job C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\models/00000004_CDM v2.12.26 WHQL Certified.zip.u
    2017-04-06 23:10:54: Uploaded  size:1675744
    2017-04-06 23:10:54: Updating info for C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\models/00000004_CDM v2.12.26 WHQL Certified.zip.g printer Pain_in_the_ass
    2017-04-06 23:10:54: LUA job rendering.render#{"id":4,"image":"C:\\ProgramData\\Repetier-Server\\printer\\Pain_in_the_ass\\models/00000004_CDM v2.12.26 WHQL Certified.zip_l.png","layer":"C:\\ProgramData\\Repetier-Server\\printer\\Pain_in_the_ass\\models/00000004_CDM v2.12.26 WHQL Certified.zip.layer","list":"models","slug":"Pain_in_the_ass"}
    2017-04-06 23:10:56: Reading configuration file ...
    Build 2
    Input file: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\models/00000004_CDM v2.12.26 WHQL Certified.zip.layer
    Rendering shadows ...0.03 seconds.
    Rendering gcode ...0 seconds.
    Number of end triangles: 0
    Number of normal triangles: 0
    Rendering background ...
    Time for raytracing: 1.0634 seconds.
    Computation time: 1.5715 seconds

    2017-04-06 23:11:47: Handling action 'setFanSpeed' caused error get_value< integer > called on null Value
    2017-04-06 23:30:30: Handling action 'setFanSpeed' caused error get_value< integer > called on null Value
    2017-04-07 01:18:01: Shutting down web server.
    2017-04-07 01:18:01: Prevent sleep thread stopped.
    2017-04-07 01:18:01: Closing server
    2017-04-07 01:18:01: Stopping work dispatcher.
    2017-04-07 01:18:02: Work dispatcher thread stopped.
    2017-04-07 01:18:02: Waiting for all threads to finish ...
    2017-04-07 01:18:02: Worker threads finsihed.
    2017-04-07 01:18:02: Stopping printer threads.
    2017-04-07 01:18:02: Printer thread for Pain_in_the_ass stopped
    2017-04-07 01:18:02: Closing user database.
    2017-04-07 01:18:02: Server is now down.
    2017-04-07 11:00:36: Start logging...
    2017-04-07 11:00:38: Webdirectory: C:\Program Files\Repetier-Server\www\
    2017-04-07 11:00:38: Storage directory: C:\ProgramData\Repetier-Server\
    2017-04-07 11:00:38: Configuration file: C:\Program Files\Repetier-Server\bin\RepetierServer.xml
    2017-04-07 11:00:38: Directory for temporary files: C:\Windows\Temp\
    2017-04-07 11:00:38: Reading firmware data ...
    2017-04-07 11:00:38: Starting Network ...
    2017-04-07 11:00:38: Active features:0
    2017-04-07 11:00:38: Reading printer configurations ...
    2017-04-07 11:00:38: Reading printer config C:\ProgramData\Repetier-Server\configs\Pain_in_the_ass.xml
    2017-04-07 11:00:38: Starting printjob manager thread for Pain_in_the_ass
    2017-04-07 11:00:38: Starting printer threads ...
    2017-04-07 11:00:38: Starting printer thread for Pain_in_the_ass
    2017-04-07 11:00:38: Starting work dispatcher subsystem ...
    2017-04-07 11:00:38: Starting user database ...
    2017-04-07 11:00:38: Initalizing LUA ...
    2017-04-07 11:00:38: Register LUA cloud services
    2017-04-07 11:00:38: add Repetier-Renderer
    2017-04-07 11:00:38: LUA initalization finished.
    2017-04-07 11:00:38: Starting web server ... 
    2017-04-07 11:00:38: Work dispatcher thread started.
    2017-04-07 11:00:38: Prevent sleep thread started.
    2017-04-07 11:00:38: Webserver started.
    2017-04-07 11:00:43: Register LUA cloud services
    2017-04-07 11:00:43: add Repetier-Renderer
    2017-04-07 11:00:44: LUA initalization finished.
    2017-04-07 13:19:22: Shutting down web server.
    2017-04-07 13:19:23: Prevent sleep thread stopped.
    2017-04-07 13:19:23: Closing server
    2017-04-07 13:19:23: Stopping work dispatcher.
    2017-04-07 13:19:23: Work dispatcher thread stopped.
    2017-04-07 13:19:23: Waiting for all threads to finish ...
    2017-04-07 13:19:23: Worker threads finsihed.
    2017-04-07 13:19:23: Stopping printer threads.
    2017-04-07 13:19:23: Printer thread for Pain_in_the_ass stopped
    2017-04-07 13:19:23: Closing user database.
    2017-04-07 13:19:23: Server is now down.
    2017-04-07 13:21:07: Start logging...
    2017-04-07 13:21:08: Webdirectory: C:\Program Files\Repetier-Server\www\
    2017-04-07 13:21:08: Storage directory: C:\ProgramData\Repetier-Server\
    2017-04-07 13:21:08: Configuration file: C:\Program Files\Repetier-Server\bin\RepetierServer.xml
    2017-04-07 13:21:08: Directory for temporary files: C:\Windows\Temp\
    2017-04-07 13:21:08: Reading firmware data ...
    2017-04-07 13:21:08: Starting Network ...
    2017-04-07 13:21:08: Active features:0
    2017-04-07 13:21:08: Reading printer configurations ...
    2017-04-07 13:21:08: Reading printer config C:\ProgramData\Repetier-Server\configs\Pain_in_the_ass.xml
    2017-04-07 13:21:08: Starting printjob manager thread for Pain_in_the_ass
    2017-04-07 13:21:08: Starting printer threads ...
    2017-04-07 13:21:08: Starting printer thread for Pain_in_the_ass
    2017-04-07 13:21:08: Starting work dispatcher subsystem ...
    2017-04-07 13:21:08: Starting user database ...
    2017-04-07 13:21:08: Initalizing LUA ...
    2017-04-07 13:21:08: Register LUA cloud services
    2017-04-07 13:21:08: add Repetier-Renderer
    2017-04-07 13:21:08: LUA initalization finished.
    2017-04-07 13:21:08: Starting web server ... 
    2017-04-07 13:21:08: Work dispatcher thread started.
    2017-04-07 13:21:08: Prevent sleep thread started.
    2017-04-07 13:21:08: Webserver started.
    2017-04-07 13:21:10: Register LUA cloud services
    2017-04-07 13:21:10: add Repetier-Renderer
    2017-04-07 13:21:10: LUA initalization finished.
    2017-04-07 13:30:17: Closing websocket for missing ping
    2017-04-07 13:30:18: Job created: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000001_.u
    2017-04-07 13:30:18: Creating new job caused error Assertion violation
    2017-04-07 13:30:18: Job created: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000002_fortress_final.stl.u
    2017-04-07 13:30:18: finish job C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000002_fortress_final.stl.u
    2017-04-07 13:30:18: Updating info for C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000002_fortress_final.stl.g printer Pain_in_the_ass
    2017-04-07 13:30:19: LUA job rendering.render#{"id":2,"image":"C:\\ProgramData\\Repetier-Server\\printer\\Pain_in_the_ass\\jobs/00000002_fortress_final.stl_l.png","layer":"C:\\ProgramData\\Repetier-Server\\printer\\Pain_in_the_ass\\jobs/00000002_fortress_final.stl.layer","list":"jobs","slug":"Pain_in_the_ass"}
    2017-04-07 13:30:21: Reading configuration file ...
    Build 2
    Input file: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000002_fortress_final.stl.layer
    Rendering shadows ...0.0312 seconds.
    Rendering gcode ...0 seconds.
    Number of end triangles: 0
    Number of normal triangles: 0
    Rendering background ...
    Time for raytracing: 1.343 seconds.
    Computation time: 2.0138 seconds

    2017-04-07 13:31:21: Closing websocket for missing ping
    2017-04-07 13:31:22: Job created: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000003_.u
    2017-04-07 13:31:22: Creating new job caused error Assertion violation
    2017-04-07 13:31:22: Job created: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000004_vanhellsing_454_caliper_pistol_a.stl.u
    2017-04-07 13:31:22: finish job C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000004_vanhellsing_454_caliper_pistol_a.stl.u
    2017-04-07 13:31:22: Updating info for C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000004_vanhellsing_454_caliper_pistol_a.stl.g printer Pain_in_the_ass
    2017-04-07 13:31:22: LUA job rendering.render#{"id":4,"image":"C:\\ProgramData\\Repetier-Server\\printer\\Pain_in_the_ass\\jobs/00000004_vanhellsing_454_caliper_pistol_a.stl_l.png","layer":"C:\\ProgramData\\Repetier-Server\\printer\\Pain_in_the_ass\\jobs/00000004_vanhellsing_454_caliper_pistol_a.stl.layer","list":"jobs","slug":"Pain_in_the_ass"}
    2017-04-07 13:31:24: Reading configuration file ...
    Build 2
    Input file: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000004_vanhellsing_454_caliper_pistol_a.stl.layer
    Rendering shadows ...0.0312 seconds.
    Rendering gcode ...0 seconds.
    Number of end triangles: 0
    Number of normal triangles: 0
    Rendering background ...
    Time for raytracing: 1.2263 seconds.
    Computation time: 1.6787 seconds

    2017-04-07 13:32:32: Closing websocket for missing ping
    2017-04-07 13:32:32: Job created: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000005_.u
    2017-04-07 13:32:32: Creating new job caused error Assertion violation
    2017-04-07 13:32:35: Job created: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000006_revanbottomleft.stl.u
    2017-04-07 13:32:35: finish job C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000006_revanbottomleft.stl.u
    2017-04-07 13:32:35: Updating info for C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000006_revanbottomleft.stl.g printer Pain_in_the_ass
    2017-04-07 13:32:36: LUA job rendering.render#{"id":6,"image":"C:\\ProgramData\\Repetier-Server\\printer\\Pain_in_the_ass\\jobs/00000006_revanbottomleft.stl_l.png","layer":"C:\\ProgramData\\Repetier-Server\\printer\\Pain_in_the_ass\\jobs/00000006_revanbottomleft.stl.layer","list":"jobs","slug":"Pain_in_the_ass"}
    2017-04-07 13:32:38: Reading configuration file ...
    Build 2
    Input file: C:\ProgramData\Repetier-Server\printer\Pain_in_the_ass\jobs/00000006_revanbottomleft.stl.layer
    Rendering shadows ...0.1872 seconds.
    Rendering gcode ...0 seconds.
    Number of end triangles: 0
    Number of normal triangles: 0
    Rendering background ...
    Time for raytracing: 1.7054 seconds.
    Computation time: 2.41371 seconds

    I hope this helps, the log for the laptop log shows no errors for the communication with the printer repetier host or repetier server.

    Thank you.
  • Posts: 18
    Reading Preview Data: System.Net.WebException: The emote server returned an error: (500) Internal Server Error.
    at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
    at RepetierServerConnector.ServerPrint.PreviewCallBack (IAsync Result ar)

    Is what I get when attempting to view the item on host print view.

    Thank you.
  • Posts: 0
    The server sends gcodes and I see you uploaded some stl and windows drives zipped as gcode. This will not do any good and should show a gray image. YOu can delete these non gcode files.

    To be clear gcode is the result of slicing your models!

    These non gcode files seem also to cause further errors as they are not what is expected. Please try with gcodes and check if that works better.
  • Posts: 18
    I tried with the gcodes created after slicing and still get the Reading Preview Data: System.Net.WebException: The emote server returned an error: (500) Internal Server Error.
    at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
    at RepetierServerConnector.ServerPrint.PreviewCallBack (IAsync Result ar)" when I click the eye icon.

    Thank you.
  • Posts: 18
    I uninstalled both the host and server files and installed on older version of host and server, using the skeinforge slicer program I have no errors, but does it usually take over an hour to go through the Run Job setup?

    The item is a small ring and it has now been running for an hour an 20 minutes, the gcode is 49 layers and ends with 7319 M107 and M7319 is blank, the log is running N8775 M105 at 17:27 Mdt.

    What the hell is wrong with this?

    Thank You.
  • Posts: 0
    Skeinforge is the oldest and slowest slicer available, so please do not wonder that it is slow.

    " ends with 7319 M107 and M7319 is blank, the log is running N8775 M105 at 17:27 Mdt."
    can not imagine why a slicer should add 7319 times M107 as M107 is not used anyway. You should use slic3r or CuraEngine as slicer and avoid skeinforge.
  • Posts: 18
    Slic3r was giving me all the issues, I will try CuraEngine after the SkeinForge is complete since it only has a little more to do.

    Thank you.
  • Posts: 18
    So does it mater if I select Delta or Cartisian as the type of printer?

    I am not sure what the difference is between them let alone what my TRONXY P802MA_8 printer would be....

    Thank You.
  • Posts: 0
    Delta printers have a round bed, but that makes no difference in data being send or gcode generated.
  • Posts: 18
    Okay so now the issue is the server continues to show the printer off line, I have set the fire wall to allow the server and host through and have all the information on the ip address and port and so on identical.

    I get an image in the 3d view and a line with two dot (red and blue) on the 2d view, however the server doesn't read the printer as active/online and the host doesn't read the command to print.

    Is there anything else I can do to get closer to printing?

    Thank You.
  • Posts: 0
    Check in web frontend:
    - Printer context menu - is it activated (showing deactivate as option).
    - If activated go to configuration and make sure port, baud rate and firmware are correctly set. Then it should connect on save. firmware and port should be clear. Baud rate might be different from what you expect. Try 115200 and 250000 being th emost popular.
  • Posts: 18
    Okay so the "offline" is the one showing when I click the little monitor icon, does this mean it is online and ready to print?
    The manual for the printer says the baud rate is 115200, ports are all accurate.

    Thank you.
  • Posts: 0
    What software has a monitor icon?

    In web frontend it must be green to allow printing. Red is no connection and white is deactivated needing activation. Make that work first and then continue to host.
  • Posts: 18
    The Repetier Server has a little monitor like icon, when I click on it, it says disconnected.

    I have checked all the wiring and everything is as it should be but the server doesn't register the connection.
    I have no problem getting host to connect, just the server.
    I wish I could upload screen shots to help show what I am talking about....


    Thank You.
  • Posts: 0
    You mean the printer icon right of home? That shows offline / online and deactivated but not disconnected.

    For images google "picture upload free" for an upload service so you can reference the image here.

    Make sure to use right firmware in server. Repetier will not work with marlin for example.
  • Posts: 18
    I got it working, now it is all on the extruder not using the filament.
    Thank you very much for all your help.
Sign In or Register to comment.