1. Roddney Colman
  2. Valentina Reports ADK
  3. 水, 3月 10 2021, 09:03 PM
  4.  メールで購読
Error deploying xojo app with valentina report 10
i used valentina report in xojo 2018r3 in windows work perfecly
now i deploy in vps linux centos i compile for linux in cgi mode
if y run the app without valentina report work perfectly but if y try to use valentina reports in the same aplicaction crash error 500 server apear
some idea how to deploy xojo cgi app with valentina report
tks very much
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
tks for reply sergey the problem is when app is start

root@vps [~]# tail /usr/local/apache/logs/error_log
Can't use an undefined value as a symbol reference at gestock.cgi line 118.
[Sat Mar 13 15:37:33.176776 2021] [cgid:error] [pid 664:tid 47917918631680] [client 181.94.230.200:41222] End of script output before headers: gestock.cgi, referer: http://www.novasof.com/cgi-bin/gestock/gestock.cgi
Can't use an undefined value as a symbol reference at gestock.cgi line 118.
[Sat Mar 13 15:37:33.401114 2021] [cgid:error] [pid 662:tid 47917927036672] [client 181.94.230.200:48535] End of script output before headers: gestock.cgi, referer: http://www.novasof.com/cgi-bin/gestock/gestock.cgi
Can't use an undefined value as a symbol reference at gestock.cgi line 118.
[Sat Mar 13 17:52:49.554949 2021] [cgid:error] [pid 664:tid 47917937542912] [client 181.94.230.200:47423] End of script output before headers: gestock.cgi
Can't use an undefined value as a symbol reference at gestock.cgi line 118.
[Sat Mar 13 17:52:52.398310 2021] [cgid:error] [pid 662:tid 47917899720448] [client 181.94.230.200:54624] End of script output before headers: gestock.cgi
Can't use an undefined value as a symbol reference at gestock.cgi line 118.
[Sat Mar 13 17:52:56.754918 2021] [cgid:error] [pid 665:tid 47917941745408] [client 181.94.230.200:27202] End of script output before headers: gestock.cgi

in the picture you can see the files that i put for deploy in linux centos 7
添付ファイル
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
in the xojo even open application i have

Valentina.InitReports("","myseriakey","";)
Valentina.DebugLevel = EVDebugLevel.kLogParams

if i coment these 2 line work but cant open reports
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
"vresources" folder should be in the same folder with the main executable (one level higher than now).

Also, do you have shell access to make sure that the symbolic links point to correct targets? E.g:
libvclient_release_x64.so -> libvclient_release_x64.so.10416
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
tks sergey i moved the folder to the main executable or cgi in this case folder
the second
Also, do you have shell access to make sure that the symbolic links point to correct targets? E.g:
libvclient_release_x64.so -> libvclient_release_x64.so.10416
how i cand do that in the shell comand
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Just list the files in the libraries folder with ls
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
that is files in the directory
添付ファイル
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
What if you comment the line with debug level and try again?
Does it change anything?
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
i try both make a simbolic link and coment debug
添付ファイル
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
i use Valentina 10 i compile for linux 64 bit with xojo
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
It is necessary to remove the files before creating a symlink with the same name, but it should not be a problem.

Let's check if dependencies are found.

Execute it in the libraries directory on Linux:
ldd v4rb_x64_release.so
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
this is the result
添付ファイル
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Looks correct.
Xojo CGI script doesn't show an actual error.
Maybe you can try to compile as a standalone app and run it?
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Roddney,

I can't check CGI as it is no longer supported by Xojo 2020, but Stand Alone Web App deployment worked for me on CentOS 8, with versions 10.4.10 and 10.4.22 (10.4.16 is not available for download).

So I downloaded V4RB 10.4.22 package and the appropriate Linux vcomponents_64.zip archive from the prev_releases folder, installed and build the application.

I uploaded 2 archives to the Linux host - application MyApplication.zip and vcomponents_64.zip.

Connected via SSH and switched to the folder with these archives.

Unzipped them:
unzip MyApplication.zip
unzip vcomponents_64.zip


Moved vresources and libraries to the appropriate places:
mv vcomponents_64/lib* MyApplication/MyApplication\ Libs
mv vcomponents_64/vresources MyApplication/


mv command saves symbolic links, you can check the structure with tree command:
tree MyApplication


Start the application:
MyApplication/MyApplication
添付ファイル
参照
  1. http://valentina-db.com/download/prev_releases/10.4.22/
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
tks Sergey we will try this i really apreciated your help and back with news about that
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
hi Sergey well i need to run cgi mode i still with problem
i unistall all valentina components and studio and download the 10.4.22 version for all
in my xojo that is 2018 r3 run perfectly i build and up the files with the correct component 10.4.22 to the server
but the app still loking for 10.4.16 version you can se the log file

root@vps [~]# tail /usr/local/apache/logs/error_log
Can't use an undefined value as a symbol reference at gestock.cgi line 118.
[Thu Apr 01 23:20:19.439132 2021] [cgid:error] [pid 25032:tid 47294971582208] [client 181.94.230.200:15669] End of script output before headers: gestock.cgi
Failed to load plugin v4rb_x64_release.so:
libvshared_release_x64.so.10416: cannot open shared object file: No such file or directory
Can't use an undefined value as a symbol reference at gestock.cgi line 118.
[Thu Apr 01 23:20:21.833295 2021] [cgid:error] [pid 25033:tid 47294954772224] [client 181.94.230.200:7440] End of script output before headers: gestock.cgi
Can't use an undefined value as a symbol reference at gestock.cgi line 118.
[Thu Apr 01 23:51:12.747233 2021] [cgid:error] [pid 25036:tid 47294961075968] [client 181.94.230.200:27645] End of script output before headers: gestock.cgiCan't use an undefined value as a symbol reference at gestock.cgi line 118.
[Thu Apr 01 23:51:16.470323 2021] [cgid:error] [pid 25032:tid 47295043213056] [client 181.94.230.200:51606] End of script output before headers: gestock.cgi
root@vps [~]#
コメント
There are no comments made yet.
Roddney Colman 承諾済みの回答
Valentina_SetDebugLevel...
PARAM: inLevel = 3
return

that is write in the v4rb_log
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
Hello Roddney,

Did you copy the Valentina plugin to the plugins folder of Xojo?
Did you restart Xojo after it?
コメント
There are no comments made yet.
  • ページ :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories