failure to start 'default' 4store service (Ubuntu 11.10) #69

Closed
darrenleeweber opened this Issue Apr 20, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@darrenleeweber

Is this simply a failure to create a 'default' KB or to specify a KB on the service command?

[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ sudo service 4store start

  • Starting 4s-backend 4s-backend 4store[4455]: lock.c:38 failed to open metadata file /var/lib/4store/default/metadata.nt for locking: No such file or directory
    4store[4455]: 1: /usr/bin/4s-backend() [0x411201]
    4store[4455]: 2: /usr/bin/4s-backend() [0x40392b]
    4store[4455]: 3: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f61c978a30d]
    4store[4455]: 4: /usr/bin/4s-backend() [0x403979]
    [ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ ll /var/lib/4store/
    total 4.0K
    drwxr-xr-x 4 root root 4.0K 2012-04-19 20:41 mappings/
    [ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ uname -a
    Linux BMIR-X247-MBP-Ubuntu 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
    [ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=11.10
    DISTRIB_CODENAME=oneiric
    DISTRIB_DESCRIPTION="Ubuntu 11.10"
    [ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ cat /etc/4store.conf
    [default]
    unsafe = true # enable LOAD etc. (default is disabled)
    cors = true # enable CORS (default is disabled)

[mappings]
port = 8888 # HTTP port number (default is 8080)
default-graph = true # default graph = union of named graphs (default)
soft-limit = 0 # disable soft limit
opt-level = 3 # enable all optimisations (default)

@darrenleeweber

This comment has been minimized.

Show comment Hide comment
@darrenleeweber

darrenleeweber Apr 20, 2012

Yea, looks like it! I guess the following answers my own question. However, how to we specify an alternative KB with the service framework?

[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ sudo 4s-backend-setup default
4store[4535]: backend-setup.c:185 erased files for KB default
4store[4535]: backend-setup.c:310 created RDF metadata for KB default
[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$
[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ ll /var/lib/4store/
total 8.0K
drwxr-xr-x 4 root root 4.0K 2012-04-19 21:07 default/
drwxr-xr-x 4 root root 4.0K 2012-04-19 20:41 mappings/
[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$
[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ sudo service 4store restart

  • Stopping 4s-httpd 4s-httpd [ OK ]
  • Stopping 4s-backend 4s-backend [ OK ]
  • Starting 4s-backend 4s-backend [ OK ]
  • Starting 4s-httpd 4s-httpd [ OK ]

Yea, looks like it! I guess the following answers my own question. However, how to we specify an alternative KB with the service framework?

[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ sudo 4s-backend-setup default
4store[4535]: backend-setup.c:185 erased files for KB default
4store[4535]: backend-setup.c:310 created RDF metadata for KB default
[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$
[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ ll /var/lib/4store/
total 8.0K
drwxr-xr-x 4 root root 4.0K 2012-04-19 21:07 default/
drwxr-xr-x 4 root root 4.0K 2012-04-19 20:41 mappings/
[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$
[ dlweber@BMIR-X247-MBP-Ubuntu:0 scripts ]$ sudo service 4store restart

  • Stopping 4s-httpd 4s-httpd [ OK ]
  • Stopping 4s-backend 4s-backend [ OK ]
  • Starting 4s-backend 4s-backend [ OK ]
  • Starting 4s-httpd 4s-httpd [ OK ]
@msalvadores

This comment has been minimized.

Show comment Hide comment
@msalvadores

msalvadores Apr 20, 2012

Collaborator

closing ... it.

Collaborator

msalvadores commented Apr 20, 2012

closing ... it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment