Well im going to have to try this…
… because my plexamp Pi (which was working with the date change) can no no longer be cast to from plexamp. It doesnt show up in the cast list…it can from plex still though???
Thanks for the instructions but for us CLI and SSH noobs pointing to a command on [1} is a little hard for us to understand.
The link seems to goe to a page of answers where many commands seem to be shared.
Would it be possible to add the correct command into the aboive instructions?
Sorry way over my head. I can even ubnderstand how to install the ca-certificates from debian
guess ill just have to get a massive aerial and try to get radio 
Cheers.
edited my previous answer with more details.
Thank you so much. Sorry for being such a ssh noob.
I followed the instructions and all outputs were as per your awesome instuctions.
The only thing im not sure about is step 4
when i opened /etc/systemd/system/plexamp.service
the file is empty. Your instuctuions say add so it looks “similar” to…
So I added
ExecStart=/usr/bin/node --use-openssl-ca /home/pi/plexamp/server/server.prod.js
and saved.
?Is that right.
Anyway before this (after fixing date as previous hack) I could not cast to plexamp Pi from Plexamp, but I COULD cast cast to plexamp Pi from plex web and plex android/ios
Now I cant cast to plexamp Pi at all so i guess I did something wrong.
step 4 depends on how you start plexamp. if you don’t do it via systemd service, or it goes by a different name you have to adapt your method accordingly.
the relevant part is that you need to tell nodejs to not use its bundled (and outdated) ca-certificates but the ones installed system-wide (which we just made sure are fresh) with that option --use-openssl-ca then save and restart plexamp as you normally do.
to see the results you can either start it manually with the entire command, e.g.
on rpi
/usr/bin/node --use-openssl-ca /home/pi/plexamp/server/server.prod.js
or look at the systemd logs (replace plexamp.service with your service name if necessary)
on rpi
$ journalctl -xfu plexamp.service
Thanks @xkonni was worried I would have to bench my pi!
As others have queried my “plexamp.service” file was in a different location, “/lib/systemd/system/plexamp.service”.
Great step-by-step guide - Thanks for your effort and your contribution on this topic.
Now we have a solution and I hope, that everybody who’s running Plexamp on Raspberry will found this thread!
@elan The community found a solution but, pressure is rising! We are struggling with circumstances because of a quite old, unofficial, beta dev stage. Would be really nice if Plex Inc. could give us something shiny soooon.
alright. glad you found it.
if you know the service name, you can see the location of the service-file in
$ systemctl status plexamp
● plexamp.service - Plexamp
Loaded: loaded (/etc/systemd/system/plexamp.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2021-10-07 00:03:31 CEST; 1 day 15h ago
Main PID: 17456 (node)
Tasks: 20 (limit: 2068)
CGroup: /system.slice/plexamp.service
└─17456 /usr/bin/node --use-openssl-ca /home/pi/plexamp/server/server.prod.js
and even
$ sudo systemctl edit --full plexamp
guess I’ll add that to the instructions.
ideally the services in /usr/lib/systemd and /lib/systemd are for services coming with packages and user-configured services go to /etc/systemd.
if a service exists in both the one in /etc is used, so you can override services from packages as well. just fyi 
Thank you xkonni for taking the time to find the fix and for writing the guide!
Im really apreciating the help but you assume i know something about what im doing.
I guess I did however I manage to get this working in the begining so…?
anyway I dont knbow what you mean by “how I start plexamp” it starts by itself afaik. Or what “systemmd” even is.
if i run
journalctl -xfu plexamp.service
i get returned
– Logs begin at Sat 2021-10-09 00:49:08 NZDT. –
Oct 09 11:34:51 root systemd[1]: /etc/systemd/system/plexamp.service:1: Assignme nt outside of section. Ignoring.
Oct 09 11:34:51 root systemd[1]: plexamp.service: Service has no ExecStart=, Exe cStop=, or SuccessAction=. Refusing.
Cheers
sounds like you manually edited /etc/systemd/system/plexamp.service and used another location before.
on rpi
$ ls /lib/systemd/system/plexamp.service
if it exists, move it to /etc/systemd/system
on rpi
$ sudo mv /lib/systemd/system/plexamp.service /etc/systemd/system/
now reload systemd
on rpi
$ sudo systemctl daemon-reload
make sure that plexamp.service from /etc/systemd/system is used
on rpi
$ systemctl status plexamp
● plexamp.service - Plexamp
Loaded: loaded (/etc/systemd/system/plexamp.service; enabled; vendor preset: enabled)
...
edit plexamp.service
on rpi
sudo systemctl edit --full plexamp
and add --use-openssl-ca to the exec-start line, like this, but don’t edit the rest, just add this argument!
[more lines]
ExecStart=/usr/bin/node --use-openssl-ca /home/pi/plexamp/server/server.prod.js
[more lines]
and restart plexamp
on rpi
$ sudo systemctl restart plexamp
check the status again
it should he happy and show something like
on rpi
$ systemctl status plexamp
● plexamp.service - Plexamp
Loaded: loaded (/etc/systemd/system/plexamp.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-10-09 12:27:23 CEST; 1s ago
Main PID: 21764 (node)
Tasks: 6 (limit: 2068)
CGroup: /system.slice/plexamp.service
└─21764 /usr/bin/node --use-openssl-ca /home/pi/plexamp/server/server.prod.js
Oct 09 12:27:23 hifiberry1 systemd[1]: Started Plexamp.
if all that fails, maybe go over the initial setup again, double check everything and then apply the fix from here.
Thanks so much for bearing with me
When i run $ systemctl status plexamp
It returns
* plexamp.service - Plexamp
Loaded: loaded (/etc/systemd/system/plexamp.service; enabled; vendor preset:
Active: active (running) since Sun 2021-10-10 00:56:10 NZDT; 11s ago
Main PID: 3243 (node)
Tasks: 18 (limit: 2065)
CGroup: /system.slice/plexamp.service
`-3243 /usr/bin/node /home/pi/plexamp/server/server.prod.js
Oct 10 00:56:15 root node[3243]: warn: DEVICE: Server connection https://127.0.0
Oct 10 00:56:15 root node[3243]: warn: DEVICE: Server connection https://192.168
Oct 10 00:56:16 root node[3243]: info: [CLOUD] Registered device.
Oct 10 00:56:16 root node[3243]: error: DEVICE: Error loading media providers fr
Oct 10 00:56:16 root node[3243]: info: [PUBSUB] Connected.
Oct 10 00:56:16 root node[3243]: debug: DEVICE: Fetched 7 devices from the cloud
Oct 10 00:56:16 root node[3243]: error: DEVICE: Error loading providers or resou
Oct 10 00:56:20 root node[3243]: warn: DEVICE: Server connection https://122.56.
Oct 10 00:56:20 root node[3243]: debug: DEVICE: Trying last-ditch relay connecti
Oct 10 00:56:20 root node[3243]: debug: HTTP: Issuing request to https://139-162
* plexamp.service - Plexamp
Loaded: loaded (/etc/systemd/system/plexamp.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-10-10 00:56:10 NZDT; 11s ago
Main PID: 3243 (node)
Tasks: 18 (limit: 2065)
CGroup: /system.slice/plexamp.service
`-3243 /usr/bin/node /home/pi/plexamp/server/server.prod.js
Oct 10 00:56:15 root node[3243]: warn: DEVICE: Server connection https://127.0.0.1:32400 didn't work for MEDIA: co
Oct 10 00:56:15 root node[3243]: warn: DEVICE: Server connection https://192.168.1.76:32400 didn't work for MEDIA:
Oct 10 00:56:16 root node[3243]: info: [CLOUD] Registered device.
Oct 10 00:56:16 root node[3243]: error: DEVICE: Error loading media providers from plex.tv: Error: Request failed
Oct 10 00:56:16 root node[3243]: info: [PUBSUB] Connected.
Oct 10 00:56:16 root node[3243]: debug: DEVICE: Fetched 7 devices from the cloud.
Oct 10 00:56:16 root node[3243]: error: DEVICE: Error loading providers or resources, not merging.
Oct 10 00:56:20 root node[3243]: warn: DEVICE: Server connection https://122.56.197.129:25116 didn't work for MEDI
Oct 10 00:56:20 root node[3243]: debug: DEVICE: Trying last-ditch relay connection https://139-162-15-38.ac5b94de7
Oct 10 00:56:20 root node[3243]: debug: HTTP: Issuing request to https://139-162-15-38.ac5b94de77fb46769ac213c6cdb
~
~
~
~
~
~
~
~
~
~
~
~
lines 1-18/18 (END)
* plexamp.service - Plexamp
Loaded: loaded (/etc/systemd/system/plexamp.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-10-10 00:56:10 NZDT; 11s ago
Main PID: 3243 (node)
Tasks: 18 (limit: 2065)
CGroup: /system.slice/plexamp.service
`-3243 /usr/bin/node /home/pi/plexamp/server/server.prod.js
Oct 10 00:56:15 root node[3243]: warn: DEVICE: Server connection https://127.0.0.1:32400 didn't work for MEDIA: connect ECONNREFUSED 127.0.0.1:32400
Oct 10 00:56:15 root node[3243]: warn: DEVICE: Server connection https://192.168.1.76:32400 didn't work for MEDIA: certificate has expired
Oct 10 00:56:16 root node[3243]: info: [CLOUD] Registered device.
Oct 10 00:56:16 root node[3243]: error: DEVICE: Error loading media providers from plex.tv: Error: Request failed with status code 406
Oct 10 00:56:16 root node[3243]: info: [PUBSUB] Connected.
Oct 10 00:56:16 root node[3243]: debug: DEVICE: Fetched 7 devices from the cloud.
Oct 10 00:56:16 root node[3243]: error: DEVICE: Error loading providers or resources, not merging.
Oct 10 00:56:20 root node[3243]: warn: DEVICE: Server connection https://122.56.197.129:25116 didn't work for MEDIA: timeout of 5000ms exceeded
Oct 10 00:56:20 root node[3243]: debug: DEVICE: Trying last-ditch relay connection https://139-162-15-38.ac5b94de77fb46769ac213c6cdb11056.plex.direct:844
Oct 10 00:56:20 root node[3243]: debug: HTTP: Issuing request to https://139-162-15-38.ac5b94de77fb46769ac213c6cdb11056.plex.direct:8443/
~
Something is now working.
Plexamp on pi is NOW visable to cast to from all devices using plex or plexamp yet wont play any music. this is exactly what happened with the original issue occured on Oct 1
Ill try the whole thing again tomorrow…its 1:00am here now
YAY ITS WORKING
Went through it all again
somehow --use-openssl-ca hadnt been saved in the plexamp.service
Not sure ssh doesnt seem to have a simple ^S for save?
Thankyou sooo much @xkonni for staying with my noob abilities and repeatedly writing instructions i could finally understand.
glad to hear it 
ctrl-s is a shortcut in some editors, depending on which one you start (nano, vim, …) in your ssh-session you have to use the appropriate shortcut (ctrl-o or ctrl-x, y for nano, :w / :wq for vim and so on). ssh only provides a shell.
I’m having issues connecting using Plexamp 1.1.0 on Ubuntu 16.04.
I was able to disable the X3 and make sure I have the X1 cert installed.
However, I’m running the app from an appimage, and plexamp.service does not exist.
Does anyone know of an alternate way to force openssl usage by Plexamp?
guess you need to edit the appimage to change the arguments or just install v1.1 the regular way and apply the fix.
Does anyone know how to create a new server.json file now that the old version of Plexamp desktop also doesn’t work?
I can sign in but as it fails to connect the server.json file only contains the “player” and “user” sections. It should also have a “server” and “sate” sections
please create a separate topic for this question.
Thanks! I’d been slavishly navigating to the files all this time.
As for the directory I’m a bit of noob so I just do whatever the guide I’m using tells me to do most of the time.
Tried your certificate-trick above, but are now only seeing this on a fresh install:
plexamp3:~ $ systemctl status plexamp
● plexamp.service - Plexamp
Loaded: loaded (/etc/systemd/system/plexamp.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-12-20 14:53:10 CST; 5min ago
Main PID: 684 (node)
Tasks: 18 (limit: 3720)
CGroup: /system.slice/plexamp.service
└─684 /usr/bin/node --use-openssl-ca /home/brodersen/plexamp/server/server.prod.js
Dec 20 14:53:10 plexamp3 systemd[1]: Started Plexamp.
Dec 20 14:53:11 plexamp3 node[684]: Audio: Ready.
Dec 20 14:53:11 plexamp3 node[684]: Audio: Set player info.
Dec 20 14:53:12 plexamp3 node[684]: error: DEVICE: Error loading media providers from plex.tv: Error: Request failed with status code 406
Dec 20 14:53:12 plexamp3 node[684]: error: DEVICE: Error loading providers or resources, not merging.
Dec 20 14:53:12 plexamp3 node[684]: warn: DEVICE: Did not find a working server.
plexamp3:~ $
And this on an existing plexamp where only your cert-fixes were performed:
plexamp4:~ $ systemctl status plexamp
● plexamp.service - Plexamp
Loaded: loaded (/etc/systemd/system/plexamp.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-12-20 14:53:42 CST; 13min ago
Main PID: 15259 (node)
Tasks: 12 (limit: 3720)
CGroup: /system.slice/plexamp.service
└─15259 /usr/bin/node --use-openssl-ca /home/brodersen/plexamp/server/server.prod.js
Dec 20 14:53:44 plexamp4 node[15259]: error: DEVICE: Error loading media providers from plex.tv: Error: Request failed with status code 406
Dec 20 14:53:44 plexamp4 node[15259]: error: DEVICE: Error loading providers or resources, not merging.
Dec 20 14:53:44 plexamp4 node[15259]: info: [CLOUD] Registered device.
Dec 20 14:53:44 plexamp4 node[15259]: debug: METRICS: Saving latest cloud settings for metrics.
Dec 20 14:53:48 plexamp4 node[15259]: warn: DEVICE: Server connection https://172.18.0.1:32400 didn't work for Plex-OMV.kingsville.lan: timeout of 5000ms exceeded
Dec 20 14:53:48 plexamp4 node[15259]: warn: DEVICE: Server connection https://172.19.0.1:32400 didn't work for Plex-OMV.kingsville.lan: timeout of 5000ms exceeded
Dec 20 14:53:48 plexamp4 node[15259]: warn: DEVICE: Server connection https://172.20.0.1:32400 didn't work for Plex-OMV.kingsville.lan: timeout of 5000ms exceeded
Dec 20 14:53:48 plexamp4 node[15259]: warn: DEVICE: Server connection https://172.21.0.1:32400 didn't work for Plex-OMV.kingsville.lan: timeout of 5000ms exceeded
Dec 20 14:53:58 plexamp4 node[15259]: debug: DEVICE: Persisting devices because Podcasts was dirty.
Dec 20 14:53:58 plexamp4 node[15259]: debug: DEVICE: Persisting devices.
plexamp4:~ $
Is yours still working? Any ideas on this “status code 406”? seems to be related with authentication!