mirror of
https://github.com/appy-one/acebase-server.git
synced 2026-05-24 22:01:28 -06:00
[GH-ISSUE #27] Running Into Issue Creating Server. Am I Missing Something? #13
Labels
No labels
bug
enhancement
feature request
pull-request
types
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase-server#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @flancast90 on GitHub (Jul 21, 2022).
Original GitHub issue: https://github.com/appy-one/acebase-server/issues/27
Hi,
I've begun migrating my project to AceBase, and while the regular AceBase library works fine, as soon as I attempt to integrate with AceBase-Server, I get an error (see bottom of issue). Mainly, I'm confused as to how the code should look (e.g. do I need both an AceBase and AceBase-server instance)?
The issue is probably just an issue with how I've imported everything, so I'd appreciate some guidance on how to fix :)
My Code:
Error Message:
@donl commented on GitHub (Jul 26, 2022):
Try removing
Otherwise you are creating/accessing the same database named 'db' on disk multiple times simultaneously, which requires special coordination.
@flancast90 commented on GitHub (Jul 26, 2022):
I tried both with and without that line, and got the same issue either way.
Any other ideas?
On Mon, Jul 25, 2022 at 10:03 PM Don @.***> wrote:
@appy-one commented on GitHub (Jul 26, 2022):
It looks like you may have corrupted the database file by accessing (writing to) it from both an
AceBaseServerand localAceBasedb instance, I posted about this a while ago in the discussion "How to protect your database from corruption".If the data you stored in the db is important, I might be able to help you recover the data. If it only has dev/test data, I recommend removing it and starting over with a fresh db. Make sure you only let a single
AceBaseServerinstance access the database files, or configure an acebase-ipc-server to setup a cluster.@flancast90 commented on GitHub (Jul 29, 2022):
I tried using only one of the instances and deleting the existing db to
allow it to create a fresh one, with the same issue. In terms of recovery,
I never actually got it to work, so there was no data in it.
On Tue, Jul 26, 2022 at 3:14 PM Ewout Stortenbeker @.***>
wrote:
@appy-one commented on GitHub (Jul 30, 2022):
Alright, you'll have to provide more code to reproduce this then. Only importing
AceBaseServerand instantiating it with a new db does not cause any issues in my tests?@appy-one commented on GitHub (Aug 19, 2022):
I'm closing this issue for now. If you have more info about how to reproduce this, feel free to reopen!