1. Beatrix Willius
  2. Valentina Server
  3. 日, 5月 05 2019, 01:07 PM
  4.  メールで購読
Valentina Server is confusing me. Originally, I just noticed that it creates a huge amount of log files. I made feature request to limit the amount of files. It also doesn't make sense to try to restart vServer thousands of times. And log files are being created when they shouldn't.

Then I started checking what Valentina Server is doing:
sudo lsof -i -P -n | grep LISTEN

has the result of

vserver_x 7703 beatrix_willius 5u IPv4 0x4d33f964adde48f9 0t0 TCP *:15432 (LISTEN)
vserver_x 7703 beatrix_willius 6u IPv4 0x4d33f964ad9ae639 0t0 TCP *:15434 (LISTEN)
vserver_x 7703 beatrix_willius 8u IPv4 0x4d33f964ada32cd9 0t0 TCP *:15532 (LISTEN)
vserver_x 7703 beatrix_willius 9u IPv4 0x4d33f964adaabf99 0t0 TCP *:15534 (LISTEN)
vserver_x 7703 beatrix_willius 10u IPv4 0x4d33f964adabb639 0t0 TCP *:15436 (LISTEN)

When I uninstall vServer except for the control panel I get the same result. I checked what the PID of 7703 is doing:

Trixis-iMac:~ beatrix_willius$ ps -p 7703
PID TTY TIME CMD
7703 ?? 0:07.57 /Library/VServer_x64/vserver_x64.app/Contents/MacOS/vserver_x64

I think I stopped vServer in the control panel and then moved all files to the trash, which I then emptied. Is this an expected result?

The questions are now: why is vServer already using 15432? If vServer notices that 15432 is busy why doesn't it use another port? How can I stop those connections? They are there even when I use the stop script.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
VServer doesn't want to be stopped. Even launchctl can't stop it.

I tried to reinstall but I got a sort of half-installation. Which Valentina Studio doesn't like at all.
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
A restart didn't fix the problem. Tried again to unload the process. No dice. Is this correct?

sudo launchctl remove /Library/VServer_x64/vserver_x64.app/Contents/MacOS/vserver_x64

Some other questions:

Why would vServer start anything on the main port if the main port is in the ini?
Why would vServer start anything before loading the main part of the server?

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
コメント
There are no comments made yet.
Ivan Smahin 承諾済みの回答
Please check /Library/LaunchDaemons/com.paradigmasoft.vserver_x64.plist

If you want that vServer starts manually you should set
<key>KeepAlive</key>
<false/>
<key>RunAtLoad</key>
<false/>
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
Hi Trixi,

You get many log files, and they have
ERROR: Address already in use

You get this ONLY and ONLY port 15432 or any other port which is enabled in the INI file already in use.

Beatrix, this means that
a) you have ANOTHER COPY of VSERVER on your computer
b) another app uses one of these ports.

You should find which case you have.

Please try the next:
- restart computer
- open Activity Monitor,
- open log folder of vserver_x64, notice if the number of logs grows,
if yes - make sure that last logs have ERROR: Address already in use
if yes - check Activity Monitor by eyes. You may see like some vserver jumps show/disappear.
- and I guess you should see another vserver copy which lives.

This issue is NOT related to vstudio, and is NOT related to control panel "Valentina Servers".


2) IF you want and need run TWO Valentina Serves on the same computer, you must assign for the second another set of ports.
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
Nope, there is no second copy of vServer running. The pid info points to

711 ?? 0:00.07 /Library/VServer_x64/vserver_x64.app/Contents/MacOS/vserver_x64

and not to another copy.
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
At least I'm not out of the log file hell.

I stopped the server, changed the port and still can't log in with Valentina Studio:

Kernel error: 0x82000. Cannot establish VC_Connection with remote server.
Make sure the server address and port number are correct.
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
Found one problem where I screwed up. Instead of a LaunchDaemon I had made a LaunchAgent, which confused vServer and Valentina Studio.

However, I still can't connect to vServer in Valentina Studio. When should the master.vdb database be created? It's not in the installer.

I was wrong, the port still is blocked and I get those wonderful log files. However, I stopped the other services and I only got 15432 listening anymore:

vserver_x 1296 beatrix_willius 5u IPv4 0xd39c8efaec015107 0t0 TCP *:15432 (LISTEN)

The installer doesn't really work correctly as can be seen on the screenshot.

Out of ideas what might be wrong.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
添付ファイル
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
I'm back in business. I restored from TimeMachine, then I manually installed vserver_x64.app from the pkg file.

A pkg file is quite suboptimal as installation app. It helpfully tries to overwrite existing files - even if the files are in the trash.

I learned a lot and wasted much time :D

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
コメント
There are no comments made yet.
Ruslan Zasukhin 承諾済みの回答
Well, Apple PackageMaker yes have the option -overwrite existing files
And we use it because this is recommended.

The installer can find and override app even if you have to move it.

In the near time, we going to do some jobs with installers,
we will look again on this option.
コメント
There are no comments made yet.
Beatrix Willius 承諾済みの回答
Theoretically, the option to overwrite the files is a good idea. In practice, it's a suboptimal idea. No user is going to change the location of the vServer files. At least you need to check if some files are in the trash. After installation you need to check if something was installed.

Also you don't have too much time for the installers because Mojave +1 is coming next month.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
コメント
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