Code review comment for lp:~petr-kubanek/stellarium/stellarium

Revision history for this message
gzotti (georg-zotti) wrote :

I restarted with the database part and instructions from RUN and rts2.org/faq.html. When I add myself as database user, I can look into the database, fine. But rts2-https must be started by root, and then there is an error

gzotti@alcyone:~/DEV/rts2/src$ sudo rts2-httpd
[sudo] Passwort für gzotti:
2017-04-01T23:41:29.319 CET rts2-httpd 1 cannot connect to DB 'stars'. Please check if the database server is running (on specified port, or on port 5432, which is the default one; please be aware that RTS2 does not parse PostgreSQL configuration, so if the database is running on the non-default port, it will not be accessible unless you specify the port). Also please make sure that the current user, root(0) can log into database: could not connect to database "stars" on line 162
2017-04-01T23:41:29.320 CET rts2-httpd 1 cannot init daemon, exiting

gzotti@alcyone:~/DEV/rts2/src$ rts2-httpd
2017-04-01T23:42:05.060 CET rts2-httpd 1 cannot create lock file /var/run/rts2_HTTPD: Permission denied - do you have correct permission? Try to run daemon as root (sudo,..)

I finally made /var/run write-all, deleted rts2_HTTPD (as root), and was able to start rts2-httpd as myself, but this seems sub-optimal. Now I have an error in Stellarium's log.txt

TelescopeRTS2 error QNetworkReply::NetworkError(AuthenticationRequiredError)

User and password are visible in the Stellarium logfile like in the previous report and are correct.

Interesting: I wanted to connect to this webserver in Firefox. I see the menu, but a click on a menu entry opened the auth panel. my login&password don't work. I may have overlooked this: do I have another name when using rts2, and where would I have configured this? (I assue these are the auth. data I also need to give in Stellarium...) In the database I use the same username that I use in Ubuntu.

I am getting closer, but must have overlooked something.

review: Needs Information

« Back to merge proposal