zrevai / ps3mediaserver

Automatically exported from code.google.com/p/ps3mediaserver
2 stars 0 forks source link

[General] v1.03: SAVE not possible on VISTA due to UAC #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Quick shot on v1.03 on Vista
Save is not possible due to needed admin rights.
Problem description: Due to UAC, it is not enough when user have admin 
rights writing to c:\program files. Only Administrator have this kind of 
permission. You need to set write permission on C:\program files\PS3 Media 
Server for EVERYONE or user who starts PMS. Below you can see first 
successfull SAVE. Then I removed write permissions for EVERYONE and then 
error message.
Also what is this: "Error during the parsing of image with Sanselan... 
switching to Ffmpeg: Invalid Image Resource Block Signature"
It is error message or info message? Seems to me that also switched FFMPEG 
failed when folders were scanned..
-----------------------------------------------------------------------
[AWT-EventQueue-0] TRACE 23:55:32.382 Configuration saved.
[AWT-EventQueue-0] TRACE 23:55:40.008 Using database located at : 
C:\Program Files\PS3 Media Server\database
[Thread-27] TRACE 23:56:53.571 Error during the parsing of image with 
Sanselan... switching to Ffmpeg: Invalid Image Resource Block Signature
[Thread-27] TRACE 23:57:05.867 Error during the parsing of image with 
Sanselan... switching to Ffmpeg: Invalid Image Resource Block Signature
[AWT-EventQueue-0] 23:58:01.752 Could not save configuration: Unable to 
save the configuration to the file C:\Program Files\PS3 Media 
Server\PMS.conf
[AWT-EventQueue-0] TRACE 23:58:01.755 
org.apache.commons.configuration.ConfigurationException: Unable to save 
the configuration to the file C:\Program Files\PS3 Media Server\PMS.conf
[AWT-EventQueue-0] TRACE 23:58:01.756   at 
org.apache.commons.configuration.AbstractFileConfiguration.save
(AbstractFileConfiguration.java:495)
[AWT-EventQueue-0] TRACE 23:58:01.756   at 
org.apache.commons.configuration.AbstractFileConfiguration.save
(AbstractFileConfiguration.java:403)
[AWT-EventQueue-0] TRACE 23:58:01.756   at 
org.apache.commons.configuration.AbstractFileConfiguration.save
(AbstractFileConfiguration.java:381)
[AWT-EventQueue-0] TRACE 23:58:01.757   at 
net.pms.configuration.PmsConfiguration.save(PmsConfiguration.java:743)
[AWT-EventQueue-0] TRACE 23:58:01.757   at net.pms.PMS.save(PMS.java:948)
[AWT-EventQueue-0] TRACE 23:58:01.757   at 
net.pms.newgui.LooksFrame$1.actionPerformed(LooksFrame.java:217)
[AWT-EventQueue-0] TRACE 23:58:01.758   at 
javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.759   at 
javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.759   at 
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.759   at 
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.759   at 
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.760   at 
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.760   at 
java.awt.Component.processMouseEvent(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.760   at 
javax.swing.JComponent.processMouseEvent(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.761   at java.awt.Component.processEvent
(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.761   at java.awt.Container.processEvent
(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.761   at 
java.awt.Component.dispatchEventImpl(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.761   at 
java.awt.Container.dispatchEventImpl(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.762   at java.awt.Component.dispatchEvent
(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.762   at 
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.762   at 
java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.762   at 
java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.763   at 
java.awt.Container.dispatchEventImpl(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.763   at 
java.awt.Window.dispatchEventImpl(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.763   at java.awt.Component.dispatchEvent
(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.763   at 
java.awt.EventQueue.dispatchEvent(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.764   at 
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.764   at 
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.764   at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.764   at 
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.765   at 
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.765   at java.awt.EventDispatchThread.run
(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.765 Caused by: 
java.io.FileNotFoundException: C:\Program Files\PS3 Media Server\PMS.conf 
(Přístup byl odepřen)
[AWT-EventQueue-0] TRACE 23:58:01.766   at java.io.FileOutputStream.open
(Native Method)
[AWT-EventQueue-0] TRACE 23:58:01.767   at java.io.FileOutputStream.<init>
(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.767   at java.io.FileOutputStream.<init>
(Unknown Source)
[AWT-EventQueue-0] TRACE 23:58:01.767   at 
org.apache.commons.configuration.AbstractFileConfiguration.save
(AbstractFileConfiguration.java:490)
[AWT-EventQueue-0] TRACE 23:58:01.767   ... 31 more
[AWT-EventQueue-0] TRACE 23:58:01.767 [AWT-EventQueue-0] 23:58:01.752 
Could not save configuration: Unable to save the configuration to the file 
C:\Program Files\PS3 Media Server\PMS.conf

Original issue reported on code.google.com by ExSportCZ@gmail.com on 18 Jan 2009 at 11:08

GoogleCodeExporter commented 9 years ago
I'm quite fed up with Vista

Original comment by ps3mediaserver@gmail.com on 18 Jan 2009 at 11:20

GoogleCodeExporter commented 9 years ago
Yes UAC and its applicaction virtualization is horrible....
Maybe this will help?
http://searchwindevelopment.techtarget.com/tip/0,289483,sid8_gci1341781,00.html

Original comment by ExSportCZ@gmail.com on 19 Jan 2009 at 12:46

GoogleCodeExporter commented 9 years ago
I solve all my problems with virtualization in Vista by installing applications 
on a 
folder different than C:\Program Files.

My PS3MS is installed on "F:\PS3 Media Server"

Original comment by allfour...@gmail.com on 22 Jan 2009 at 2:44

GoogleCodeExporter commented 9 years ago
This problem also shows up in terms of debug.log since it's also written to the
Program Files directory.

The easiest solution to this is to right click on PMS.exe (or the Start Menu 
shortcut
to PMS) and click Properties > Compatibility then make sure there's a check 
next to
"Run this program as an administrator".

You will be prompted by the UAC every time you run PMS but you shouldn't have 
any
further problems with this.  As I mentioned in another thread, the eventual 
solution
to this will be to put the PMS config files in the user directory, avoiding the 
need
for the UAC.

Original comment by raynorwo...@gmail.com on 22 Jan 2009 at 4:04

GoogleCodeExporter commented 9 years ago
I solved all my Vista problems by disabled UAC and Vista Firewall...

Original comment by Cow...@gmail.com on 23 Jan 2009 at 6:22

GoogleCodeExporter commented 9 years ago
I send a patch to ps3mediaserver@gmail.com.

Original comment by tera...@gmail.com on 26 Jan 2009 at 7:51

GoogleCodeExporter commented 9 years ago
Bug in r252: PMS.conf saved to roaming dir also in case user have full access 
rights 
to original pms.conf location;-)
Below is trace.log but pms.conf have full access rights for everyone on Vista
[AWT-EventQueue-0] TRACE 16:27:12.237 Troubles to save PMS.conf in application 
folder... not admin access ?
[AWT-EventQueue-0] TRACE 16:27:12.238 Switching save folder to: 
C:\Users\ExSport.ExSport-ntb\AppData\Roaming\PMS\
[AWT-EventQueue-0] TRACE 16:27:12.240 Configuration saved.

Original comment by ExSportCZ@gmail.com on 29 Jan 2009 at 3:30

GoogleCodeExporter commented 9 years ago
oops :) forgot to remove the test case
thank you

Original comment by ps3mediaserver@gmail.com on 29 Jan 2009 at 3:35

GoogleCodeExporter commented 9 years ago
r253 fixed this bug:-) Thx

Original comment by ExSportCZ@gmail.com on 29 Jan 2009 at 4:15