GCODE Viewer not work

What is the problem?

I am a new user of the Octoprint system.
I installed the rospberry PI 1.2 from the "Rospberry PI Imager" program
octoprint opens in the browser I can move axes and print but unfortunately Gcode preview does not work. I have installed all recommended updates.
Please help what I need to do and fix it.
My slicer is Simplify code insertion:

curl -k -H "X-Api-Key: C33C797CCE6646D1B26DDE5C675D8F5E" -F "select = true" -F "print = false" -F "file = @ [output_filepath]" "http://192.168.1.104: 5000 / api / files / local "

in start scripts it does not automatically upload the file to "octoprint"

I am asking for tips and help how can I fix it ???

What did you already try to solve it?

YES

.Gcode preview and import from Simplify 3d not working.

Did running in safe mode solve the problem?

does not solve the problem

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

browser.user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36
connectivity.connection_check: 1.1.1.1:53
connectivity.connection_ok: true
connectivity.enabled: true
connectivity.online: true
connectivity.resolution_check: octoprint.org
connectivity.resolution_ok: true
env.hardware.cores: 4
env.hardware.freq: 1200
env.hardware.ram: 915722240
env.os.bits: 32
env.os.id: linux
env.os.platform: linux
env.plugins.pi_support.model: Raspberry Pi 3 Model B Rev 1.2
env.plugins.pi_support.octopi_version: 0.18.0
env.plugins.pi_support.throttle_state: 0x0
env.python.pip: 20.3.3
env.python.version: 3.7.3
env.python.virtualenv: true
octoprint.safe_mode: false
octoprint.version: 1.6.1
printer.firmware: Marlin bugfix-2.0.x (Sep 29 2021 22:09:50)
systeminfo.generator: systemapi

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
Marlin Firmware 2.09.1 ,Win10
octoprint Version 1.6.1
octoPI Version 0.18.0, running on Raspberry Pi 3 Model B Rev 1.2

please upload the systeminfo bundle zip

does the preview work if you upload the stl via the webinterface?

Previewing Gcode files from SD card does not work. I only see file names and can print them from Octoprint
octoprint-systeminfo-20211006105233.zip (50.8 KB)

You don't have a gcode preview when you print from the printers SD card because OctoPrint can't see what is inside the gcode file on the SD card in the printer.

Gcode preview only works when you have the gcode file stored within OctoPrint.

Just to add: because there's no way to get said contents from the printer as there's no such operation available in the firmware.

Thanks for the answer, everything is correct ... the Gcode preview works on local files. :)))

Please consider to mark the post that gave you the answer as the Solution.
Doing that you solve the thread and help the next guy/gal searching the same issue cause the solution is displayed prominently on the top