Page 1 of 1

Can´t add shared folders in serviio console

PostPosted: Sun Oct 30, 2016 12:27 pm
by vojcek89
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

Re: Can´t add shared folders in serviio console

PostPosted: Mon Oct 31, 2016 12:09 am
by atc98092
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.

Re: Can´t add shared folders in serviio console

PostPosted: Mon Oct 31, 2016 8:59 am
by zip
Make sure the user can write to Serviio / library folder

Re: Can´t add shared folders in serviio console

PostPosted: Mon Oct 31, 2016 4:14 pm
by vojcek89
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"

Re: Can´t add shared folders in serviio console

PostPosted: Mon Oct 31, 2016 5:52 pm
by atc98092
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.

Re: Can´t add shared folders in serviio console

PostPosted: Tue Nov 01, 2016 2:05 pm
by vojcek89
You are probably right. Unfortunately I don´t know which user account Serviio use. Can you write me how can I find / change it?

Re: Can´t add shared folders in serviio console

PostPosted: Tue Nov 01, 2016 4:46 pm
by atc98092
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. ;)

Re: Can´t add shared folders in serviio console

PostPosted: Mon Dec 19, 2016 5:46 am
by tstrike
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