After upgrade to DSM 6.0 PhotoStation is unreachable

Questions about the Synology Photo Station can be placed here.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/su ... p?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
tremen
I'm New!
I'm New!
Posts: 3
Joined: Tue Apr 05, 2016 6:15 am

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by tremen » Thu Apr 07, 2016 2:59 pm

Hi Phil,
yes sounds extrange.. :o
And.. even if you try with different external port forwarding to internal 80/tcp port too?

that is to say differentiating external ports. For example:

Web Satation: 9001 --> 80
Photo Station: 8001 --> 80


Web station: http://www.myddnsname.com:9001
Photo Station: http://www.myddnsname.com:8001/photo

:)

hieutle7
Trainee
Trainee
Posts: 11
Joined: Wed Nov 25, 2015 10:19 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by hieutle7 » Thu Apr 07, 2016 4:21 pm

With the help from this thread and Synology support, my Photo Station in DSM 6 is now up and running. I'll post my settings here for people who are not familiar with port forwarding, took me many trial and error attempts. I want to be able to use my own ports for http as well as https without having to use QuickConnect and because ports 80/443 are being used for a Window Server.

First, I use noip.com to create an A type hostname (dsm.domain.com) for my IP address. This can be archived with domains.google.com. Then add DDNS to External Access in Control Panel (optional).

Second, decide which ports to use for Photo Station and setup port forwarding in router. Say, I want port 2000 for photo http and 3000 for photo https. For Asus Router,
Service Name: DSM Photo Station http
Port Range: 2000
Local IP: 192.168.X.XXX (Synology Box IP, make sure you manually reserve this IP in LAN-->DHCP Server)
Local Port: 80
Protocol: TCP
Service Name: DSM Photo Station https
Port Range: 3000
Local IP: 192.168.X.XXX (Synology Box IP, make sure you manually reserve this IP in LAN-->DHCP Server)
Local Port: 443
Protocol: TCP

Third, change settings in Photo Station.
Hostname or static IP: dsm.domain.com
HTTP: 2000
HTTPS: 3000

Check on automatically redicrect HTTP connections to HTTPS (optional https). Refresh, clear history, or reboot.

Now check. When you click on Share Link, it should say https://dsm.domain.com:3000/photo/..... All links are now functional.

pbrigido
Novice
Novice
Posts: 44
Joined: Wed Aug 14, 2013 3:21 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by pbrigido » Thu Apr 07, 2016 4:37 pm

Great info, thanks!

I think my scenario may be a bit different. It seems like everything is pointing to the correct locations with ports and IPs on my end. The issue I'm having is the DDNS name creates the error, but the public IP doesn't. Here's my personal site below:

http://brigido.us/photo/ - Doesn't Work, service "disabled"
http://173.88.216.74/photo/ Works

I just can't put my finger on it. It seems like things should be working perfectly.

The mystery continues, at least for me. :)

THanks again,

-Phil

hieutle7
Trainee
Trainee
Posts: 11
Joined: Wed Nov 25, 2015 10:19 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by hieutle7 » Thu Apr 07, 2016 5:40 pm

Hi Phil,

I'm not an expert but lets do some troubleshooting.

Maybe you can check your port forwarding settings and DNS setting in your DSM (I'm not familiar this because I use Windows Server). For me to keep things simple, I only connect one ethernet from Synology to my router and port forwarding with that Synology IP, I'm guessing you use 80/443 and 80/443. You can also do link aggregation, otherwise, one ethernet is fine.

It seems like you got brigido.us and gacaria.com on 173.88.216.74. I checked it with http://whois.domaintools.com/ What's your Router Port setting in Photo Station?

It seems like brigido.us/photo does not work, but gacaria.com/photo works although they both are assigned to the same IP. Maybe you can try to play with Photo Station and DNS settings in your Synology to connect brigido.us to Photo Station.

Good luck!

pbrigido
Novice
Novice
Posts: 44
Joined: Wed Aug 14, 2013 3:21 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by pbrigido » Thu Apr 07, 2016 6:58 pm

Thanks again for the feedback!

You're correct, both point to the same IP. The only reason gacaria.com/photo works is because I have don't have it setup as virtual host in Web Station. The moment I put gacaria.com in as a virtual host, the same result occurs.

Image

Very odd indeed! :)


edit: sorry for the large picture!

hieutle7
Trainee
Trainee
Posts: 11
Joined: Wed Nov 25, 2015 10:19 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by hieutle7 » Thu Apr 07, 2016 8:00 pm

Maybe someone else can shed some light on this issue, but I think you just said it. The problem is at the virtual host. My reason tells me that the moment you create a virtual host, brigido.us, it belongs to that directory, independent to other Synology applications. I think the only way that you can use domain.com/photo is only if you assign domain.com to DSM with standard ports. Maybe just add that link to your site?

BearKnuckle
Trainee
Trainee
Posts: 15
Joined: Thu Aug 14, 2014 10:05 am

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by BearKnuckle » Fri Apr 08, 2016 6:45 am

pbrigido wrote:
Sounds like a good tip. The problem I've been running into is that in DSM, PhotoStation no longer has the ability to specify an alternate port number than the default. I used to access it by http://www.myddns.com:8001/photo (8001 being the changed PhotoStation port), but that method is broken now.

I'm open to any ideas to get it functional again.

-Phil
Edit: Ignore this post, I missed the second page, before I posted!

Does a reverse proxy help to solve your problem?

You need to map port 8001 (Source from any ip) to port 80 on localhost to reach Photostation with http://www.myddns.com:8001.

pbrigido
Novice
Novice
Posts: 44
Joined: Wed Aug 14, 2013 3:21 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by pbrigido » Fri Apr 08, 2016 1:21 pm

BearKnuckle wrote:
pbrigido wrote:
Sounds like a good tip. The problem I've been running into is that in DSM, PhotoStation no longer has the ability to specify an alternate port number than the default. I used to access it by http://www.myddns.com:8001/photo (8001 being the changed PhotoStation port), but that method is broken now.

I'm open to any ideas to get it functional again.

-Phil
Edit: Ignore this post, I missed the second page, before I posted!

Does a reverse proxy help to solve your problem?

You need to map port 8001 (Source from any ip) to port 80 on localhost to reach Photostation with http://www.myddns.com:8001.

Thanks for the feedback! I believe I have the reverse proxy setup. I could be mistaken, but I'm not too sure if that will fix the problem of why the public IP works
http://173.88.216.74/photo/ but yet the DDNS http://brigido.us/photo/ doesn't.

Either way, here's my reverse proxy I have setup. It looks right to me, but I'm just a novice. :)

Thanks again guys!

ImageCapture by Phil Brigido, on Flickr

marky9074
Experienced
Experienced
Posts: 125
Joined: Tue Feb 16, 2010 7:03 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by marky9074 » Sat Apr 09, 2016 3:25 pm

I get the correct links now when updating the settings in PhotoStation, however when I share a link, the link doesn't actually work, and when I got to http://FQDN/photo it comes up with service disabled as shown above...

Did you get any joy with the reverse proxy? And how did you do it. Do you have to load up the proxy server package and do it there?

Incidentally the link to photos that was always on the blog seems to have disappeared with DSM6....

pbrigido
Novice
Novice
Posts: 44
Joined: Wed Aug 14, 2013 3:21 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by pbrigido » Mon Apr 11, 2016 4:48 pm

marky9074 wrote:I get the correct links now when updating the settings in PhotoStation, however when I share a link, the link doesn't actually work, and when I got to http://FQDN/photo it comes up with service disabled as shown above...

Did you get any joy with the reverse proxy? And how did you do it. Do you have to load up the proxy server package and do it there?

Incidentally the link to photos that was always on the blog seems to have disappeared with DSM6....

Hi Marky,

Unfortunately that didn't fix it for me. You don't have to load the Proxy package. You can find the reverse proxy options from Control Panel > Application Portal > Reverse Proxy.

Good luck, let me know if you had a better result than I did! :)

Thanks,

-Phil

marky9074
Experienced
Experienced
Posts: 125
Joined: Tue Feb 16, 2010 7:03 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by marky9074 » Tue Apr 12, 2016 3:44 pm

Thanks Phil, but that made no difference to me. In fact I opened up a ticket last week asking how to embed a photostation into a virtual host for a site last week before finding this thread, so hopefully get some answer soon (it's been a while, which is unusual)...

Cheers,

Mark
pbrigido wrote:
marky9074 wrote:I get the correct links now when updating the settings in PhotoStation, however when I share a link, the link doesn't actually work, and when I got to http://FQDN/photo it comes up with service disabled as shown above...

Did you get any joy with the reverse proxy? And how did you do it. Do you have to load up the proxy server package and do it there?

Incidentally the link to photos that was always on the blog seems to have disappeared with DSM6....

Hi Marky,

Unfortunately that didn't fix it for me. You don't have to load the Proxy package. You can find the reverse proxy options from Control Panel > Application Portal > Reverse Proxy.

Good luck, let me know if you had a better result than I did! :)

Thanks,

-Phil

flintstone314
Rookie
Rookie
Posts: 32
Joined: Tue Jul 03, 2012 11:46 am

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by flintstone314 » Tue Apr 19, 2016 3:09 pm

Same or at least comparable issue here. I have enough of this and opened a ticket.

Back on 5.3 it was so easy to secure the diskstation or at least forward the necessary ports. Now it´s almost unsolvable.

Lets say you have phpMyAdmin, Photostation, Webstation etc. installed. Back in 5.3 you changed the photo station ports to e.g. 9000/9001 together with the web station ports. If you set your router to route 80 -> 9000 and 443 -> 9001, everything was set and working. Best of all, phpMyAdmin was still running on 80 and thus inaccesible from outside.

Now, they shredded any possible way to add ports to applikations (apart from a very few like Filestation). What you have to do now is either use the reverse proxy and route 9000 -> localhost 80, 9001 -> localhost 443, which is 100% pointless. You might aswell just route via the router from 80 -> 80 and 443 -> 443, because services are no longer splittable. This means, the second I have to make 80 or 443 accessible to the outside (no matter if you use a reverse proxy entry or not), phpMyAdmin, followed with any possible other service using the same ports, will be 100% open like a wide door.
You could bypass port 80 by using a virtual host on, lets say port 9000 (custom dir like web/xxx) and set a route from 80 -> 9000, which will make the diskstations web server accessible but block out phpmyadmin, but it will also render photostation useless....at least it did on my 415+.
This is a complete nightmare.
Back on 5.3:
1. change or add custom port to web station and photostation was possible
2. if that wasn´t something you liked to do, a simple .htaccess file was able to block any access to system stuff like phpMyAdmin
3. Apach was used flat over the whole infrastructure.

Now on 6 you cant do any of those.
1. is gone, it´s no longer possible to add custom ports to web or photo station, you can basically just reroute ports to 80 or 443 - thats it.
2. .htaccess files won´t work inside phpMyAdmin directory as that seems to always use nginx, no matter if you set Apache or not (which is funny because setting apache as default web server will work for /web dir but not for /phpMyAdmin).
3. easy access to nginx conf files (which would at least give us some tools) seems to be hampered, at least I was not able to modify the nginx.conf file permanently, it was reset upon service restart.

So, either they add those lost services back to the Application Portal - which would make sense from any point, or they at least allow me configure phpMyAdmin to custom ports fgs.

marky9074
Experienced
Experienced
Posts: 125
Joined: Tue Feb 16, 2010 7:03 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by marky9074 » Tue Apr 19, 2016 9:51 pm

I hadn't thought about my install of phpMyadmin, though if traffic is not going somewhere via virtual hosts, it is just going directly to /web, so unless someone directly accesses by IP AND guesses the phpMyAdmin folder name it should be OK (because it will just go to the default Apache/DSM landing page). Either way could block external with .htaccess?

With regards to the PhotoStation not being viewable externally, apart from access by direct IP, I got the following today:
Photo Station is behaving as expected. Your virtual host is directed at the "/web" shared folder on your NAS and it is looking for a photo folder within this, but as it is not located here it cannot access the photos.

I would recommend looking into .htaccess files which will allow you to do this, however this is beyond our support and i cannot advise further than this.
I was slightly bemused by this, as I had specifically asked how I could link a virtual host web site to a users photostation, so that you could access it by http://FQDN/photo instead of http://IPADDRESS/photo. I pointed out that if it was an Apache error because the /photo directory was not there then it would come up with a different (Apache) error, not the 'This Service is Disabled' message that we see now.

One thing I did learn today is that seemingly you can only edit the hostname for the main admin account. When I log into a users PhotoStation account this option is not available, which is odd, and therefore you cannot link it in that way. I did state that maybe this could be done with symbolic links, if we knew where PhotoStation lives (for each user). I mean surely this is another virtual host anyway, for each PhotoStation that is hidden from the DSM GUI?

flintstone314
Rookie
Rookie
Posts: 32
Joined: Tue Jul 03, 2012 11:46 am

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by flintstone314 » Wed Apr 20, 2016 6:35 am

marky9074 wrote:
Photo Station is behaving as expected. Your virtual host is directed at the "/web" shared folder on your NAS and it is looking for a photo folder within this, but as it is not located here it cannot access the photos.

I would recommend looking into .htaccess files which will allow you to do this, however this is beyond our support and i cannot advise further than this.
This is more than funny. So, they introduce nginx rendering htaccess files useless and now they tell you to use htaccess files? I had to use Synology support 4 times in 7 years and I can tell you that it´s pretty much the worst I ever encountered. Not a single time they were able to help me. Usually the tickets just get closed.

Anways - I am facing the same problem without any way to fix it. The second you set your domain to another web folder (which would be advisable anyway) your options are 0 - apart from probably hacking stuff together. I should have stayed on DSM5....

marky9074
Experienced
Experienced
Posts: 125
Joined: Tue Feb 16, 2010 7:03 pm

Re: After upgrade to DSM 6.0 PhotoStation is unreachable

Unread post by marky9074 » Wed Apr 20, 2016 9:32 am

Yeah, I had a similar thing recently too. With an external Synology drive set and volume, the NFS permissions for the volume are set without even read access (its OK on local volumes). I had to SSH in and fix with chmod, and their response was that this was by design, and in Windows you could change the permission to read. I pointed out that this meant adding the everyone group to the share and giving suitable permissions, and that with both the Windows and Linux methods, it was outside the average users comfort zone. There should be a method to change permissions on a share in DSM in my opinion......

Post Reply

Return to “Photo Station”