Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: CamillaDSP Pipeline editor not working after 8.2.5 update
#11
Can also reproduce. Prob something with nginx redirect.
Temp work around: goto http://<your system name or ip>:15000
For this you still need to enable the editor at moode camilladsp config page.
Reply
#12
(01-23-2023, 09:26 PM)bitlab Wrote: Can also reproduce. Prob something with nginx redirect.
Temp work around: goto http://<your system name or ip>:15000
For this you still need to enable the editor at moode camilladsp config page.

Interesting. it works fine on a fresh image.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#13
@Tim Curtis

Ah, you crafty devils...the old proxy trick. Somehow I knew my "got it" couldn't be that easy Rolleyes

Don't mind the hostname; I didn't get around to updating it to match the updated version on this test host.

Code:
pi@m824p4b:~ $ ls -l /etc/nginx/sites-enabled/
total 0
lrwxrwxrwx 1 root root 42 Jan 23 06:32 moode-http.conf -> /etc/nginx/sites-available/moode-http.conf

Code:
pi@m824p4b:~ $ cat /etc/nginx/sites-available/moode-http.conf
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or Wordpress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www;

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html;

#    server_name _;

    include moode-locations.conf;
}

Code:
pi@m824p4b:~ $ cat /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    client_max_body_size 75M;

    ##
    # SSL Settings
    ##

    #ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    #ssl_prefer_server_ciphers on;

    ##
    # Logging Settings
    ##

    access_log off;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # Virtual Host Configs
    ##

    #include /etc/nginx/conf.d/*.conf;
    #include /etc/nginx/sites-enabled/*;

    ##
    # moOde UI server
    ##

    server {
        listen 80;

        location / {
            root /var/www;
            index index.html index.php;
            try_files $uri $uri/ /coverart.php;
        }

        location /imagesw/ {
            root /var/local/www;
        }

        # php-fpm
        location ~ \.php$ {
            root /var/www;
            fastcgi_pass unix:/run/php/php7.4-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $request_filename;
            include fastcgi_params;
        }
    }
}

Code:
pi@m824p4b:~ $ cat /etc/nginx/moode-locations.conf
##
# This file contains the standard web moode-ui locations
##

include proxy.conf;

location / {
                   root /var/www;
                   index index.html index.php;
                   try_files $uri $uri/ /coverart.php;
}

location /imagesw/ {
              root /var/local/www;
}

# php-fpm
location ~ \.php$ {
              root /var/www;
              fastcgi_pass unix:/run/php/php7.4-fpm.sock;
              fastcgi_index index.php;
              fastcgi_param SCRIPT_FILENAME $request_filename;
              include fastcgi_params;
}

# make camillagui available from the same webserver
location /camilladsp/ {
    proxy_pass http://127.0.0.1:15000/;
}

# for camillagui also the api should be redirected
location /api/ {
    proxy_pass http://127.0.0.1:15000/api/;
}
Regards,
Kent
Reply
#14
(01-23-2023, 09:58 PM)TheOldPresbyope Wrote: @Tim Curtis

Ah, you crafty devils...the old proxy trick. Somehow I knew my "got it" couldn't be that easy Rolleyes

Don't mind the hostname; I didn't get around to updating it to match the updated version on this test host.

Code:
pi@m824p4b:~ $ ls -l /etc/nginx/sites-enabled/
total 0
lrwxrwxrwx 1 root root 42 Jan 23 06:32 moode-http.conf -> /etc/nginx/sites-available/moode-http.conf

Code:
pi@m824p4b:~ $ cat /etc/nginx/sites-available/moode-http.conf
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or Wordpress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##

server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /var/www;

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.nginx-debian.html;

#    server_name _;

    include moode-locations.conf;
}

Code:
pi@m824p4b:~ $ cat /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    # server_tokens off;

    # server_names_hash_bucket_size 64;
    # server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    client_max_body_size 75M;

    ##
    # SSL Settings
    ##

    #ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
    #ssl_prefer_server_ciphers on;

    ##
    # Logging Settings
    ##

    access_log off;
    error_log /var/log/nginx/error.log;

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    # gzip_vary on;
    # gzip_proxied any;
    # gzip_comp_level 6;
    # gzip_buffers 16 8k;
    # gzip_http_version 1.1;
    # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;

    ##
    # Virtual Host Configs
    ##

    #include /etc/nginx/conf.d/*.conf;
    #include /etc/nginx/sites-enabled/*;

    ##
    # moOde UI server
    ##

    server {
        listen 80;

        location / {
            root /var/www;
            index index.html index.php;
            try_files $uri $uri/ /coverart.php;
        }

        location /imagesw/ {
            root /var/local/www;
        }

        # php-fpm
        location ~ \.php$ {
            root /var/www;
            fastcgi_pass unix:/run/php/php7.4-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $request_filename;
            include fastcgi_params;
        }
    }
}

Code:
pi@m824p4b:~ $ cat /etc/nginx/moode-locations.conf
##
# This file contains the standard web moode-ui locations
##

include proxy.conf;

location / {
                   root /var/www;
                   index index.html index.php;
                   try_files $uri $uri/ /coverart.php;
}

location /imagesw/ {
              root /var/local/www;
}

# php-fpm
location ~ \.php$ {
              root /var/www;
              fastcgi_pass unix:/run/php/php7.4-fpm.sock;
              fastcgi_index index.php;
              fastcgi_param SCRIPT_FILENAME $request_filename;
              include fastcgi_params;
}

# make camillagui available from the same webserver
location /camilladsp/ {
    proxy_pass http://127.0.0.1:15000/;
}

# for camillagui also the api should be redirected
location /api/ {
    proxy_pass http://127.0.0.1:15000/api/;
}
Regards,
Kent

It looks like /etc/nginx/nginx.conf was not updated by in-place update and I think I know why. If you want to see what it should look like https://github.com/moode-player/moode/bl...write.conf

I'll re-test the update to confirm.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#15
@Tim Curtis

Yup.

Reverted cdsp-configeditor.php to the original updated version, replaced nginx.conf with the should-have-been version, and rebooted. Now the CamillaDSP Pipeline Editor comes up as advertised.

Regards,
Kent
Reply
#16
Thx for confirming :-)

Actually two files in the update failed to copy due to a bug in the moode-player package :-0

/etc/nginx/nginx/conf
/etc/pam.d/sudo

The updated versions are in /usr./share/moode-player/etc/

I updated the moode-player package in Cloudsmith and will prepare a manual patch in the coming days for any in-place updates prior to tonights fix.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#17
Run the commands below to fix the Camilla issue. This is only needed for in-place updates applied prior to today 02/24.

Code:
sudo cp -f /usr/share/moode-player/etc/nginx/nginx.conf /etc/nginx/
sudo cp -f /usr/share/moode-player/etc/pam.d/sudo /etc/pam.d/
sudo reboot
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#18
(01-24-2023, 11:42 AM)Tim Curtis Wrote: Run the commands below to fix the Camilla issue. This is only needed for in-place updates applied prior to today 02/24.

Code:
sudo cp -f /usr/share/moode-player/etc/nginx/nginx.conf /etc/nginx/
sudo cp -f /usr/share/moode-player/etc/pam.d/sudo /etc/pam.d/
sudo reboot

I needed a reboot, but I confirm this sorted the issue on my player.
Thanks.
----------------
Robert
Reply
#19
(01-24-2023, 03:11 PM)the_bertrum Wrote:
(01-24-2023, 11:42 AM)Tim Curtis Wrote: Run the commands below to fix the Camilla issue. This is only needed for in-place updates applied prior to today 02/24.

Code:
sudo cp -f /usr/share/moode-player/etc/nginx/nginx.conf /etc/nginx/
sudo cp -f /usr/share/moode-player/etc/pam.d/sudo /etc/pam.d/
sudo reboot

I needed a reboot, but I confirm this sorted the issue on my player.
Thanks.

I just edited the posts and added a reboot command.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#20
(01-23-2023, 12:12 PM)Tim Curtis Wrote: I've found that sometimes after initially opening the editor the main part of the page below the heading is empty. Doing Menu, refresh fixes it.

I'll add to the TODO list to investigate.

Hello Tim,

I have the same issue with Camelia dsp and menu/refresh doesn't work for me (Rasp 4). BTW congratulations for the new update warning, it is really convenient.
Reply


Forum Jump: