PMS 1.22.2.4282 does not install correctly in Ubuntu 20.10

Server Version#: 1.22.2.4282
Player Version#: N/A

When I go to install the plexmediaserver package, I get an error:

Failed to write 'change' to '/sys/devices/virtual/input/input39/uevent': Cannot allocate memory
dpkg: error processing package plexmediaserver (--install):

Even when installing through snap, it seems to fail to install correctly as the plexmediaserver service is not available or cannot be started. I tried rebooting and trying the install again using the .deb package, same error.

This is a fresh new install, there are no previously existing versions of Plex, or any versions that were uninstalled.

My next step was to find an older working version, and after a lot of attempts, I found the two versions where the install happens succesfully, and the same error pops up.

Version where error starts occuring - 1.18.3.2156-349e9837e.
Version where install happens successfully and plexmediaserver.service is active and running - 1.17.0.1841-d42cfa161.

In case it’s relevant, my system specifications.
Ryzen 5600X
ASUS TUF Gaming X570-Plus Wifi
GSkill 32GB 3600Mhz RAM CL16
AMD R9 290

Let me know if there is something I need to do to fix this issue, or if you require any further information.

Full logs when running sudo dpkg -i plexmediaserver_1.22.2.4282-a97b03fad_amd64.deb

Preparing to unpack plexmediaserver_1.22.2.4282-a97b03fad_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.22.2.4282-a97b03fad) ...
Setting up plexmediaserver (1.22.2.4282-a97b03fad) ...
PlexMediaServer install: PlexMediaServer-1.22.2.4282-a97b03fad - Installation starting.
PlexMediaServer install: 
PlexMediaServer install: Now installing based on:
PlexMediaServer install:   Installation Type:   Update
PlexMediaServer install:   Process Control:     systemd
PlexMediaServer install:   Plex User:           plex
PlexMediaServer install:   Plex Group:          plex
PlexMediaServer install:   Video Group:         render
PlexMediaServer install:   Metadata Dir:        /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install:   Temp Directory:      /tmp 
PlexMediaServer install:   Lang Encoding:       en_US.UTF-8
PlexMediaServer install:   Intel QSV Hardware:  Not found
PlexMediaServer install:   Nvidia GPU card:     Not Found
PlexMediaServer install:  
PlexMediaServer install:   OpenCL library:      Installed
PlexMediaServer install:   Beignet package:     Installed
PlexMediaServer install:  
PlexMediaServer install: Completing final configuration.
Failed to write 'change' to '/sys/devices/virtual/input/input39/uevent': Cannot allocate memory
dpkg: error processing package plexmediaserver (--install):
 installed plexmediaserver package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.32-0ubuntu3) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu4) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Errors were encountered while processing:
 plexmediaserver

Logs from the successful install.

Selecting previously unselected package plexmediaserver.
(Reading database ... 233890 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.17.0.1841-d42cfa161_amd64.deb ...
Unpacking plexmediaserver (1.17.0.1841-d42cfa161) ...
Setting up plexmediaserver (1.17.0.1841-d42cfa161) ...

##################################################################
#  NOTE: Your system does not have udev installed. Without udev  #
#        you won't be able to use DVBLogic's TVButler for DVR    #
#        or for LiveTV                                           #
#                                                                #
#        Please install udev and reinstall Plex Media Server to  #
#        to enable TV Butler support in Plex Media Server.       #
#                                                                #
#        To install udev run: sudo apt-get install udev          #
#                                                                #
##################################################################

Created symlink /etc/systemd/system/multi-user.target.wants/plexmediaserver.service → /lib/systemd/system/plexmediaserver.service.
Processing triggers for libc-bin (2.32-0ubuntu3) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu2) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu4) ...
Processing triggers for mime-support (3.64ubuntu1) ...

Bonus - all the versions I tried, the three versions up to and including 1.17.0.1841-d42cfa161 worked successfully.

plexmediaserver_1.16.3.1402-22929c8a2_amd64.deb
plexmediaserver_1.17.0.1709-982421575_amd64.deb
plexmediaserver_1.17.0.1841-d42cfa161_amd64.deb
plexmediaserver_1.18.3.2156-349e9837e_amd64.deb
plexmediaserver_1.18.9.2578-513b381af_amd64.deb
plexmediaserver_1.19.5.3112-b23ab3896_amd64.deb
plexmediaserver_1.20.5.3600-47c0d9038_amd64.deb
plexmediaserver_1.22.0.4163-d8c4875dd_amd64.deb
plexmediaserver_1.22.1.4275-48e10484b_amd64.deb
plexmediaserver_1.22.2.4282-a97b03fad_amd64.deb

Do you have an IR or special (CKB) keyboard driver installed ?

It’s been known to conflict. No idea why.

Failed to write 'change' to '/sys/devices/virtual/input/input39/uevent': Cannot allocate memory

So after a good night’s sleep and your reply, I decided to tackle this issue from Ubuntu’s side - what is there at this input?

I ran cat /sys/devices/virtual/input/input39/name, and it gave me btnx keyboard. This I immediately recognised, I had installed GitHub - cdobrich/btnx: btnx (Button Extension) is a daemon that enables rerouting of mouse button events through uinput as keyboard and other mouse button combinations. btnx requires btnx-config, a configuration tool for btnx. See https://github.com/cdobrich/btnx-config/ for more details. in order to try and map the buttons on my G604 to work in Ubuntu. It did not work, so I have no use for it, so I went ahead and uninstalled it (good reminder not to keep unnecessary stuff).

After doing so, the plexmediaserver install was successful!! Yay! :grin:

I’ll leave it up to you to figure out whether this is something that can be fixed at your end as well (for future, in case other people run into similar issues).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.