1. Beatrix Willius
  2. Valentina Server
  3. Вторник, Июнь 15 2021, 02:18 PM
  4.  Подписаться через email
After my last post I had the idea to add some icons in my server management to show when paths aren't available. But I have screwed up VServer I think.

So I changed the backup path to the desktop just for testing and restarted the server:

; The path, where backups are stored.
SYSTEMBACKUPFOLDER = /Users/beatrixwillius/Desktop

But now I can't open anything anymore because nothing is accessible. See screenshots from my app and from VStudio. Bug, stupidity or feature? And yes, I like to make everything kaputt.
Вложения
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
Another - probably stupid - question: can I restart VServer from within VStudio?
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
Not good. I undid the change in the ini file manually. Then I stopped and restarted VServer. But now the server doesn't want to start. Thanks the gods I checked this immediately. But I got the lovely "create new logs every 10 seconds" I had a couple of years ago.

WARNING: Owner name and email are missing in the INI file. It is highly recommended to fill this in to let the Valentina team contact you in case the server crashes.
2021-06-15 16:29:27.491580 (TID 4369382720): Shutting down server...
2021-06-15 16:29:27.491660 (TID 4369382720): SNMP terminated
2021-06-15 16:29:27.493979 (TID 4369382720): Database kernel terminated
2021-06-15 16:29:27.494170 (TID 4369382720): Server terminated

Why does the server terminate itself?
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
Hard to say - if you set verbooseLevel=3, probably it would be more informative log?
And could you describe the detailed steps to reproduce it?
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
"Many logs" is just because of vServer is terminated, but scripts starts it again and again, so new logs created. It seems there is no way for something like "start attempt count".
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
error -43 fnfErr: File not found
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
The error is beyond strange. Please read above: the only things I did was to change the backup directory to the desktop folder. Then I did a restart of the server with the internal restart functionality.

The file was there before restarting and - of course - the file is there after restarting. See screenshot with kernel error.

I can't change the verbose level because the server is borked. At any verbose level the server should show errors why the darn thing terminates itself.
Комментарий
There are no comments made yet.
Ivan Smahin Ответ принят
1. I think, you are running vServer on behalf of root user, probably there is no access to your home folder for that user?

2. BTW, you may change verbose level in the INI.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
1. Yes, this makes sense. However, I'm always testing odd stuff. Either don't allow me something or give me an error ("directory not allowed";). But don't bork everything.

2. Good idea. I'll try that.
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
I suggest this :
In the Finder,
- go in the server folder
- copy the folder name of your backup folder (create one if it doesn't exist)
- open your configuration INI file
- at the SYSTEMBACKUPCATALOG line, type
SYSTEMBACKUPCATALOG = [the backup folder name copied earlier]
- Save
If you modified only this line, your server must restart correctly.

Now explore new configuration with other backup path.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
VServer is restarting after I fixed the ini file. Now I can't log in - see screenshot.

It's really easy to shoot oneself into the foot when changing directories. I need to play around with this some more.
Вложения
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
If master file is new/created again (in the Database folder), it has no user. You must use your db with the generic "sa"/"sa".
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
sa/sa didn't work. I deleted the VServer folder and reinstalled everything.
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
master file records the path of the db too. If you change the database folder, I'm not sure you can simply reuse the old master file since the db path isn't correct anymore. In this case, you must unregister your db, change the db folder, copy the old master file and your db in the new db folder and finally register again your db.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
@François Van Lerberghe: yes, that makes sense.

@Valentina guys: I should have checked Valentina Studio. But even there I get confused.

I've tried to select a new folder for Valentina databases in VStudio -> Server Admin Properties. Screenshot "select folder 1" shows that folders for the current user can't be selected. However, when I switch to another location and then back to the user ("select folder 2";) then I can select the folders. I've created a folder for the databases in the main document folder - just for testing - and changed the permissions of the folder to root. VStudio seems to select the folder and then reverts back to the default location (screenshot "result";). I then tried with a folder in an external hard disk with the same result.

Can you give me the idiots guide to changing folders? I'm not a DBA and seem to be missing something simple here.
Вложения
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
Valentina Studio can't show current paths in the latest versions of VServer, these properties were renamed, the fix will be available in the next version.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
Okay, I'll wait for the next release. But I still need the idiots guide for changing the directories.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
The latest version of ValentinaStudio has fixed the problem with the database paths. Thanks, guys!

However, I can't get changing the paths to work:

1. I unregistered the 2 databases I have made.
2. Changed the path for Valentina Databases to the new path.
3. Used stop_me.sh to stop the server.
4. Moved the 2 databases to the new location.
5. Used start_me.sh to start the server.
6. Unfortunately, I now have no databases. See screenshot.

What am I doing wrong?
Вложения
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
You unregistered both databases from the server at step 2.
You must now (step 6) register again the db that you moved at step 4.
Комментарий
There are no comments made yet.
Beatrix Willius Ответ принят
Yes, I wanted to register the databases again. But how do I do that when I can't see the databases at all in VStudio?
Комментарий
There are no comments made yet.
François Van Lerberghe Ответ принят
Don't you see it when you clic on the server admin icon (in the toolbar) ?
Комментарий
There are no comments made yet.
  • Страница :
  • 1
  • 2


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