Archive for enero 2015

h1

Subsonic, ERROR DaoHelper – Failed to initialize database.

26/01/2015

Cuando ocurre un error del servidor web «jetty» de Subsonic ó Madsonic, y tras comprobar el log:

root@shirley:/var/subsonic# cat /var/subsonic/subsonic.log

Si se produce este error:

[2015-01-26 14:38:57,352] INFO DaoHelper - Checking database schema.
[2015-01-26 14:38:59,489] ERROR DaoHelper - Failed to initialize database.
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: error in script file line: 62 S1000 General error java.lang.NullPointerException in statement [SET TABLE SHARE INDEX'9290275 9290275 9290275 9290275 1']
        at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
        at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:382)
        at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:429)
        at net.sourceforge.subsonic.dao.schema.Schema25.execute(Schema25.java:38)
        at net.sourceforge.subsonic.dao.DaoHelper.checkDatabase(DaoHelper.java:115)
        at net.sourceforge.subsonic.dao.DaoHelper.<init>(DaoHelper.java:72)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)

es debido a que la base de datos está corrupta. Para solucionar, es necesario restaurar un backup:

carlos@shirley:~# cd /var/subsonic/db/
root@shirley:/var/subsonic/db# cp subsonic.backup subsonic.data

y rearrancar Subsonic:

carlos@shirley:/var/subsonic/db# /etc/init.d/subsonic restart
* Restarting Subsonic Daemon subsonic Started Subsonic [PID 4093, /var/subsonic/subsonic_sh.log]

h1

Bajar todos los videoclips y mp3 de una playlist de Youtube en Ubuntu

25/01/2015

Para bajar todos los videoclips y mp3 de una playlist de Youtube en Ubuntu es necesario instalar el script Youtube-dl (última versión, a fecha de redacción de este artículo la v. «2015.01.23.4») y el paquete ffmpeg (descatalogado en Ubuntu Trusty, es necesario instalarse unos repositorios auxiliares), ejecutando lo siguiente:

$ youtube-dl -citk --max-quality FORMAT --extract-audio --audio-format mp3 http://www.youtube.com/playlist?list=XXXXXXXXXXX

Si ocurre el siguiente error:

carlos@shirley:~/temp/yt$ youtube-dl -citk --max-quality FORMAT --extract-audio --audio-format mp3 https://www.youtube.com/playlist?list=PLc6GzkmQ1nEscjVMc6OcD1kz-O4JO2FE0
[youtube:playlist] PLc6GzkmQ1nEscjVMc6OcD1kz-O4JO2FE0: Downloading page #1
WARNING: [youtube:playlist] PLc6GzkmQ1nEscjVMc6OcD1kz-O4JO2FE0: Playlist page is missing OpenGraph title, falling back ...
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.

es necesario actualizar la última versión de Youtube-dl.

Fuente: xmodulo.

h1

Pydio, MCrypt is required by all security functions

04/01/2015

 

 
Si al instalar Pydio, sucede este mensaje de error en la web de instalación:

MCrypt enabled ERROR
MCrypt is required by all security functions.

Se soluciona activando el módulo de Mcrypt y reiniciando Apache:

carlos@shirley:/etc/php5/mods-available$ sudo php5enmod mcrypt
carlos@shirley:/etc/php5/mods-available$ sudo /etc/init.d/apache2 restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
* Restarting web server apache2

h1

ERROR: Site pydio does not exist!

04/01/2015

Si ocurre el siguiente error:

carlos@shirley:~/downloads$ sudo a2ensite pydio
ERROR: Site pydio does not exist!

renombrar el fichero «pydio» por «pydio.conf» y repetir:

carlos@shirley:~/downloads$ mv pydio pydio.conf
carlos@shirley:/etc/apache2/sites-available$ a2ensite pydio
Enabling site pydio.
carlos@shirley:/etc/apache2/sites-available$ sudo /etc/init.d/apache2 restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
* Restarting web server apache2