Giter Club home page Giter Club logo

Comments (11)

fceller avatar fceller commented on May 21, 2024

Ich habe auch mal frisch gebaut. Leider tritt der Fehler nicht auf:

./avocado --shell /tmp/vocbase
AvocadoDB shell [V8 version 3.7.10, DB version 0.0.6 (9711)]
avocado>

Kannst du mal ein neues Verzeichnis /tmp/vocbase2 anlegen und es damit probieren?

vielen Dank

from arangodb.

moonglum avatar moonglum commented on May 21, 2024

Aha! Der Fehler tritt nur auf, wenn ich ihm kein Directory für die Datenbank mitgebe! War also ein Benutzer Fehler!
Vielleicht sollte das Programm darauf hinweisen, wenn man kein Directory angegeben hat?

from arangodb.

fceller avatar fceller commented on May 21, 2024

Hm, bei mir kommt:

fceller@hahnwald:/AvocadoDB >./avocado --shell
2011-12-06T09:47:38Z [70866] FATAL cannot create action directory '/var/lib/avocado/_ACTIONS': Undefined error: 0
2011-12-06T09:47:38Z [70866] INFO please use the '--database.directory' option
fceller@hahnwald:
/AvocadoDB >

Mit welchen Parametern startest du?

from arangodb.

moonglum avatar moonglum commented on May 21, 2024
./avocado 
Segmentation fault: 11

./avocado --shell
Segmentation fault: 11

./avocado a/directory/that/doesnt/exist
2011-12-06T09:51:26Z  [622] FATAL cannot create action directory \'a/directory/that/doesnt/exist/_ACTIONS\': Undefined error: 0
2011-12-06T09:51:26Z  [622] INFO please use the \'--database.directory\' option

from arangodb.

fceller avatar fceller commented on May 21, 2024

Irgendwas ist auch deinem Mac anders. Kannst du es mal mit GDB ausprobieren?

gdb ./avocado
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ....... done

(gdb) run
Starting program: /Users/fceller/AvocadoDB/avocado
Reading symbols for shared libraries ++++++........................... done
2011-12-06T10:59:28Z [73616] FATAL cannot create action directory '/var/lib/avocado/_ACTIONS': Undefined error: 0
2011-12-06T10:59:28Z [73616] INFO please use the '--database.directory' option

Program exited with code 01.

from arangodb.

moonglum avatar moonglum commented on May 21, 2024
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul  1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ........ done

(gdb) run
Starting program: /Users/moonglum/Code/AvocadoDB/avocado 
Reading symbols for shared libraries +++++++............................ done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000000241a0
0x00007fff8e23a4f0 in strlen ()

from arangodb.

fceller avatar fceller commented on May 21, 2024

Kannst du nach dem SEGFAULT noch ein

(gdb) where

ausführen?

from arangodb.

moonglum avatar moonglum commented on May 21, 2024
(gdb) where
#0  0x00007fff8e23a4f0 in strlen ()
#1  0x00007fff8e1db8c3 in __vfprintf ()
#2  0x00007fff8e1d9edb in vsnprintf_l ()
#3  0x000000010003b66e in GenerateMessage (buffer=0x7fff5fbfcb10 "2011-12-06T20:43:55Z  [1636] ERROR ", size=4096, func=0x7fff5fbfc9c0 "@ۿ_?", file=0x7fff5fbfc9c0 "@ۿ_?", line=232, level=0, currentProcessId=1636, currentThreadId=140735200696672, fmt=0x10016ea28 "duplicate entry for identifier '%s'", ap=0x7fff5fbfcaf8) at logging.c:481
#4  0x000000010003b802 in LogThread [inlined] () at /Users/moonglum/Code/AvocadoDB/Basics/logging.c:653
#5  0x000000010003b802 in TRI_Log (func=0x7fff5fbfdb40 "?ۿ_?", file=0x7fff5fbfdb40 "?ۿ_?", line=1606409024, level=1606409024, severity=1606409024, fmt=0x7fff5fbfdb40 "?ۿ_?") at logging.c:982
#6  0x000000010010a0d4 in AddCollection (cid=147879, vocbase=0x241a7, type=2, name=0x7fff5fbfdbe0 "test", path=0x100c190c0 "/var/lib/avocado/test") at vocbase.c:222
#7  0x000000010010a982 in ScanPath [inlined] () at /Users/moonglum/Code/AvocadoDB/VocBase/vocbase.c:279
#8  0x000000010010a982 in TRI_OpenVocBase (path=0x3 <Address 0x3 out of bounds>) at vocbase.c:436
#9  0x00000001000cb2ca in triagens::avocado::AvocadoServer::openDatabase (this=0x7fff5fbff3d0) at AvocadoServer.cpp:582
#10 0x00000001000c9d55 in triagens::avocado::AvocadoServer::startupServer (this=0x7fff5fbff3d0) at AvocadoServer.cpp:367
#11 0x00000001000c62ad in main (argc=1501638, argv=0xe8) at avocado.cpp:215

from arangodb.

fceller avatar fceller commented on May 21, 2024

Ok. Kannst du die Verzeichnisse in /var/lib/avocado/ mal weg-werfen? Ich hatte - glaube ich - noch eine Änderung am Datenformat gemacht. Das könnte die Ursache für das Problem sein.

from arangodb.

moonglum avatar moonglum commented on May 21, 2024

Ja, dass hat es gelöst! Vielen Dank :) Kannst das Ticket schließen (ich darf nicht ;) )!

from arangodb.

fceller avatar fceller commented on May 21, 2024

Done

from arangodb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.