scysys / azuracast-ubuntu Goto Github PK
View Code? Open in Web Editor NEWEffortless AzuraCast Setup on Ubuntu LTS with Classic Installer Approach
License: GNU General Public License v3.0
Effortless AzuraCast Setup on Ubuntu LTS with Classic Installer Approach
License: GNU General Public License v3.0
MariaDB 10.8 has become archived. But it's needed, as I can't upgrade over AzuraCast 0.18.5 actually.
I have tested and the installer is wunderfull. The Docker Install doesnt worked, but this is option is working.
But after the Install, i become on the Site to configure Azuracast a 500 Error. That's bad ;)
Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
misc/prepare_system.sh: line 13: add-apt-repository: command not found
Let's integrate HSTS to help users like this one here: #5 (comment)
root@stream:~/azuracast_installer# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"- 1/10 prepare_system
last backlog's install:
***************************************************************************
Whup! Whup! AzuraCast Installation is complete.
[...]
Because of Updates, some service restarts and maybe also Kernel ones. I prefer to reboot now.
***************************************************************************
then i reboot.
reboot is ok, but nginx is failling:
root@stream:~# systemctl status nginx.service
× nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2023-02-21 18:28:08 UTC; 15s ago
Docs: man:nginx(8)
Process: 1191 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
CPU: 14ms
Feb 21 18:28:08 stream systemd[1]: Starting A high performance web server and a reverse proxy server...
Feb 21 18:28:08 stream nginx[1191]: nginx: [emerg] duplicate upstream "php-fpm-internal" in /etc/nginx/sites-enabled/azuracast.conf:1
Feb 21 18:28:08 stream nginx[1191]: nginx: configuration file /etc/nginx/nginx.conf test failed
Feb 21 18:28:08 stream systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Feb 21 18:28:08 stream systemd[1]: nginx.service: Failed with result 'exit-code'.
Feb 21 18:28:08 stream systemd[1]: Failed to start A high performance web server and a reverse proxy server.
root@stream:~# nginx -t
nginx: [emerg] duplicate upstream "php-fpm-internal" in /etc/nginx/sites-enabled/azuracast.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
root@stream:~# supervisorctl status
beanstalkd RUNNING pid 752, uptime 0:05:23
centrifugo RUNNING pid 756, uptime 0:05:23
cron RUNNING pid 753, uptime 0:05:23
mariadb RUNNING pid 749, uptime 0:05:23
nginx FATAL Exited too quickly (process log may have details)
php-fpm RUNNING pid 750, uptime 0:05:23
php-nowplaying RUNNING pid 754, uptime 0:05:23
php-worker RUNNING pid 1308, uptime 0:00:15
sftpgo RUNNING pid 757, uptime 0:05:23
-> commenting lines 1 to 4
root@stream:~# nginx -t
nginx: [emerg] duplicate upstream "php-fpm-www" in /etc/nginx/sites-enabled/azuracast.conf:5
nginx: configuration file /etc/nginx/nginx.conf test failed
-> commenting lines 5 to 8
root@stream:~# nginx -t
nginx: [emerg] a duplicate default server for 0.0.0.0:443 in /etc/nginx/sites-enabled/azuracast.conf:49
nginx: configuration file /etc/nginx/nginx.conf test failed
-> commenting line 49
root@stream:~# nginx -t
nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
and then restarting nginx via supervisor:
root@stream:~# supervisorctl start nginx
nginx: started
but i can't connect via ffox because SSL is self-signed:
stream.krashboyz.org uses an invalid security certificate.
The certificate is not trusted because it is self-signed.
Error code: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT
nor via chromium because HSTS is on:
NET::ERR_CERT_AUTHORITY_INVALID
[...]
You cannot visit stream.krashboyz.org right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later.
Hi.
i try to install Latest Rolling Release
mkdir /root/azuracast_installer && cd /root/azuracast_installer && git clone https://github.com/scysys/AzuraCast-Ubuntu.git . && git checkout main && chmod +x install.sh && ./install.sh --install_rrc
and getting error:
[2024-01-31T03:19:45.152970+00:00] AzuraCast.ERROR: Doctrine\DBAL\Exception\ConnectionException: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'azuracast'@'localhost' (using password: YES) (uncaught exception) at /var/azuracast/www/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 101 while running console command azuracast:setup:migrate
{"exception":"[object] (Doctrine\DBAL\Exception\ConnectionException(code: 1045): An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'azuracast'@'localhost' (using password: YES) at /var/azuracast/www/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101)\n[previous exception] [object] (Doctrine\DBAL\Driver\PDO\Exception(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'azuracast'@'localhost' (using password: YES) at /var/azuracast/www/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'azuracast'@'localhost' (using password: YES) at /var/azuracast/www/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:33)"} []
[2024-01-31T03:19:45.154000+00:00] AzuraCast.WARNING: Console command azuracast:setup:migrate
exited with error code 1045. [] []
In ExceptionConverter.php line 101:
An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'azuracast'@'localhost' (using password: YES)
In Exception.php line 28:
SQLSTATE[HY000] [1045] Access denied for user 'azuracast'@'localhost' (using password: YES)
In Driver.php line 33:
SQLSTATE[HY000] [1045] Access denied for user 'azuracast'@'localhost' (using password: YES)
azuracast:setup:migrate
complete log:
azuracast_installer.log
Hi.
https://github.com/scysys/AzuraCast-Ubuntu#installation-latest-rolling-release
not working
root@stream03:~# mkdir /root/azuracast_installer && cd /root/azuracast_installer && git clone https://github.com/scysys/AzuraCast-Ubuntu.git . && git checkout rolling && chmod +x install.sh && ./install.sh --install_rrc Cloning into '.'... remote: Enumerating objects: 1021, done. remote: Counting objects: 100% (457/457), done. remote: Compressing objects: 100% (246/246), done. remote: Total 1021 (delta 240), reused 409 (delta 204), pack-reused 564 Receiving objects: 100% (1021/1021), 171.64 KiB | 15.60 MiB/s, done. Resolving deltas: 100% (530/530), done. error: pathspec 'rolling' did not match any file(s) known to git
root@stream:~/azuracast_installer# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"- 1/10 prepare_system
- 2/10 setup_azuracast_user
- 3/10 setup_mariadb
- 4/10 setup_stations
- 5/10 setup_web
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/josharian/intern v1.0.0
go: downloading github.com/segmentio/asm v1.1.4
web/setup/cron.sh: line 10: /var/spool/cron/crontabs/azuracast: Permission denied
line 10 is: " >>/var/spool/cron/crontabs/azuracast
root@stream:~/azuracast_installer# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"- 1/10 prepare_system
log of the step 7 : - 7/10 setup_azuracast_install
sftpgo is already the newest version (2.4.4-1ppa1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Cloning into '/var/azuracast/www'...
Switched to a new branch 'stable'
Branch 'stable' set up to track remote branch 'stable' from 'origin'.
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- Root composer.json requires PHP extension ext-gd * but it is missing from your system. Install or enable PHP's gd extension.
Problem 2
- laminas/laminas-code is locked to version 4.7.1 and an update of this package was not requested.
- laminas/laminas-code 4.7.1 requires php >=7.4, <8.2 -> your php version (8.2.3) does not satisfy that requirement.
Problem 3
- laminas/laminas-code 4.7.1 requires php >=7.4, <8.2 -> your php version (8.2.3) does not satisfy that requirement.
- friendsofphp/proxy-manager-lts v1.0.13 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[4.7.1].
- friendsofphp/proxy-manager-lts is locked to version v1.0.13 and an update of this package was not requested.
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/8.2/cli/php.ini
- /etc/php/8.2/cli/conf.d/10-mysqlnd.ini
- /etc/php/8.2/cli/conf.d/10-opcache.ini
- /etc/php/8.2/cli/conf.d/10-pdo.ini
- /etc/php/8.2/cli/conf.d/15-xml.ini
- /etc/php/8.2/cli/conf.d/20-bcmath.ini
- /etc/php/8.2/cli/conf.d/20-calendar.ini
- /etc/php/8.2/cli/conf.d/20-ctype.ini
- /etc/php/8.2/cli/conf.d/20-curl.ini
- /etc/php/8.2/cli/conf.d/20-dom.ini
- /etc/php/8.2/cli/conf.d/20-exif.ini
- /etc/php/8.2/cli/conf.d/20-ffi.ini
- /etc/php/8.2/cli/conf.d/20-fileinfo.ini
- /etc/php/8.2/cli/conf.d/20-ftp.ini
- /etc/php/8.2/cli/conf.d/20-gettext.ini
- /etc/php/8.2/cli/conf.d/20-gmp.ini
- /etc/php/8.2/cli/conf.d/20-iconv.ini
- /etc/php/8.2/cli/conf.d/20-igbinary.ini
- /etc/php/8.2/cli/conf.d/20-intl.ini
- /etc/php/8.2/cli/conf.d/20-mbstring.ini
- /etc/php/8.2/cli/conf.d/20-mysqli.ini
- /etc/php/8.2/cli/conf.d/20-pdo_mysql.ini
- /etc/php/8.2/cli/conf.d/20-phar.ini
- /etc/php/8.2/cli/conf.d/20-posix.ini
- /etc/php/8.2/cli/conf.d/20-readline.ini
- /etc/php/8.2/cli/conf.d/20-redis.ini
- /etc/php/8.2/cli/conf.d/20-shmop.ini
- /etc/php/8.2/cli/conf.d/20-simplexml.ini
- /etc/php/8.2/cli/conf.d/20-sockets.ini
- /etc/php/8.2/cli/conf.d/20-sysvmsg.ini
- /etc/php/8.2/cli/conf.d/20-sysvsem.ini
- /etc/php/8.2/cli/conf.d/20-sysvshm.ini
- /etc/php/8.2/cli/conf.d/20-tokenizer.ini
- /etc/php/8.2/cli/conf.d/20-xmlreader.ini
- /etc/php/8.2/cli/conf.d/20-xmlwriter.ini
- /etc/php/8.2/cli/conf.d/20-xsl.ini
- /etc/php/8.2/cli/conf.d/20-zip.ini
- /etc/php/8.2/cli/conf.d/30-maxminddb.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-gd` to temporarily ignore these required extensions.
Dear
How to make a multi host? for example:
Thanks
Not sure if this is going to be in your ballpark or not, but figured you might want to know about it anyway:
I have two installations of AzuraCast running locally, one using your installer script, and one using the normal docker method. When I try to restore a backup on the installation using your script, it dies. See below:
root@azuraautomate:/home/doc# /var/azuracast/www/bin/console azuracast:restore /home/doc/automatic_backup_20230708_054046.tgz
AzuraCast Restore
=================
Please wait while the backup is restored...
Extracting backup file...
-------------------------
tmp/azuracast_backup_mariadb/db.sql
Importing database...
---------------------
Running standard updates...
---------------------------
AzuraCast Setup
===============
Welcome to AzuraCast. Please wait while some key dependencies of AzuraCast are set up...
Initialize AzuraCast
====================
Initializing essential settings...
* Environment: Production
* Installation Method: Ansible
Running Database Migrations
---------------------------
Database Migrations
===================
[OK] Database is already up to date!
Generating Database Proxy Classes
---------------------------------
Processing entity "App\Entity\Settings"
Processing entity "App\Entity\SongHistory"
Processing entity "App\Entity\StorageLocation"
Processing entity "App\Entity\StationMedia"
Processing entity "App\Entity\StationPlaylistMedia"
Processing entity "App\Entity\StationSchedule"
Processing entity "App\Entity\UnprocessableMedia"
Processing entity "App\Entity\Analytics"
Processing entity "App\Entity\AuditLog"
Processing entity "App\Entity\PodcastCategory"
Processing entity "App\Entity\StationQueue"
Processing entity "App\Entity\StationWebhook"
Processing entity "App\Entity\Role"
Processing entity "App\Entity\Listener"
Processing entity "App\Entity\Station"
Processing entity "App\Entity\StationHlsStream"
Processing entity "App\Entity\StationPlaylistFolder"
Processing entity "App\Entity\RolePermission"
Processing entity "App\Entity\UserLoginToken"
Processing entity "App\Entity\StationRemote"
Processing entity "App\Entity\User"
Processing entity "App\Entity\StationMediaCustomField"
Processing entity "App\Entity\Relay"
Processing entity "App\Entity\SftpUser"
Processing entity "App\Entity\PodcastEpisode"
Processing entity "App\Entity\StationRequest"
Processing entity "App\Entity\StationPlaylist"
Processing entity "App\Entity\StationStreamer"
Processing entity "App\Entity\Podcast"
Processing entity "App\Entity\CustomField"
Processing entity "App\Entity\ApiKey"
Processing entity "App\Entity\PodcastMedia"
Processing entity "App\Entity\StationMount"
Processing entity "App\Entity\StationStreamerBroadcast"
Proxy classes generated to "/var/azuracast/www_tmp/proxies"
Reload System Data
------------------
[2023-07-10T01:27:03.871323+00:00] AzuraCast.ERROR: Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nowplaying' in 'field list' (uncaught exception) at /var/azuracast/www/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php line 67 while running console command `azuracast:restore` {"exception":"[object] (Doctrine\\DBAL\\Exception\\InvalidFieldNameException(code: 1054): An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nowplaying' in 'field list' at /var/azuracast/www/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:67)\n[previous exception] [object] (Doctrine\\DBAL\\Driver\\PDO\\Exception(code: 1054): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nowplaying' in 'field list' at /var/azuracast/www/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28)\n[previous exception] [object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nowplaying' in 'field list' at /var/azuracast/www/vendor/doctrine/dbal/src/Driver/PDO/Connection.php:31)"} []
[2023-07-10T01:27:03.872080+00:00] AzuraCast.WARNING: Console command `azuracast:restore` exited with error code 1054. [] []
In ExceptionConverter.php line 67:
An exception occurred while executing a query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nowplaying' in 'field list'
In Exception.php line 28:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nowplaying' in 'field list'
In Connection.php line 31:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'nowplaying' in 'field list'
azuracast:restore [--restore] [--release] [--] [<path>]
The one I restored with the docker installation worked fine. This is a restore without media, and is a known good backup.
Any plan for the latest ubuntu version like 22.10 or 23*?
Thank you
Hello o/
and thx for your work and time ;)
i try to install on this system:
root@stream:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"
i tried many times, so each time à start a new try, i launch this command:
cd ~ && rm -Rf azuracast_installer && rm -Rf /var/azuracast && rm -Rf /etc/apt/sources.list.d/ && apt purge supervisor mariadb-server mariadb-server-core mariadb-common && apt purge nginx && deluser azuracast && apt autoremove
i encounter this issue for now (reproductible each time on my server) during this step: - 4/10 setup_stations
The following packages have unmet dependencies:
libgd-dev : Depends: libgd3 (= 2.3.0-2ubuntu2) but 2.3.3-9+ubuntu22.04.1+deb.sury.org+1 is to be installed
libpcre2-dev : Depends: libpcre2-8-0 (= 10.39-3ubuntu0.1) but 10.40-1+ubuntu22.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.
trying to find a way to fix this,
thx for your help ;)
Actual Plan
Hey! Is there any option, to add the installation and supervisor config for Meilisearch?
It's been driving me crazy this red error, and i don't think so that AzuraCast will fix their Ansible installer...
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.