diff --git a/docker/services/python/Dockerfile b/docker/services/python/Dockerfile index e73dbb3a..0fb36975 100644 --- a/docker/services/python/Dockerfile +++ b/docker/services/python/Dockerfile @@ -26,26 +26,27 @@ RUN pip install -U pip && pip install --no-cache-dir --default-timeout=1000 \ seaborn \ jupyterlab \ gunicorn \ - statsmodels \ + tiktoken \ + pymupdf \ selenium \ + statsmodels \ japanize-matplotlib \ graphviz \ pydotplus \ openpyxl \ python-docx \ python-pptx \ - wordcloud \ - mecab-python3 \ html2text \ - librosa \ flask \ - tiktoken \ opencv-python \ - moviepy \ - pymupdf \ - textblob \ - nltk \ - gensim + moviepy + + # librosa \ + # mecab-python3 \ + # wordcloud \ + # textblob \ + # nltk \ + # gensim # Set up JupyterLab user settings RUN mkdir -p /root/.jupyter/lab/user-settings @@ -73,4 +74,4 @@ RUN ln -s /monadic/data /data COPY Dockerfile /monadic/Dockerfile # Install NLTK modules (failure to install these modules will skip the installation) -RUN python -m nltk.downloader all || true +# RUN python -m nltk.downloader all || true diff --git a/docker/services/ruby/bin/monadic_dev b/docker/services/ruby/bin/monadic_dev index 43f423ca..d0f9f2b1 100755 --- a/docker/services/ruby/bin/monadic_dev +++ b/docker/services/ruby/bin/monadic_dev @@ -80,7 +80,7 @@ def start_server(opts) else puts "Server failed to start" # Save detailed error log to the specified directory on the host - File.open(File.join(DATA_DIR, "error.log"), "a") do |file| + File.open(File.join(DATA_DIR, "monadic.log"), "a") do |file| file.puts("Failed to start server at #{Time.now}") file.puts(output) # Write the detailed error output end diff --git a/docker/services/ruby/entrypoint.sh b/docker/services/ruby/entrypoint.sh index 1cc12cc2..5ca6c99c 100644 --- a/docker/services/ruby/entrypoint.sh +++ b/docker/services/ruby/entrypoint.sh @@ -1,11 +1,11 @@ #!/bin/sh # Attempt to start the thin server and capture any errors -thin start -R config.ru -p 4567 -e development > /monadic/data/error.log 2>&1 +thin start -R config.ru -p 4567 -e development > /monadic/data/monadic.log 2>&1 # Check if the thin server started successfully if [ $? -ne 0 ]; then - echo "Failed to start thin server at $(date)" >> /monadic/data/error.log + echo "Failed to start thin server at $(date)" >> /monadic/data/monadic.log fi # Keep the container running diff --git a/main.js b/main.js index a821e69d..e7ed604c 100644 --- a/main.js +++ b/main.js @@ -253,7 +253,7 @@ class DockerManager { openBrowser('http://localhost:4567'); }) .catch(error => { - writeToScreen('[HTML]:

Failed to start Monadic Chat server.

Please try rebuilding the image ("Menu" → "Action" → "Rebuild") and starting the server again.


'); + writeToScreen('[HTML]:

Failed to start Monadic Chat server.

Please check out monadic.log in the shared folder, rebuild the image ("Menu" → "Action" → "Rebuild"), and start the server again.


'); console.error('Fetch operation failed after retries:', error); currentStatus = 'Stopped'; updateTrayImage(currentStatus);