Giter Club home page Giter Club logo

Comments (5)

phanan avatar phanan commented on June 20, 2024 1

Glad the issue is resolved! Enjoy!

from koel.

phanan avatar phanan commented on June 20, 2024 1

Btw you don't have to run koel:search:import for every deployment. This script is meant to be run only once.

from koel.

Anduin2017 avatar Anduin2017 commented on June 20, 2024

Hi, any update?

from koel.

phanan avatar phanan commented on June 20, 2024

Are you sure you're on 6.12.1? There's no such file app/Services/V6/SearchService.php in that tag.

from koel.

Anduin2017 avatar Anduin2017 commented on June 20, 2024

I understand how I encountered this error. I deployed Koel many years ago using the following deployment script:

(Do not copy! This is an incorrect bash script)

echo "Downloading koel..."
sudo apt install tar wget jq
latestUrl=$(curl https://api.github.com/repos/koel/koel/releases/latest | jq -r '(.assets[] | select(.browser_download_url | contains(".zip"))).browser_download_url')
rm /tmp/koel.zip
rm /tmp/koel_ext -rf
wget -O /tmp/koel.zip $latestUrl

echo "Unziping koel..."
unzip /tmp/koel.zip -d /tmp/koel_ext

echo "Stoping service..."
sudo systemctl stop apache2.service

echo "Replacing files..."
sudo cp -rv /tmp/koel_ext/koel /var/www/html/

echo "Changing owners..."
sudo chown -R www-data:www-data /var/www/html/koel/
sudo chown -R www-data:www-data /mnt/data
find /var/www/html/koel -type d -print0 | sudo xargs -0 chmod 0755
find /var/www/html/koel -type f -print0 | sudo xargs -0 chmod 0644
find /mnt/data -type d -print0 | sudo xargs -0 chmod 0755
find /mnt/data -type f -print0 | sudo xargs -0 chmod 0644

echo "Configuring PHP..."
sudo sed -i '/^memory_limit =/s/=.*/= 8192M/' /etc/php/8.1/apache2/php.ini
sudo sed -i '/^upload_max_filesize =/s/=.*/= 16G/' /etc/php/8.1/apache2/php.ini
sudo sed -i '/^post_max_size =/s/=.*/= 16G/' /etc/php/8.1/apache2/php.ini
sudo sed -i '/^output_buffering =/s/=.*/= 0/' /etc/php/8.1/apache2/php.ini

echo "Restarting..."
sudo systemctl start apache2.service

echo "Migrating and syncing..."
sudo -u www-data php /var/www/html/koel/artisan migrate --force
sudo -u www-data php /var/www/html/koel/artisan koel:sync
sudo -u www-data php /var/www/html/koel/artisan koel:search:import

It has been working well until today when I realized that it does not remove files that have disappeared from previous versions.

Therefore, I am trying to refactor this script.

I completely cleaned up what I deployed in the past, and now the problem has been solved. Thank you.

from koel.

Related Issues (20)

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.