monochromec wrote:Finally managed to get the DownloadStation up and running again. Some digging around and various forms of advanced magic helped a bit .
Here's what I did - your mileage may vary...:
- The first stumbling block was that DL manager CGI was looking for the Postgres server PID in the wrong location. So a small modification of /usr/syno/pgsql/etc/postgresql.conf with external_pid_file = '/tmp/postgresql.pid' pleased the CGI.
- Next was the fact that the DL package installation file didn't create the Postgres "download" database. Don't ask me why - when I upgraded to DSM 4-2198 I suspected that the upgrade process should take care of this - it didn't. Even a package removal and re-installation process through the Package Center didn't not create the DB. Hint: if you set the logging level in the server startup script (/usr/syno/etc.defaults/rc.d/S20pgsql.sh) high enough, the server will tell you that the download DB is missing...
- After creating the DB (just use any Postgres GUI tool on another machine to create the DB - but ensure that you include the correct IP mask in /usr/syno/pgsql/etc/pg_hba.conf in this case or simply use the psql CLI front end as admin), a DB population script will create all the tables in this newly created DB. Executing the command 'su -l admin -c "/usr/syno/pgsql/bin/psql -U admin download -f /var/packages/DownloadStation/target/scripts/sql/download.pgsql"' will do this.
- After this, your DL Station should be working again.
- @Synology: Please fix the scripts so that DL will usable right after the upgrade to DSM 4! And maybe a thought for the next DL Station release: correct the GUI error messages so that DB problems are indicated as such and do not point in the direction of connectivity / network issues.
Your DiskStation was hacked before the crash, and a remaining file (/volume1/homes/admin/.profile) is preventing your Download Station to work normally. I have removed the file.
Please refer to our announcement released on Feb. 14.
You may also refer to this doc "How to secure your Synology NAS server on the Internet" for better security:
Hope this helps.
Users browsing this forum: Lorddundy and 3 guests