Page 1 of 2

Alsamixer

PostPosted: 05 Jun 2018, 19:43
by nic
Just when I was about to start building an active setup using the Piano 2.1 DAC , I can no longer get into Alsamixer . I am using the ip:8080 and getting connection refused . Any ideas what is going on ?

cheers

Nic

Re: Alsamixer

PostPosted: 06 Jun 2018, 15:48
by hondagx35
Hi Nic,

the Alsamixer (Port 80(0) is only available on my latest image.
Did you modify something? Kernelupdate or so?

Frank

Re: Alsamixer

PostPosted: 06 Jun 2018, 17:22
by nic
Hi Frank , Thanks . I have the latest version running and was able to view the Alsamixer page previously . No changes made to kernel , 4.4.39-A is running .

Edit : It's running 0.4b .

cheers

Nic

Re: Alsamixer

PostPosted: 21 Jun 2018, 16:19
by cmh714
just use the command line....maybe not as elegant but it works.

Re: Alsamixer

PostPosted: 24 Jun 2018, 08:23
by grofweg
nic wrote:Hi Frank , Thanks . I have the latest version running and was able to view the Alsamixer page previously . No changes made to kernel , 4.4.39-A is running .

Edit : It's running 0.4b .

cheers

Nic
no changes to mpd as well? IIRC updating mpd using rern' s enhancements broke the alsamixer settings page in my case.

Sent from my Redmi 3S using Tapatalk

Re: Alsamixer

PostPosted: 24 Jun 2018, 12:18
by hondagx35
Hi grofweg ,

the alsamixer webui is implemented by a python script running in the background.

* Please get access to the console and check the status:
Code: Select all
systemctl status amixer-webui

The output should look like this:
Code: Select all
root@runeaudio(rw):~# systemctl status amixer-webui
● amixer-webui.service - Rune Audio Amixer-WebUI Service
   Loaded: loaded (/usr/lib/systemd/system/amixer-webui.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2016-02-22 15:40:17 CET; 2 years 4 months ago
 Main PID: 297 (python)
    Tasks: 1 (limit: 512)
   CGroup: /system.slice/amixer-webui.service
           └─297 python /usr/share/amixer-webui/alsamixer_webui.py

Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL equal
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: amixer: Mixer attach equal error: No such file or directory
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL equal
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: amixer: Control equal open error: No such file or directory
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:33] "GET /equalizer/ HTTP/1.1" 200 -
Jun 24 12:55:33 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:33] "GET /card/?1529837737653 HTTP/1.1" 200 -
Jun 24 12:55:47 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:47] "PUT /card/0/ HTTP/1.1" 200 -
Jun 24 12:55:47 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:47] "GET /controls/?1529837752020 HTTP/1.1" 200 -
Jun 24 12:55:49 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:49] "PUT /card/1/ HTTP/1.1" 200 -
Jun 24 12:55:49 runeaudio alsamixer_webui.py[297]: 192.168.0.106 - - [24/Jun/2018 12:55:49] "GET /controls/?1529837754318 HTTP/1.1" 200 -


If you get errors please post your output.

* Next try to start the script manually:
Code: Select all
systemctl stop amixer-webui
python /usr/share/amixer-webui/alsamixer_webui.py


Frank

- Get access to the console:
Use SSH from your PC
    If you are not familiar with SSH read this for Windows or this for Linux/MacOS
    The default login for RuneAudio is "root" with the password "rune" (without quotes).

- Use sftp to access files on Rune Audio:
Get WinSCP from here and install it.
When it opens setup the following:
- Session
File Protocol: SCP
Host name: The IP address of your Raspberry Pi
User name: root
Password: rune

That's it, connect and you can transfer files just by dragging and dropping.

Re: Alsamixer

PostPosted: 24 Jun 2018, 19:08
by grofweg
Thanks Frank,

just did a fresh install and installed rern' s addon, and upgraded mpd to 0.20.20.
With the same result, no acces to page 8080.
Output of a-mixer-webui:
Code: Select all
oot@AuneS6(rw):/home/root# systemctl status amixer-webui
● amixer-webui.service - Rune Audio Amixer-WebUI Service
   Loaded: loaded (/usr/lib/systemd/system/amixer-webui.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Sun 2018-06-24 19:54:36 CEST; 3s ago
  Process: 1516 ExecStart=/usr/share/amixer-webui/alsamixer_webui.py (code=exited, status=1/FAILURE)
 Main PID: 1516 (code=exited, status=1/FAILURE)

Jun 24 19:54:36 AuneS6 systemd[1]: amixer-webui.service: Unit entered failed state.
Jun 24 19:54:36 AuneS6 systemd[1]: amixer-webui.service: Failed with result 'exit-code'.
root@AuneS6(rw):/home/root# systemctl stop amixer-webui
root@AuneS6(rw):/home/root# python /usr/share/amixer-webui/alsamixer_webui.py
Traceback (most recent call last):
  File "/usr/share/amixer-webui/alsamixer_webui.py", line 17, in <module>
    from flask import Flask, Response
ImportError: No module named flask
root@AuneS6(rw):/home/root#



Greetings,

Martin

Re: Alsamixer

PostPosted: 25 Jun 2018, 07:03
by janui
Hi grofweg,
if you just run the thing which failed from the command prompt it will often report more details about the reason for failure. In this case run the command:
Code: Select all
/usr/share/amixer-webui/alsamixer_webui.py
See what comes back.
janui

Re: Alsamixer

PostPosted: 25 Jun 2018, 11:03
by grofweg
janui wrote:Hi grofweg,
if you just run the thing which failed from the command prompt it will often report more details about the reason for failure. In this case run the command:
Code: Select all
/usr/share/amixer-webui/alsamixer_webui.py
See what comes back.
janui


isn't that what I already did? To be clear here: I have 2 sd cards with Rune 0.4.
1- plain Rune 0.4, 8080 page accessible without issue.
2- Rune and installed rern enhancements. Updated mpd to 0.20.20. During this update, several python packages are updated! This might be part of the problem.

I have a rpi 3b.

Re: Alsamixer

PostPosted: 25 Jun 2018, 17:13
by hondagx35
Hi grofweg,

isn't that what I already did?

Yes.

Ther problem is missing FLASK package
Code: Select all
Traceback (most recent call last):
  File "/usr/share/amixer-webui/alsamixer_webui.py", line 17, in <module>
    from flask import Flask, Response
ImportError: No module named flask


Try:
Code: Select all
pip install flask


from amixer-webui doc:
Server requirements
* python2.6 and newer; or python3.3 and newer
* python-pip as prerequisites for Flask (pip install flask)
* alsa-utils
* alsaequal (OPTIONAL: for equalizer)


Frank