1. Roddney Colman
  2. Valentina Reports ADK
  3. Wednesday, March 10 2021, 09:03 PM
  4.  Subscribe via email
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
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
Hello Roddney,

Did you copy the Valentina plugin to the plugins folder of Xojo?
Did you restart Xojo after it?
Comment
There are no comments made yet.
Roddney Colman Accepted Answer
Valentina_SetDebugLevel...
PARAM: inLevel = 3
return

that is write in the v4rb_log
Comment
There are no comments made yet.
Roddney Colman Accepted Answer
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 [~]#
Comment
There are no comments made yet.
Roddney Colman Accepted Answer
tks Sergey we will try this i really apreciated your help and back with news about that
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
Sergey Pashkov Accepted Answer
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
Attachments (1)
References
  1. http://valentina-db.com/download/prev_releases/10.4.22/
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 5
Sergey Pashkov Accepted Answer
Looks correct.
Xojo CGI script doesn't show an actual error.
Maybe you can try to compile as a standalone app and run it?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 6
Roddney Colman Accepted Answer
this is the result
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 7
Sergey Pashkov Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 8
Roddney Colman Accepted Answer
i use Valentina 10 i compile for linux 64 bit with xojo
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 9
Roddney Colman Accepted Answer
i try both make a simbolic link and coment debug
Attachments (2)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 10
Sergey Pashkov Accepted Answer
What if you comment the line with debug level and try again?
Does it change anything?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 11
Roddney Colman Accepted Answer
that is files in the directory
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 12
Sergey Pashkov Accepted Answer
Just list the files in the libraries folder with ls
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 13
Roddney Colman Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 14
Sergey Pashkov Accepted Answer
"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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 15
Roddney Colman Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 16
Roddney Colman Accepted Answer
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
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 17
Sergey Pashkov Accepted Answer
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 18
  • Page :
  • 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