Open lehakatana opened 1 week ago
Hello, @lehakatana ,
1) check the content of your /apps/cadviewer/converter/converters/ax2024/linux folder. ls -l
2) check if the converter is alive: ./ax2023_L64_23_12_130 -?
3) check if the converter ax2023_L64_23_12_130 has chmod 755.
let me know your results, thanks!
Hello, @lehakatana ,
- check the content of your /apps/cadviewer/converter/converters/ax2024/linux folder. ls -l
- check if the converter is alive: ./ax2023_L64_23_12_130 -?
- check if the converter ax2023_L64_23_12_130 has chmod 755.
let me know your results, thanks!
Same issue, here is the output of the command:
Here's part of the API Conversion log:
exec return1 127
output log:
exec return1 check 127
Q1 contentresponse stream
Q2:svg_creation
Q4: $general_response{"completedAction":"svg_creation","errorCode":"E127","converter":"AutoXchange AX2020","version":"V1.00","userLabel":"fromCADViewerJS","contentLocation":"/mnt/ncdata/groupfolders/4/陈旭/4轴机械臂固定支座.DWG","contentResponse":"stream","contentStreamData":"https://cloud.ylabics.top/apps/cadviewer/converter//php//getFile_09.php?remainOnServer=1&fileTag=f1600966834&Type=svgz"}
Q5: 0 1 $json_response"{\"completedAction\":\"svg_creation\",\"errorCode\":\"E127\",\"converter\":\"AutoXchange AX2020\",\"version\":\"V1.00\",\"userLabel\":\"fromCADViewerJS\",\"contentLocation\":\"\/mnt\/ncdata\/__groupfolders\/4\/\u9648\u65ed\/4\u8f74\u673a\u68b0\u81c2\u56fa\u5b9a\u652f\u5ea7.DWG\",\"contentResponse\":\"stream\",\"contentStreamData\":\"https:\/\/cloud.ylabics.top\/apps\/cadviewer\/converter\/\/php\/\/getFile_09.php?remainOnServer=1&fileTag=f1600966834&Type=svgz\"}"
$json_response = "{\"completedAction\":\"svg_creation\",\"errorCode\":\"E127\",\"converter\":\"AutoXchange AX2020\",\"version\":\"V1.00\",\"userLabel\":\"fromCADViewerJS\",\"contentLocation\":\"\/mnt\/ncdata\/groupfolders\/4\/\u9648\u65ed\/4\u8f74\u673a\u68b0\u81c2\u56fa\u5b9a\u652f\u5ea7.DWG\",\"contentResponse\":\"stream\",\"contentStreamData\":\"https:\/\/cloud.ylabics.top\/apps\/cadviewer\/converter\/\/php\/\/getFile_09.php?remainOnServer=1&fileTag=f1600966834&Type=svgz\"}"
$post_request_flag=1 $json_response only
LAST BEFORE CALLBACK
FYI, Nextcloud AIO create a Nextcloud container of Alpine Linux, maybe that's the reason why the converter cannot be executed.
Yes @limimiking , Alpine Linux is notorius difficult as a number of libraries are stripped out. Can you try run a sample conversion from the folder ./ax2023_L64_23_12_130 -i=test.dwg -o=test01.svg -f=svg -model -trace , and see if that gives a result. If it cannot run -? then it probably will not run. Can you change to a standard Ubunu container?
@CADViewer not possible to change the container because it's generated by NextCloud AIO master container. Even if I somehow change it, it will be redeployed after an auto upgrade. It means if you want to use NextCloud AIO, you have to use Alphine Linux for now. I'll try to compile this package on Alphine Linux but I'm not sure it will work, or I hope you can compile a package for Alpine Linux as NextCloud AIO is very convenient for operation and maintenance.
@CADViewer I can only compile the nodejs package. The backend converter still doesn't work. NextCloud official docker images are switching to Alpine Linux now.
Fresh installation AIO nextcloud, i tried install Cadviewer via store and from git, result same.
Can't find anything about error E127
My AIO behind haproxy, Debug said that i have wrong .htaccess, but I did everything according to the guide. content after ### in .htaccess:
DO NOT CHANGE ANYTHING ABOVE THIS LINE
ErrorDocument 403 /index.php/error/403 ErrorDocument 404 /index.php/error/404
i pinned log and full htaccess file call-Api_Conversion_log .txt htaccess.txt
I have classic nextcloud, all works fine after installation and set permissions. But in AIO have problems, help pls!
When i pressed flush cache get error:
i found command line in Api_conversation_log: $command_line: "/var/www/html/apps/cadviewer/converter//converters/ax2024/linux//ax2023_L64_23_12_130" -i="/var/www/html/apps/cadviewer/converter//converters/files/f1483319627.dwg" -o="/var/www/html/apps/cadviewer/converter//converters/files/f1483319627.svgz" -f="svgz" -model -extents -fpath="/var/www/html/apps/cadviewer/converter//converters/ax2024/linux/fonts/" -lpath="/var/www/html/apps/cadviewer/converter//converters/ax2024/linux/" -xpath="/mnt/ncdata/abystrov/files/"
try run it mannualy with bash or php, get errors I've tried the full command, but the result is the same.