Comments (5)
Glad the issue is resolved! Enjoy!
from koel.
Btw you don't have to run koel:search:import
for every deployment. This script is meant to be run only once.
from koel.
Hi, any update?
from koel.
Are you sure you're on 6.12.1? There's no such file app/Services/V6/SearchService.php
in that tag.
from koel.
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)
- Database migration fails on v7.0.0 HOT 10
- error drag and drop images HOT 2
- Migration failed because of a duplicate column name HOT 1
- "The MAC is invalid" after upgrade HOT 22
- Missing "Current queue" link in the sidebar HOT 1
- pgsql queries with distinct throw errors HOT 1
- Can't buy Koel Plus HOT 1
- Incomplete fix for postgresql HOT 2
- Inconsistent Issue with Media scanning HOT 10
- Blank views after update HOT 3
- Upload directory seems to be changed HOT 1
- Opening database fails using the provided docker config HOT 5
- Upgrade fail (v6.12.1 to v7.0.6) HOT 12
- Saving avatar in a fresh instance fails with server 500 HOT 6
- Can't login after updating to v7.0.6 HOT 10
- [v7.0.y] Error 500 "Untrusted Host" until setting APP_URL HOT 15
- Not able to login to koel server after I done music scan HOT 3
- Unable to Create Playlist or Add/Edit Lyrics HOT 3
- Failed to install at `production.ERROR: App\Exceptions\InstallationFailedException in /var/www/html/vendor/laravel/framework/src/Illuminate/Support/helpers.php:330` HOT 3
- [Bug]: Fresh install fail (Pre-compiled) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koel.