FAQ  •  Register  •  Login

Can´t add shared folders in serviio console

<<

vojcek89

Serviio newbie

Posts: 3

Joined: Sun Oct 30, 2016 12:20 pm

Post Sun Oct 30, 2016 12:27 pm

Can´t add shared folders in serviio console

Hello,
I am sorry for this question, but I am newby in linux and I need your help.
I installed the serviio server sucesfully. And now when I try to add shared folders in console (localhosh:xxxx/console) but I get an arror message: An unexpected error occurred (500). Check the log.

In the log file I see this code:

  Code:
2016-10-30 13:18:04,268 WARN  [Configuration] Couldn't store configuration value
org.serviio.db.dao.PersistenceException: Cannot create ConfigEntry with name online_feed_expiry_interval
   at org.serviio.config.dao.ConfigEntryDAOImpl.create(ConfigEntryDAOImpl.java:59)
   at org.serviio.config.dao.ConfigEntryDAOImpl.create(ConfigEntryDAOImpl.java:31)
   at org.serviio.config.JDBCConfigStorage.storeValue(JDBCConfigStorage.java:51)
   at org.serviio.config.Configuration.storeConfigValue(Configuration.java:954)
   at org.serviio.config.Configuration.setOnlineFeedExpiryInterval(Configuration.java:469)
   at org.serviio.ui.resources.server.RepositoryServerResource.save(RepositoryServerResource.java:100)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:521)
   at org.restlet.resource.ServerResource.put(ServerResource.java:1405)
   at org.restlet.resource.ServerResource.doHandle(ServerResource.java:610)
   at org.restlet.resource.ServerResource.doNegotiatedHandle(ServerResource.java:679)
   at org.restlet.resource.ServerResource.doConditionalHandle(ServerResource.java:357)
   at org.serviio.restlet.AbstractServerResource.doConditionalHandle(AbstractServerResource.java:49)
   at org.restlet.resource.ServerResource.handle(ServerResource.java:1014)
   at org.restlet.resource.Finder.handle(Finder.java:246)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:431)
   at org.restlet.routing.Router.handle(Router.java:648)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
   at org.restlet.engine.application.ApplicationHelper.handle(ApplicationHelper.java:84)
   at org.restlet.Application.handle(Application.java:384)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:431)
   at org.restlet.routing.Router.handle(Router.java:648)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Router.doHandle(Router.java:431)
   at org.restlet.routing.Router.handle(Router.java:648)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:155)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.routing.Filter.doHandle(Filter.java:159)
   at org.restlet.routing.Filter.handle(Filter.java:206)
   at org.restlet.engine.CompositeHelper.handle(CompositeHelper.java:211)
   at org.restlet.Component.handle(Component.java:406)
   at org.restlet.Server.handle(Server.java:516)
   at org.restlet.engine.connector.ServerHelper.handle(ServerHelper.java:72)
   at org.restlet.engine.adapter.HttpServerHelper.handle(HttpServerHelper.java:152)
   at org.restlet.ext.simple.internal.SimpleContainer.handle(SimpleContainer.java:80)
   at org.simpleframework.http.core.Dispatcher.dispatch(Dispatcher.java:121)
   at org.simpleframework.http.core.Dispatcher.run(Dispatcher.java:103)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: An SQL data change is not permitted for a read-only connection, user or database.
   at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown Source)
   at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeLargeUpdate(Unknown Source)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown Source)
   at org.serviio.config.dao.ConfigEntryDAOImpl.create(ConfigEntryDAOImpl.java:56)
   ... 55 more
Caused by: ERROR 25502: An SQL data change is not permitted for a read-only connection, user or database.
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
   at org.apache.derby.impl.sql.conn.GenericAuthorizer.authorize(Unknown Source)
   at org.apache.derby.impl.sql.execute.GenericResultSetFactory.getInsertResultSet(Unknown Source)
   at org.apache.derby.exe.ac21abc03bx0158x1572x530ax000036f26e6c2.createResultSet(Unknown Source)
   at org.apache.derby.impl.sql.execute.BaseActivation.decorateResultSet(Unknown Source)
   at org.apache.derby.impl.sql.execute.BaseActivation.execute(Unknown Source)
   at org.apache.derby.impl.sql.GenericActivationHolder.execute(Unknown Source)
   at org.apache.derby.impl.sql.GenericPreparedStatement.executeStmt(Unknown Source)
   at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown Source)
   ... 60 more
2016-10-30 13:18:04,469 INFO  [LibraryOneTimeScanner] Interrupting library scan
2016-10-30 13:18:04,469 INFO  [LibraryDeltaScanner] Stopping the library delta scan
2016-10-30 13:18:04,471 INFO  [PlaylistMaintainerWorker] Finished looking for playlist changes
2016-10-30 13:18:04,573 INFO  [LocalLibraryManager] Starting automatic library scan
2016-10-30 13:18:04,576 WARN  [ServiioStatusService] PersistenceException occured. Returning error code 500 to the REST layer. Message: Cannot create Repository for folder /home/vojta/Hudba
2016-10-30 13:18:04,576 INFO  [LibraryDeltaScanner] Starting the library delta scan
2016-10-30 13:18:04,577 INFO  [PlaylistMaintainerWorker] Started looking for playlist changes


Can somebody please write me, where is the problem?
Regards
Vojtech
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Oct 31, 2016 12:09 am

Re: Can´t add shared folders in serviio console

My Linux is really rusty, and I'm unfamiliar with the procedures to install Serviio on Linux, but from the log entries it appears to be a permissions issue with one or more files/folders.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 31, 2016 8:59 am

Re: Can´t add shared folders in serviio console

Make sure the user can write to Serviio / library folder
<<

vojcek89

Serviio newbie

Posts: 3

Joined: Sun Oct 30, 2016 12:20 pm

Post Mon Oct 31, 2016 4:14 pm

Re: Can´t add shared folders in serviio console

Thanks for the answers.
Yes, my user can write into Serviio / library folder. You can see it in the attachement. I created there a text document "Test"
Attachments
created_file.png
created_file.png (49.4 KiB) Viewed 9692 times
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Mon Oct 31, 2016 5:52 pm

Re: Can´t add shared folders in serviio console

You created the file there, but is Serviio running with the same user account? Again, my Linux is really rusty. With Windows, Serviio installs and runs under the Local Service user account. What user account is Serviio running under on your Linux installation? If it's not the same account that you used when creating the text file, that might be an issue.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

vojcek89

Serviio newbie

Posts: 3

Joined: Sun Oct 30, 2016 12:20 pm

Post Tue Nov 01, 2016 2:05 pm

Re: Can´t add shared folders in serviio console

You are probably right. Unfortunately I don´t know which user account Serviio use. Can you write me how can I find / change it?
<<

atc98092

User avatar

DLNA master

Posts: 5432

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Tue Nov 01, 2016 4:46 pm

Re: Can´t add shared folders in serviio console

vojcek89 wrote:You are probably right. Unfortunately I don´t know which user account Serviio use. Can you write me how can I find / change it?


I can't help with Linux. It's been close to 15 years since I've had any interaction with that OS, and I have no doubt things have changed tremendously. ;)
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: AMD Ryzen 5 5600GT, 32 gig ram, Windows 11 Pro, 22 TB hard drive space | Test server: Intel i5-6400, 16 gig ram, Windows 10 Pro

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

tstrike

Serviio lover

Posts: 79

Joined: Fri May 10, 2013 5:03 am

Post Mon Dec 19, 2016 5:46 am

Re: Can´t add shared folders in serviio console

atc98092 wrote:
vojcek89 wrote:You are probably right. Unfortunately I don´t know which user account Serviio use. Can you write me how can I find / change it?


I can't help with Linux. It's been close to 15 years since I've had any interaction with that OS, and I have no doubt things have changed tremendously. ;)



Caught this thread looking for something else.

Here are some things to try:

  Code:
 ls -lt    <=== This gives you a detailed list of files and their permission


  Code:
  chmod 755 <filename or directory> <===== allows you to set permission

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 60 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.