Hi Hung,

Oh, sorry. I missed that.

Is there any chance to reproduce the issue on other PC?



Best regards,
Artem Orobets

* Orient Technologiesthe Company behind OrientDB*


2014-06-04 10:34 GMT+03:00 Hung Tran Dinh <[email protected]>:

> Hi Artem Orobets,
>
> Your explanation makes sense for embedded database, however I am using
> remote protocol - I think you saw it from the error.
>
>  "
> orientdb> connect *remote*:localhost/test admin admin
>
> Connecting to database [remote:localhost/test] with user 'admin'...
> Error: com.orientechnologies.orient.core.exception.OStorageException:
> Cannot open local storage 'D:/Working Folder/Database/OrientDB/git/
> releases/orientdb-community-1.7/databases/test' with mode=rw
>
> Error: com.orientechnologies.orient.core.exception.OSerializationException:
> Cannot load database's configuration. The database seems to be corrupted.
>
> Error: java.io.IOException: The process cannot access the file because
> another process has locked a portion of the file
> "
>
> That's the problem.
>
> My Best,
> Hung Tran
>
>
>
> On Wed, Jun 4, 2014 at 2:09 PM, Artem Orobets <[email protected]> wrote:
>
>> Hi Hung,
>>
>> I'm sorry for inconvenience, but this is a right behavior for OrientDB in
>> embedded mode.
>>
>> As soon as all data manipulation performed right in your application,
>> OrientDB works directly with files. But to do that in a most efficient way
>> it need an exclusive access it is by design, otherwise interprocess
>> synchronization would make a significant slowdown.
>>
>> In the previous versions of OrientDB there were no locking of files, that
>> may lead to data corruption.
>>
>> To get access to the database from the several places simultaneously
>> (like from your app and console) use OrientDB server and connect via remote
>> protocol
>>
>>
>> Best regards,
>> Artem Orobets
>>
>> *Orient Technologies the Company behind OrientDB*
>>
>>
>> 2014-06-04 8:43 GMT+03:00 Hung Tran <[email protected]>:
>>
>>>  Hi,
>>>
>>> For more information, when my application can access the database, i
>>> cannot access it from Console due to the error above, and vice versa. I got
>>> the same issue with OrientDB Studio. Look like it is locked by application
>>> name. Could you check it? It is really annoying.
>>>
>>> I got it since v1.7 (use plocal storage), it won't happen on v1.6 (use
>>> local storage).
>>>
>>> Any help will be very appreciated!
>>>
>>> My Best,
>>> Hung Tran
>>>
>>>
>>> On Tuesday, June 3, 2014 3:32:05 PM UTC+7, Hung Tran wrote:
>>>>
>>>> Hi,
>>>>
>>>> Since the last update to Orient v1.7, I often see this error although I
>>>> rebuilt my database again.
>>>>
>>>> "
>>>> orientdb> connect remote:localhost/test admin admin
>>>>
>>>> Connecting to database [remote:localhost/test] with user 'admin'...
>>>> Error: com.orientechnologies.orient.core.exception.OStorageException:
>>>> Cannot open local storage 'D:/Working Folder/Database/OrientDB/git/
>>>> releases/orientdb-community-1.7/databases/test' with mode=rw
>>>>
>>>> Error: com.orientechnologies.orient.core.exception.OSerializationException:
>>>> Cannot load database's configuration. The database seems to be corrupted.
>>>>
>>>> Error: java.io.IOException: The process cannot access the file because
>>>> another process has locked a portion of the file
>>>> "
>>>>
>>>> It won't happen when i shutdown, and restart server. I often happen
>>>> daily.
>>>>
>>>> Any help will be very appreciated!
>>>>
>>>> My Best,
>>>> Hung Tran
>>>>
>>>  --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "OrientDB" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>>
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "OrientDB" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/orient-database/ffuzA5IflO4/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Hung Tran
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to