Closed TeslaXT closed 4 years ago
Hi @TeslaXT !
Sorry to hear that you are experiencing problems.
I think are editing the correct config.
There are some issues with passwords that contain special characters, like # characters and possibly others.
Here is an example: https://github.com/tizonia/tizonia-openmax-il/issues/603#issuecomment-518539537
Do you think this could be affecting you?
I don't think so my error isnt getting past the username onto the password, is there something I can provide you to help you better troubleshoot ? The error I get is "Need to provide a Spotify user name."
Could you please upload here the full debug logs? You can enable full logging by saving the contents of this file under:
/home/<user_name>/snap/<tizonia>/<snap_revision>/.log4crc
Please make sure to delete or obfuscate sensitive data, like passwords, etc.
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE log4c SYSTEM "">
<log4c version="1.2.1">
<config>
<bufsize>0</bufsize>
<debug level="2"/>
<nocleanup>0</nocleanup>
<reread>1</reread>
</config>
<category name="root" priority="trace" appender="stderr"/>
<layout name="tiz" type="tiz_layout"/>
<appender name="stderr" type="stream" layout="tiz"/>
</log4c>
Could you please upload here the full debug logs? You can enable full logging by saving the contents of this file under:
/home/<user_name>/snap/<tizonia>/<snap_revision>/.log4crc
Please make sure to delete or obfuscate sensitive data, like passwords, etc.
tizonia --spotify-artist "avicii"
[stderr] 31-03-2020 21:02:24.010 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:obtain_xdg_config_dir:577] --- XDG_CONFIG_DIRS [/snap/tizonia/297/etc/xdg:/etc/xdg/peppermint:/etc/xdg] ...
[stderr] 31-03-2020 21:02:24.013 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:obtain_xdg_config_dir:581] --- XDG_CONFIG_DIR - [/snap/tizonia/297/etc/xdg] ...
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:obtain_xdg_config_dir:605] --- Using config location /snap/tizonia/297/etc/xdg/tizonia/tizonia.conf
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:obtain_xdg_config_home:620] --- XDG_CONFIG_HOME [/home/originah/.config]
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:tiz_rcfile_init:664] --- Looking for [3] rc files...
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:tiz_rcfile_init:677] --- Checking for rc file [2] at [$TIZONIA_RC_FILE/tizonia.conf]
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:tiz_rcfile_init:685] --- rc file [$TIZONIA_RC_FILE/tizonia.conf] does not exist or user has no read access permission
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:tiz_rcfile_init:677] --- Checking for rc file [1] at [/home/originah/.config/tizonia/tizonia.conf]
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:tiz_rcfile_init:685] --- rc file [/home/originah/.config/tizonia/tizonia.conf] does not exist or user has no read access permission
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:tiz_rcfile_init:677] --- Checking for rc file [0] at [/snap/tizonia/297/etc/xdg/tizonia/tizonia.conf]
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [--Mode: conf; --]
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [tizonia-config v0.18.0 configuration file]
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:442] --- Section : [ilcore]
[stderr] 31-03-2020 21:02:24.015 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [Tizonia OpenMAX IL Core section]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [Component plugins discovery]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [-------------------------------------------------------------------------]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [A comma-separated list of paths to be scanned by the Tizonia IL Core when]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [searching for component plugins]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:448] --- key-value pair : [component-paths = $TIZONIA_PLUGINS_DIR]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:get_node:211] --- key : [component-paths]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:get_node:213] --- val : [$TIZONIA_PLUGINS_DIR]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:find_node:175] --- Key not found [component-paths] [(nil)]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [IL Core extension plugins discovery]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [-------------------------------------------------------------------------]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [A comma-separated list of paths to be scanned by the Tizonia IL Core when]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [searching for IL Core extensions (not implemented yet)]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:448] --- key-value pair : [extension-paths =]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:get_node:211] --- key : [extension-paths]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:get_node:213] --- val : []
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:find_node:175] --- Key not found [extension-paths] [(nil)]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:442] --- Section : [resource-management]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [Tizonia OpenMAX IL Resource Management (RM) section]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [Resource Manager (RM) daemon interface enable/disable switch]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [-------------------------------------------------------------------------]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [Whether the IL RM functionality is enabled or not]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:448] --- key-value pair : [enabled = false]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:get_node:211] --- key : [enabled]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:get_node:213] --- val : [false]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:find_node:175] --- Key not found [enabled] [(nil)]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [RM database]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [-------------------------------------------------------------------------]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [This is the path to the Resource Manager database]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:448] --- key-value pair : [rmdb = $TIZONIA_PLUGINS_DIR/usr/share/tizrmd/tizrm.db]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:get_node:211] --- key : [rmdb]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:get_node:213] --- val : [$TIZONIA_PLUGINS_DIR/usr/share/tizrmd/tizrm.db]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:find_node:175] --- Key not found [rmdb] [(nil)]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:442] --- Section : [plugins]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [OpenMAX IL Component plugins section]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [Each key-value pair represents a list of any data that a]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [specific component might need. The entries here must honor the following]
[stderr] 31-03-2020 21:02:24.016 - [PID:5790][TID:5790] [TRACE] [tiz.platform.rc] [tizrc.c:analyze_pattern:436] --- Comment : [format: OMX.component.name.key =
GNU Lesser GPL version 3 http://gnu.org/licenses/lgpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Need to provide a Spotify user name.
@TeslaXT
Im currently running peppermint OS and have installed tizonia via snap However I've edited the config in $HOME/snap/tizonia/current/.config/tizonia/ to contain my spotify > credentials, I've removed the #'s
My suspicion is that you are inadvertently running Tizonia from the debian package. This log here is interesting:
Checking for rc file [1] at [/home/originah/.config/tizonia/tizonia.conf]
This line here is what you would expect when running tizonia as installed by the native debian packaging (ie. using the install.sh script).
When Tizonia is installed using the Snap system, that line reads:
Checking for rc file [1] at [/home/
/snap/ / /.config/tizonia/tizonia.conf]
See https://snapcraft.io/docs/environment-variables
HOME
This environment variable is re-written by snapd so that each snap appears to have a dedicated home directory that is a subdirectory of the real home directory.
Typical value: /home/_user_name_/snap/_snap_name_/_snap_revision_ (e.g. /home/zyga/snap/hello-world/27)
Could you please use which
to find out the location of the tizonia binary?.
$ which tizonia
$ which tizonia
Returned
/snap/bin/tizonia
OK, I think I know what's going on. It looks like the support for snaps in Peppermint OS differs slightly from vanilla Ubuntu.
You can check the environment of a snapped application by using the following commands:
Ubuntu 18.04
$ snap run --shell tizonia
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
juan@ubuntu1804:/home/juan/Documents$ env | grep HOME
HOME=/home/juan/snap/tizonia/297
juan@ubuntu1804:/home/juan/Documents$
Peppermint OS
$ snap run --shell tizonia
bash: /usr/bin/dircolors: Permission denied
bash: /etc/bash_completion: Permission denied
juan@tizonia:/home/juan/Documents$ env | grep HOME
HOME=/home/juan/snap/tizonia/297
XDG_CONFIG_HOME=/home/juan/.config
juan@tizonia:/home/juan/Documents$
Note a couple of things:
See this link for a discussion of Snaps with strict confinement and access to XDG_CONFIG_HOME: https://forum.snapcraft.io/t/accessing-xdg-config-home-of-the-host/9780
So I think the problem is actually the Peppermint OS support for snaps which looks somehow non-standard. Perhaps deserving a bug in Peppermint OS?
Seemingly so, however I believe that bug may be best logged by yourself as what you've just said does not make as much sense to me as it should 😅 thankyou for the effort, I may spin tizonia up on a pi zero then and enable remote to control it from my laptop. Thankyou !!
So the initial reason I used snap was because I couldn't get the install curl to work, however this was just due to an issue with python (your assistance on my linux mint issue made it clear) so ive done a clean install and retried the curl install. I now have a working system !!!! Thankyou for all the help!
I've posted a question in the Peppermint OS forum. https://forum.peppermintos.com/index.php/topic,9581.0.html
Hopefully, someone will answer the question.
Also posted a question in the snapcraft forum: https://forum.snapcraft.io/t/xdg-config-home-is-defined-in-the-snap-environment/16355
And here is the link to the Snapd defect that I've raised after the feedback received from the Snapcraft developers: https://bugs.launchpad.net/snapd/+bug/1870335
Thanks I'll keep my eye on it
On Thu, 2 Apr 2020, 15:40 Tizonia, notifications@github.com wrote:
And here is the link to the Snapd defect that I've raised after the feedback received from the Snapcraft developers: https://bugs.launchpad.net/snapd/+bug/1870335
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/tizonia/tizonia-openmax-il/issues/703#issuecomment-607887404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXCCIIOHWTNSY5OICSOY7LRKSPWRANCNFSM4LTXMVTA .
Description
Im currently running peppermint OS and have installed tizonia via snap
However I've edited the config in $HOME/snap/tizonia/current/.config/tizonia/ to contain my spotify credentials, I've removed the #'s
However when I reload tizonia --spotify-artist "avicii" it requests me to enter a username for spotify
Am i editing the wrong config as this is the location shown in tizonia --help config
Now on top of this when i login using tizonia --spotify-user username --spotify-password password --spotify-artist "avicii"
Then everything logs in and works fine.
I'm very happy with this I just need to get this working for it to be perfect. Any help please.