Salut à tous,
Désolé pour le déterrage de topicmais après avoir essayé toutes les solutions "classiques", j'ai fini par tomber sur ce post qui parle un peu de SSH et qui me semble finalement plus approprié pour résoudre mon cas, identique, avec AudioStation vide.
(Si je dois créer un nouveau topic, pas de problèmes! Mais je me dis que peut-être que les solutions sont liées...)
Voici ce que j'ai déja fait, sans résultats :
- vider AudioStation puis remettre quelques fichiers
- autoriser le R/W sur le compte /music
- vérifier que le dossier music était bien indexé dans "Dossier partagé" (c'était le cas)
- dans "Dossier partagé", décocher indexation, recocher indexation et relancer l'indexation (le Syno a trouvé des fichiers)
- désinstaller/réinstaller AudioStation
- donwgrader de versions d'AudioStation
- cocher/décocher les "personal library"
- encore d'autres tentatives "non putty" toutes foireuses
- relancer synoindexd par Putty : résultat = daemon alive
Le seul truc que je n'ai pas fait c'est supprimer la base PostgreSQL (potentiellement corrompue ?) dans laquelle se fait l'indexation.
Je viens de passer une semaine 24/7 à reuploader toutes mes photos via Synology Assistant car mon NAS aurait mis 3 mois à 100% de CPU, et j'aimerais éviter de supprimer toute la DB...
Voici un dir de cette DB où j'ai 3 dossiers pgsql différents?
DiskStation> cd /volume1/@database
DiskStation> dir
drwxr-xr-x 6 admin users 4096 Jun 4 13:46 .
drwxr-xr-x 25 root root 4096 Jun 4 03:11 ..
drwxr-xr-x 5 admin users 4096 May 16 2013 mysql
drwx------ 10 admin users 4096 May 29 17:49 pgsql
drwx------ 10 postgres postgres 4096 Feb 2 13:23 pgsql.83.1391343764
drwx------ 10 postgres postgres 4096 May 27 17:13 pgsql.83.1401203415
Bref, en lisant ce topic, j'ai lancé la commande suggérée par MrWaloo
Voici ce que j'obtiens :
DiskStation> /usr/syno/pgsql/bin/psql mediaserver admin -c "select path from music;"
path
------
(0 rows)
Y a manifestement un souci et j'espère que Mr Waloo, WiFiF ou d'autres pourront m'aider sur ce point...
J'avoue que je suis pas certain de ce que je devrais faire pour recréer la table music sans flinguer toute la DB.
Je me débrouille en Putty mais je suis loin de connaître/comprendre toutes les commandes évoquées.
UPDATE 1:
J'ai accédé à mediaserver via les commandes ci-dessous...
CMD N°1
mediaserver=# dt
List of relations
Schema | Name | Type | Owner
--------+--------------------+-------+-------
public | directory | table | admin
public | music | table | admin
public | personal_directory | table | admin
public | personal_music | table | admin
public | personal_playlist | table | admin
public | photo | table | admin
public | playlist | table | admin
public | video | table | admin
public | video_convert | table | admin
CMD N°2
mediaserver=# d music
Table "public.music"
Column | Type | Modifiers
--------------+-----------------------------+----------------------------------------------------
id | integer | not null default nextval('music_id_seq'::regclass)
path | text | not null
title | text | not null
filesize | bigint | not null default 0
album | text |
artist | text |
album_artist | text |
composer | text |
comment | text |
year | integer |
genre | character varying(128) |
frequency | integer |
bitrate | integer |
duration | integer |
channel | integer |
track | integer |
disc | integer |
covercount | integer |
date | timestamp without time zone |
mdate | timestamp without time zone |
fs_uuid | text |
fs_online | boolean | default true
Indexes:
"music_pkey" PRIMARY KEY, btree (id)
"music_path_idx" UNIQUE, btree (path)
"music_album_artist_idx" btree (album_artist)
"music_album_idx" btree (album)
"music_artist_idx" btree (artist)
"music_composer_idx" btree (composer)
"music_date_idx" btree (date)
"music_disc_idx" btree (disc)
"music_genre_idx" btree (genre)
"music_mdate_idx" btree (mdate)
"music_title_idx" btree (title)
"music_track_idx" btree (track)
"music_year_idx" btree (year)
CMD N°3
j'ai eu quelques soucis sur cette 3ème commande, rien ne semblait répondre puis j'ai eu un message d'erreur et là ni la commande 1 ni la 2 ne fonctionnait plus...
DiskStation> /usr/syno/pgsql/bin/psql mediaserver admin -c "SELECT * FROM music WHERE id=2607;"
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
/usr/syno/pgsql/bin/psql mediaserver admin -c "SELECT * FROM music WHERE id=2607
DiskStation>
DiskStation> /usr/syno/pgsql/bin/psql mediaserver admin -c "SELECT * FROM music WHERE id=2607;
>
J'ai lancé un dir, et j'ai vu que psql a une taille de 0 octet ???
Là j'avoue être perdu...
DiskStation> cd /usr/syno/pgsql/bin
DiskStation> dir
drwxr-xr-x 2 root root 4096 May 29 17:48 .
drwxr-xr-x 5 root root 4096 May 29 17:48 ..
-rwxr-xr-x 1 root root 44636 Feb 12 08:24 createdb
-rwxr-xr-x 1 root root 46380 Feb 12 08:24 createuser
-rwxr-xr-x 1 root root 43508 Feb 12 08:24 dropdb
-rwxr-xr-x 1 root root 43508 Feb 12 08:24 dropuser
-rwxr-xr-x 1 root root 61372 Feb 12 08:24 initdb
-rwxr-xr-x 1 root root 31092 Feb 12 08:24 pg_controldata
-rwxr-xr-x 1 root root 35268 Feb 12 08:24 pg_ctl
-rwxr-xr-x 1 root root 216280 Feb 12 08:24 pg_dump
-rwxr-xr-x 1 root root 60192 Feb 12 08:24 pg_dumpall
-rwxr-xr-x 1 root root 91408 Feb 12 08:24 pg_restore
-rwxr-xr-x 1 root root 3392128 Feb 12 08:24 postgres
lrwxrwxrwx 1 root root 8 May 29 17:48 postmaster -> postgres
-rwxr-xr-x 1 root root 0 Jun 3 23:32 psql
-rwxr-xr-x 1 root root 29700 Feb 12 08:24 vacuumdb
Si j'essaie de relancer le service postgresql, il s'arrête...
DiskStation> /usr/syno/etc/rc.d/S20pgsql.sh start
Starting PostgreSQL...
Stopping PostgreSQL...
Starting PostgreSQL with log enabled
Si quelqu'un a un avis ???
D'ores et déja grand merci pour votre aide !
Cordialement, Quenbo