You are not logged in.
I setup a headless pc with Plex Server running on Arch. (4.1.6)
When built I installed Plex Server version 0.9.12.11 using makepgk from aur: https://aur.archlinux.org/packages/plex … -plexpass/
Everything worked well, fastest plex server I have had.
Then the new Plex version came out I upgraded using the same AUR repo which showed the latest version.
The upgrade showed no errors and if I check the version installed it shows Version 0.9.12.12 but going into Plex with browser it still says I am out of date?
Output for:
sudo pacman -Q plex-media-server-plexpassis:
plex-media-server-plexpass 0.9.12.12.1459-1
So it looks like the latest version is installed and running but not actually showing in the app. Is this an application issue?
Offline
Moving to AUR Issues...
Offline
Stupid question, but did you restart the plex server?
Offline
@Runical, yes restarted service and after no joy the system. No change.
Offline
After the restart question I looked at what is actually being started by the service. And if I am correct it starting Plex from the /usr/lib folder.
[Unit]
Description=Plex Media Server for Linux
After=network.target
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plexmediaserver/Library/Application Support"
Environment=PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
Environment=PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
Environment=PLEX_MEDIA_SERVER_TMPDIR=/tmp
]Environment=LD_LIBRARY_PATH=/usr/lib/plexmediaserver
Environment=LC_ALL=en_US.UTF-8
Environment=LANG=en_US.UTF-8
ExecStartPre=/bin/sh -c '/usr/bin/test -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" || /bin/mkdir -p "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}"'
ExecStart=/bin/sh -c '/usr/lib/plexmediaserver/Plex\ Media\ Server'
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=multi-user.targetI stopped the service using systemctl stop and then started Plex from the /opt/plexmediaserver/ folder using the start shell script
Then although my library is not showing it started the new version.
Does this mean that the AUR script below has copied the files incorrectly? This is the AUR PKGBUILD section that setup the install:
install -dm 755 "${pkgdir}"/{opt,etc/conf.d,usr/lib/systemd/system}
cp -dr --no-preserve='ownership' usr/lib/plexmediaserver "${pkgdir}"/opt/
install -m 644 plexmediaserver.service "${pkgdir}"/usr/lib/systemd/system/
install -m 644 plexmediaserver.conf.d "${pkgdir}"/etc/conf.d/plexmediaserver
install -dm 755 "${pkgdir}"/var/lib/plex
chown 421:421 -R "${pkgdir}"/var/lib/plex
install -dm 755 "${pkgdir}"/usr/share/licenses/plex-media-server
install -m 644 terms.txt "${pkgdir}"/usr/share/licenses/plex-media-server/Offline
Which package owns that service file and the directory /usr/lib/plexmediaserver? Neither seems to belong to that AUR package, so check with `pacman -Qo`.
Offline
Cannot find file or directory? Could I have installed some other package?
sudo pacman -Q --owns plex-media-server-plexpass
error: failed to find 'plex-media-server-plexpass' in PATH: No such file or directoryOffline
You need to call that on the file or directory. In this case /usr/lib/plexmediaserver
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
By call you mean run it against the directory:
sudo pacman -Qo /usr/lib/plexmediaserver/
error: No package owns /usr/lib/plexmediaserverOffline
Just out the interest of learning. Like having ownership of file or directory a package can own a file or directory? Or am I confused?
Offline
$ pacman -Qo /usr/share/oolite/
/usr/share/oolite/ is owned by oolite-dev 1.82-1
~]$ keep in mind that pacman keeps it's own database of ownership for packages. It is completely separate from filesystem owernship.
what does pacman -Qo /usr/lib/plexmediaserver/Plex\ Media\ Server output ?
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
@Lone_Wolf,
The output is still the same no ownership.
sudo pacman -Qo /usr/lib/plexmediaserver/Plex\ Media\ Server
error: No package owns /usr/lib/plexmediaserver/Plex Media ServerAnd the version in the /opt directory output this:
sudo pacman -Qo /opt/plexmediaserver/
/opt/plexmediaserver/ is owned by plex-media-server-plexpass 0.9.12.12.1459-1Another Newb question, is there a chown for packages?
Offline
I just did some reading on
https://wiki.archlinux.org/index.php/Pacman
and it looks like this is what I will need to do.
If you had installed a program manually without using pacman or a frontend, for example through make install, you have to remove it and all its files and reinstall properly using pacman.
EDIT: (prevent to many posts)
And after looking at the "files" file under /var/lib/pacman/local/plex-media-server-plexpass-0.9.12.12.1459-1/ it shows all files are under /opt.
Which means that pacman does not even know about the version installed under /usr/lib/plexmediaserver.
Could this have happened when I ran makepkg? The PKGBUILD was done in a different folder?
Last edited by blueteq (2015-09-20 13:37:00)
Offline
If a package "owns" a file, that means that the file was installed by installing the package. It was "in" the package.
If no package owns a file, it means that the file didn't get there because of a pacman package you installed.
So, no, there's no chown for packages or anything like that. Pacman just keeps track of what files a package installs. It has nothing to do with the other kind of file ownership.
I don't think it's likely that the other version got there because of the PKGBUILD, though I don't really get the prepare() function of the PKGBUILD. Are you on ARM perchance?
Offline
@Steef435
That makes sense, thanks. By pacman having owership it means it installed the package and keeping track of it. I somehow installed this package without pacman keeping track.
Its x86, Intel i3. So no ARM.
Offline
Yes, it appears to be the case. It's not managed by pacman and it's outdated so you might as well get rid of it.
Where does that service file come from? The one provided by the package looks like this:
[Unit]
Description=Plex Media Server
After=network.target
[Service]
EnvironmentFile=/etc/conf.d/plexmediaserver
ExecStart=/opt/plexmediaserver/Plex\x20Media\x20Server
Type=simple
User=plex
Group=plex
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
StandardOutput=null
[Install]
WantedBy=multi-user.targetEDIT: I expect it's also not owned by a package, you may have installed the software without using pacman in the past or maybe the software thought it a good idea to mess with your system. The best thing I think you could do is to remove all the unowned files related to plex.
Last edited by Steef435 (2015-09-21 15:07:30)
Offline
Thanks @Steef435. Will remove and install again.
Offline
Thank you all for the help, just an update. I managed to get the latest version installed.
As pacman did not own the package I manually deleted the plexmediaserver folder under /usr/lib/plexmediaserver
sudo rm -rf /usr/lib/plexmediaserverDisabled the service:
sudo systemctl disable plexmediaserver.serviceThen deleted the service file:
sudo rm /etc/systemd/system/plexmediaserver.serviceDownloaded the latest Plex-Media-Server-Plexpass snapshot from: https://aur.archlinux.org/packages/plex … -plexpass/
used makepkg to build and isntall version 9.12.12 into /opt/
For some reason my backups was not done properly so I have to setup libraries again. At least its now upgradable and working.
Offline