Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to open the database file during package installation #2691

Open
sanchom opened this issue Jun 10, 2019 · 7 comments

Comments

@sanchom
Copy link

commented Jun 10, 2019

Trying to build an image using this dockerfile:

FROM ubuntu:19.04

RUN apt-get update && apt-get install -y \
  software-properties-common

RUN add-apt-repository ppa:plt/racket

RUN apt-get update && apt-get install -y \
  racket \
  openssl \
  sudo \
  ca-certificates \
  sqlite3

RUN raco pkg install --auto pollen hyphenate xexpr-path

During the final step (raco pkg install --auto pollen hyphenate xexpr-path), I get this error:

raco setup: docs failure: query-exec: unable to open the database file
  error code: 14
  SQL: "ATTACH $1 AS other"
  database: #<path:/root/.racket/7.3/doc/docindex.sqlite>
  mode: 'read-only
  file permissions: (write read)

If I create that file before doing the raco pkg install, like this: mkdir -p /root/.racket/7.3/doc/ && touch /root/.racket/7.3/doc/docindex.sqlite, then I get a different error:

raco setup: docs failure: query-maybe-row: no such table: pathids
  error code: 1
@sanchom

This comment has been minimized.

Copy link
Author

commented Jun 10, 2019

@takikawa Not sure if this is a PPA issue instead of a racket issue.

@ndw

This comment has been minimized.

Copy link

commented Sep 5, 2019

Seems like a Racket issue to me. If the racket document index doesn't exists, shouldn't racket create it?

@ndw

This comment has been minimized.

Copy link

commented Sep 5, 2019

On a hunch, I tried reworking my Dockerfile so that I wasn't attempting to install the packages as root. No change.

On a second hunch, I went back to Racket 7.0 and the problem went away (with the .sh installer rather than the Ubuntu installer).

@ndw

This comment has been minimized.

Copy link

commented Sep 5, 2019

Sorry, one last remark. It looks to be something in the Debian packaging. Downloading 7.4 and installing it from the .sh file worked fine too.

@jackfirth

This comment has been minimized.

Copy link
Contributor

commented Sep 5, 2019

@ndw

This comment has been minimized.

Copy link

commented Sep 5, 2019

That's downloading and using the .sh installer; that's consistent with what worked for me. Installing with apt-get appears to leave the database uninitialized.

@jackfirth

This comment has been minimized.

Copy link
Contributor

commented Sep 5, 2019

Not sure if installing from the PPA in a docker container is supposed to work. Pinging @takikawa, who maintains the Racket Ubuntu PPA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.