1. ronaldo florendo jr
  2. Valentina Reports ADK
  3. Freitag, Juli 14 2017, 02:40 PM
  4.  Abonnieren via E-Mail
Hi

Was in the process of deploying my XOJO WEB APP on a linux hosted server.

After I uploaded my xojo app, I encountered ERROR 500. When I check the logs, I saw this which I don't understand.
Please help me how to deal with this error.

[Thu Jul 13 22:59:32 2017] [error] [client 111.125.70.130] Failed to load plugin v4rb_release.so:
[Thu Jul 13 22:59:32 2017] [error] [client 111.125.70.130] libvshared_release_x86.so.713: cannot open shared object file: No such file or directory
[Thu Jul 13 22:59:32 2017] [error] [client 111.125.70.130] Can't use an undefined value as a symbol reference at mlm.cgi line 118.
[Thu Jul 13 22:59:32 2017] [error] [client 111.125.70.130] Premature end of script headers: mlm.cgi
[Thu Jul 13 22:59:33 2017] [error] [client 111.125.70.130] File does not exist: /home/218022/domains/workersprivileges.org/html/favicon.ico, referer: http://www.workersprivileges.org/cgi-bin/mlm.cgi
[Thu Jul 13 22:59:33 2017] [crit] [client 198.143.33.17] (13)Permission denied: /home/218022/domains/pentagamma.net/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello Ronaldo,

V4RB plugin depends on the vcomponents libraries.

They are installed with the appropriate Linux package ( v4rb_x64_7_lin.deb or v4rb_x64_7_lin.rpm) into /usr/local/lib/vcomponents_32 (and vcomponents_64)

So to deploy an application to another system (where vcomponents are not present), you should copy vcomponents into an application folder.

As a result, you should get the following structure
MyApplication
-- MyApplication
-- MyApplication Libs
-- -- libvshared_release_x86.so
-- -- ...
-- MyApplication Resources
-- vresources

So the content of /usr/local/lib/vcomponents_32 directory should be copied into "ApplicationName Libs" directory, vresources to the application folder.
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
I am a Windows user, I don't see "vcomponents" from any folder on my computer. Please guide me on how to find it.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
It is contained in the DEB/RPM packages for Linux only.

Maybe you have the virtual Linux machine where you test the application? Then you can install this package into it and copy to the Windows system.

It is important that the version of the vcomponents libraries matches the version of the plugin.

Also, if you don't have the Linux system, you can unpack the DEB package using the free 7-zip archive manager on Windows.
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
Thank you for your reply.

I don't have Virtual linux. I want to clarify things.


It is contained in the DEB/RPM packages for Linux only.


Are your telling me to download the Valentina Studio for LINUX and use 7ZIP to extract vcomponent from it?

Then you can install this package into it and copy to the Windows system.

I am confused with this, I thought its a LINUX, then I need to copy to windows system? Kindly please guide mo on how to do this.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Yes, extract with 7-Zip:
https://www.dropbox.com/s/f9a50seb86p72fn/v4rb_extract_linux_vcomponents.mp4?dl=0

Install is for the first way when the Linux system is used.
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
Thank you for papering me. I really appreciated it.

after I extract the vcomponents, Do I just need to upload it to the folder where my xojo apps is resided?
How about from my xojo code? Do I need to change something there?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
No, you should create the following structure

ApplicationName
-- ApplicationName
-- ApplicationName Libs
-- -- libvshared_release_x86.so.713
-- -- ...
-- ApplicationName Resources
-- vresources

So the content of vcomponents_32 directory should be copied into "ApplicationName Libs" directory, vresources to the application folder.

There are also broken links (because they are not supported on Windows) - files with zero size, try to remove them.
For example, libvshared_release_x86.so is empty

Usually no need to change anything in the code.
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
Hi Mr. Sergey,

Thank you for your reply.

I believed I followed your instruction carefully as seen on my attached screenshot.
[img]http://www.screencast.com/t/cu1Qxf7Xt[/img]

However, I still cannot access my domain and when I check my logs, it show me this:

[Sat Jul 15 05:45:03 2017] [error] [client 112.202.170.156] Failed to load plugin v4rb_release.so:
[Sat Jul 15 05:45:03 2017] [error] [client 112.202.170.156] libvshared_release_x86.so.713: cannot open shared object file: No such file or directory
[Sat Jul 15 05:45:03 2017] [error] [client 112.202.170.156] Can't use an undefined value as a symbol reference at mlm.cgi line 118.
[Sat Jul 15 05:45:03 2017] [error] [client 112.202.170.156] Premature end of script headers: mlm.cgi



Please help me.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
You've downloaded the latest version of V4RB for Linux (7.3.3) and it is for ARM architecture.
The version of V4RB installed on Windows is 7.1.3.

Here you can find an older release:
http://valentina-db.com/download/prev_releases/7.1.3/lin_64/v4rb_x64_7_lin.deb

Although it is x64, it contains both 32 and 64-bit libraries
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
Thanks!

I download and extracted the content of the file and I saw that it contains two set of vcomponents.
Which one should I need to upload to my hosting server 32 or 64?

I tried to upload 64bit together with the vresources but no effect.

[img]<!-- copy and paste. Modify height and width if desired. --> <a href="https://content.screencast.com/users/rsflorendo/folders/Default/media/5251f408-480a-43ef-a106-4033c0ffeb96/sshot-1.png";><img class="embeddedObject" src="https://content.screencast.com/users/rsflorendo/folders/Default/media/5251f408-480a-43ef-a106-4033c0ffeb96/sshot-1.png"; width="2407" height="1502" border="0" /></a>[/img]

My site still not functional and I check my domain logs it shows this:
[Sat Jul 15 07:50:14 2017] [error] [client 112.202.170.156] Failed to load plugin v4rb_release.so:
[Sat Jul 15 07:50:14 2017] [error] [client 112.202.170.156] libvshared_release_x86.so.713: cannot open shared object file: No such file or directory
[Sat Jul 15 07:50:14 2017] [error] [client 112.202.170.156] Can't use an undefined value as a symbol reference at mlm.cgi line 118.
[Sat Jul 15 07:50:14 2017] [error] [client 112.202.170.156] Premature end of script headers: mlm.cgi
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
32-bit (the error message gives a hint - x86 in the library name)
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
I think there is some improvement but I still had an error.

[Sat Jul 15 09:15:07 2017] [error] [client 112.202.170.156] Failed to load plugin v4rb_release.so:
[Sat Jul 15 09:15:07 2017] [error] [client 112.202.170.156] libicui18n.so.54: cannot open shared object file: No such file or directory
[Sat Jul 15 09:15:07 2017] [error] [client 112.202.170.156] Can't use an undefined value as a symbol reference at mlm.cgi line 118.
[Sat Jul 15 09:15:07 2017] [error] [client 112.202.170.156] Premature end of script headers: mlm.cgi


But when I checked my uploaded files, I saw the file mentioned from the error. Please see screenshot.

[img]<!-- copy and paste. Modify height and width if desired. --> <a href="https://content.screencast.com/users/rsflorendo/folders/Default/media/43c1bd75-30b7-43fd-aff6-d101cd618ece/sshot-1.png";><img class="embeddedObject" src="https://content.screencast.com/users/rsflorendo/folders/Default/media/43c1bd75-30b7-43fd-aff6-d101cd618ece/sshot-1.png"; width="2625" height="1681" border="0" /></a>[/img]

I hope for your reply.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Comparing the size of the libraries, I think that you have libicu* files for ARM architecture, not for x86 32-bit.
Also, vcomponents_32/64 shouldn't be present in the application folder.

Please try to copy again - maybe start with an empty compiled application?
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
Thank you for recommendation, but I still had the same error message.

Here are my steps that I did:
1. I deleted all the content of CGI-BIN
2. I extract my xojo app INTO CGI-BIN
3. I extract the VCOMPONENTS32 to the folder cgi-bin/mlm libs
4. I extract the VRESOURCES to the folder VRESOURCES
5. Finished.

Here my newest FTP screenshot

<!-- copy and paste. Modify height and width if desired. --> <a href="https://content.screencast.com/users/rsflorendo/folders/Default/media/0e7dcb52-2f43-4e3b-9789-3ac9b12839fc/sshot-1.png";><img class="embeddedObject" src="https://content.screencast.com/users/rsflorendo/folders/Default/media/0e7dcb52-2f43-4e3b-9789-3ac9b12839fc/sshot-1.png"; width="3200" height="1800" border="0" /></a>

Any suggestion?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Is the error still about not found libicu?

I'll try it myself now with the sample app.
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
yes. same error.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Found the reason for the error - extracting package on Windows doesn't keep Linux symbolic links

Please try the following archive of vcomponents.

You
should copy it to the target system and extract there and copy to the app Libs directory.

Do you have SSH access?Then you can extract using following command in the terminal:
tar -zxvf vcomponents_32_731.tar.gz

https://www.dropbox.com/s/opnhx7rc68xd9p6/vcomponents_32_731.tar.gz?dl=0
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
Thank you.

I use 7zip for Windows to extract the .TAR and uploaded to APP LIBS.

The error seems changed, please see below:

[Sat Jul 15 15:39:29 2017] [error] [client 112.202.170.156] Can't use an undefined value as a symbol reference at mlm.cgi line 118.
penfile: unable to check htaccess file, ensure it is readable


I attached the "mlm.cgi" for your reference.

I believed your next reply will solved everything. I wait for your reply. :)
Anhänge
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
To followup, I also want to show you the initialization I made to my XOJO web app.

[img]http://www.screencast.com/t/ZipFvs2xZ[/img]

Im hoping for your reply.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
1) That's something different. And other people had such errors:
https://forum.xojo.com/11882-can-t-use-an-undefined-value-as-a-symbol-reference-in-cgi-file/0

What do you use for upload?
Please try to re-upload the CGI file.

Haven't you used SSH?
You're using Mediatemple Grid, right? As I can see, you can enable SSH access
https://mediatemple.net/community/products/grid/204403684/connecting-via-ssh-to-your-server

That way you will have more control over the application, check permissions and library dependencies.

You will be able to create an archive on the Windows system and transfer to Linux and extract it, without any damage.

2) How do you open the archive? I've found a way to preserve symbolic links
https://www.dropbox.com/s/m3022x934ur5aou/v4rb_extract_vcomponents_tar.mp4?dl=0

Note the icons that the symbolic links have.

But there is no guarantee the links are transferred the right way to Linux.
The best option is to extract this archive on the Linux system.

With SSH you can also recreate these links yourself.
Kommentar
There are no comments made yet.
  • Seite :
  • 1
  • 2
  • 3


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. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories