hugofara / lwt-docker-installer Goto Github PK
View Code? Open in Web Editor NEWA Docker installer for the community version of LWT
License: MIT License
A Docker installer for the community version of LWT
License: MIT License
Good Morning,
Recently came across this project which looked very interesting for my Spanish learning journey! I was able to spin up an instance of LWT using the docker setup steps. However, I get the following error when trying to setup my first language. Do you have any ideas? This can probably be labelled as a question.
Fatal Error in SQL Query: INSERT INTO languages ( LgName, LgDict1URI, LgDict2URI, LgGoogleTranslateURI, LgExportTemplate, LgTextSize, LgCharacterSubstitutions, LgRegexpSplitSentences, LgExceptionsSplitSentences, LgRegexpWordCharacters, LgRemoveSpaces, LgSplitEachChar, LgRightToLeft, LgTTSVoiceAPI, LgShowRomanization ) VALUES('Spanish', 'https://de.glosbe.com/es/en/lwt_term?lwt_popup=1', NULL, 'https://translate.google.com/?ie=UTF-8&sl=es&tl=en&text=lwt_term', NULL, '150', '', '.!?:;', '', '\'a-zA-ZÀ-ÖØ-öø-ȳЀ-ӹ', 0, 0, 0, NULL, 1)
Error Code & Message: [1054] Unknown column 'LgTTSVoiceAPI' in 'field list'
I'm working on hosting the app on a VPS, but I've run into a '403 Forbidden' error that persists. The specific error message is:
Forbidden
You don't have permission to access this resource. Apache/2.4.56 (Debian) Server at [myIP] Port 8010
My goal is to have this application accessible from any location for convenience, so I'm seeking insights or advice on what could be causing this error and potential solutions to make it globally accessible.
Thank you in advance.
Here is the whole output of the command:
$ docker compose up
⠿ Container lwt_db Removed 0.4s
⠿ Network lwt_default Removed 0.2s
~/lwt main 1.9s ❱ docker compose up
[+] Running 3/3
⠿ Network lwt_default Created 0.0s
⠿ Container lwt_db Created 0.0s
⠿ Container lwt Created 0.0s
Attaching to lwt, lwt_db
lwt_db | 2023-06-12 05:03:18+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.8+maria~ubu2004 starte
lwt_db | 2023-06-12 05:03:18+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
lwt_db | 2023-06-12 05:03:18+00:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.7.8+maria~ubu2004 starte
lwt_db | 2023-06-12 05:03:18+00:00 [Note] [Entrypoint]: MariaDB upgrade not required
lwt_db | 2023-06-12 5:03:18 0 [Note] Starting MariaDB 10.7.8-MariaDB-1:10.7.8+maria~ubu2004 source revision bc656c4fa54c1
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
lwt | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Number of transaction pools: 1
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
lwt_db | 2023-06-12 5:03:18 0 [Note] mariadbd: O_TMPFILE is not supported on /tmp (disabling future attempts)
lwt | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.3. Set the 'ServerName' directive globally to suppress this message
lwt | [Mon Jun 12 05:03:18.578023 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/8.1.19 configured -- resuming normal operations
lwt | [Mon Jun 12 05:03:18.578048 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Using Linux native AIO
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Completed initialization of buffer pool
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: 128 rollback segments are active.
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Creating shared tablespace for temporary tables
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: 10.7.8 started; log sequence number 42300; transaction id 14
lwt_db | 2023-06-12 5:03:18 0 [Note] Plugin 'FEEDBACK' is disabled.
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
lwt_db | 2023-06-12 5:03:18 0 [Note] InnoDB: Buffer pool(s) load completed at 230612 5:03:18
lwt_db | 2023-06-12 5:03:18 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
lwt_db | 2023-06-12 5:03:18 0 [Note] Server socket created on IP: '0.0.0.0'.
lwt_db | 2023-06-12 5:03:18 0 [Note] Server socket created on IP: '::'.
lwt_db | 2023-06-12 5:03:18 0 [Note] mariadbd: ready for connections.
lwt_db | Version: '10.7.8-MariaDB-1:10.7.8+maria~ubu2004' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
I use the sample .env
file without changing anything. Thanks for your work on the docker instance and bugfixes of LWT!
After I installed into my Nas, the console output the log with "Could not reliably determine the server's fully qualified domain name, using 172.29.4.3. Set the 'ServerName' directive globally to suppress this message "
Then when I come to the website, it tells me that "Message: Host '172.29.4.3' is not allowed to connect to this MariaDB server]"
Maybe I set the wrong hostname in the docker-composer.yml?
This is how I set the yml file
version: "3.7"
services:
web:
image: ghcr.io/hugofara/lwt:master
container_name: lwt
depends_on:
- db
links:
- db
volumes:
- /share/Container/lwtrhugofara/media:/var/www/html/media
ports:
- "38080:80"
restart: unless-stopped
db:
container_name: lwt_db
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_ROOT_PASSWORD: "qwerty"
hostname: db
image: mariadb:10.7
restart: unless-stopped
volumes:
- /share/Container/lwtrhugofara/sql:/var/lib/mysql
These are the messages I got.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.