Giter VIP home page Giter VIP logo

koha-docker's Introduction

koha-docker

Docker Image Version (tag latest semver)

A Koha Docker container which includes:

  • The Apache webserver serving the OPAC (Port 8080) and the Koha staff interface (Port 8081), configured to use Plack.
  • The Zebra server and indexer.
  • The Koha background jobs worker.

A fully functional Koha instance additionally requires:

  • A MySQL/MariaDB server.
  • A Memcached server.
  • A RabbitMQ server with the stomp pulgin enabled.

Elasticsearch is also supported, instead of Zebra.

Notice: SIP and Z3950 are still WIP.

A separate RabbitMQ server with the stomp plugin is required as well as a Memcached server. Both can be easily created using the images available on Docker Hub.

Usage

The image is available on Docker Hub

The main configuration environment variables are documented in config-main.env.

Logs for stored under the /var/log/koha directory.

In order to function, Koha requires a MySQL database, a Memcached server and a RabbitMQ server with the stomp plugin.

The provided docker-compose file sets up all of these as containers. It provides an easy way to get a Koha insstance up and running. For a production environment it is recommened that each container is set up separately.

Credits

Some scripts have been taken from https://gitlab.com/koha-community/docker/koha-docker and modified.

koha-docker's People

Contributors

teogramm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

koha-docker's Issues

Internal Server Error

Hello,

I'm having trouble accessing the staff-interface, as I am greeted by an "internal server error".
I've scanned the logs.

rabbitmq is up and running, and started TCP Listener on [::]:5672.

The log for the koha-container outputs the following:

Executing koha-create for instance default
Module proxy already enabled
Stopping Apache httpd web server: apache2.
Error: Indexer not running for default: failed!
Error: worker not running for default (default): failed!
Enabled email for instance default.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.48.5. Set the 'ServerName' directive globally to suppress this message
Cannot connect to the message broker, the jobs will be processed anyway (Failed to connect: Error connecting to rabbitmq:61613: Connection refused at /usr/share/perl5/Net/Stomp.pm line 27.; giving up at /usr/share/perl5/Net/Stomp.pm line 27.
) at /usr/share/koha/bin/background_jobs_worker.pl line 74.
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('database=koha_teolib;host=db;port=3306','koha_teolib',...) failed: Access denied for user 'koha_teolib'@'192.168.48.5' (using password: YES) at /usr/share/koha/lib/Koha/Database.pm line 91. at /usr/share/koha/lib/Koha/Database.pm line 139
Cannot connect to the message broker, the jobs will be processed anyway (Failed to connect: Error connecting to rabbitmq:61613: Connection refused at /usr/share/perl5/Net/Stomp.pm line 27.; giving up at /usr/share/perl5/Net/Stomp.pm line 27.
) at /usr/share/koha/bin/background_jobs_worker.pl line 74.

any idea what the problem might be?

EDIT:
More detailed log from the koha-container:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service prepare-koha: starting
Executing koha-create for instance default
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.48.5. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.48.5. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.48.5. Set the 'ServerName' directive globally to suppress this message
Plack enabled for default OPAC
Plack enabled for default Intranet
Module proxy already enabled
Stopping Apache httpd web server: apache2.
Error: Indexer not running for default: failed!
Error: worker not running for default (default): failed!
Enabled email for instance default.
s6-rc: info: service prepare-koha successfully started
s6-rc: info: service zebra-server: starting
s6-rc: info: service worker: starting
s6-rc: info: service plack: starting
s6-rc: info: service cron: starting
s6-rc: info: service apache2: starting
s6-rc: info: service zebra-server successfully started
s6-rc: info: service zebra-indexer: starting
s6-rc: info: service apache2 successfully started
s6-rc: info: service zebra-indexer successfully started
s6-rc: info: service worker successfully started
s6-rc: info: service plack successfully started
s6-rc: info: service cron successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.48.5. Set the 'ServerName' directive globally to suppress this message
Cannot connect to the message broker, the jobs will be processed anyway (Failed to connect: Error connecting to rabbitmq:61613: Connection refused at /usr/share/perl5/Net/Stomp.pm line 27.; giving up at /usr/sh>
) at /usr/share/koha/bin/background_jobs_worker.pl line 74.
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('database=koha_teolib;host=db;port=3306','koha_teolib',...) failed: Access denied for user 'koha_teolib'@'192.168.48.5' (using passw>
Cannot connect to the message broker, the jobs will be processed anyway (Failed to connect: Error connecting to rabbitmq:61613: Connection refused at /usr/share/perl5/Net/Stomp.pm line 27.; giving up at /usr/sh>
) at /usr/share/koha/bin/background_jobs_worker.pl line 74.

MariaDB also denies entry to the user
2023-12-25 23:07:03 2677 [Warning] Access denied for user 'koha_teolib'@'192.168.48.5' (using password: YES)

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.