Container Station console only works with myqnapcloud link - Certificate issue? (2024)

Post Reply

  • Print view

21 posts

  • 1
  • 2
  • Next
pol77
Starting out
Posts: 18
Joined: Wed Jun 19, 2024 2:43 am

Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby pol77 »

Hi all.

I have set up my own domain name, DDNS service and reverse proxy so I can access my QNAP (TS-873A) web inbterface without the use of myqnapcloud.It all works great except that the console in container station does not.
If I access the qnap web interface via the myqnapcloud link, the console in container station works.
If I acces the qnap web interface via the local network IP and port, the console in container station does not work.
If I access the qnap web interface via my own domain name, reverse proxy and ssl certificate combination, the console in container station does not work.

It seems like a certificate issue, where the container staion will only trust you enough to allow the use of the console if you have connected to the interface via the myqnapcloud link/certificate.

I have looked at the container station certificate under preferences in container station and clicked renew (it succeded) but I don't see any option to trust my own domain name / reverse proxy / ssl certificate.

I want to not have to use the myqnapcloud link and disable myqnapcloud altogether (due to past history / security concerns), but I have to be able to use the console in container staion.

Any help will be greatly appreciated.

Top

NoName
Know my way around
Posts: 165
Joined: Mon Feb 16, 2015 11:01 pm

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby NoName »

Do you talk about the container console 'Attach terminal'? Or is even the Container Station app not available?

Certificates are only valid for specified domains, and you can add additional ones with the domain name field for the certificate settings of your docker/container station. Did you provide the additional domain names there?

Top

pol77
Starting out
Posts: 18
Joined: Wed Jun 19, 2024 2:43 am

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby pol77 »

This is how container station looks when I connect to the nas using the XXXX.myqnapcloud.com link

Container Station console only works with myqnapcloud link - Certificate issue? (2)

Please notice that the log is populated. If I execute a /bin/bash command, I get a working terminal and I can interact with the container.

This is how it looks if I access the nas via my local IP address (no SSL certificate) or via my personal domain address, with its own, valid, Let's Encrypt SSL certificate.

Container Station console only works with myqnapcloud link - Certificate issue? (3)

Notice that the log is not populated. If I execute a /bin/nash command, I get an empty console, with a cursor at the top but I cannot write in it.

I have tried adding my domain in the domain field in the Preferences --> Certificates tab and renewing the certificate but it did not help. I tried my top domain, the subdomain I forward to the NAS and a wildcard subdomain but nothing worked.

Container Station console only works with myqnapcloud link - Certificate issue? (4)

No idea what to do so I can access the log and console in the container station without having to use the myqnapcloud access.

The container station app works fine either way and the containers run fine.

Top

NoName
Know my way around
Posts: 165
Joined: Mon Feb 16, 2015 11:01 pm

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby NoName »

Can you check the certificate if the alternative domain names are included? Perhaps it didn't show up there? If you used the download button from the screenshot the certificate should be in /root/.docker on your NAS.

I guess there is no firewall or NAT router between your machine and the NAS? If a router or firewall is ther you may have to configure the port forwarding. But the myqnapcloud link is established via a VPN connection, and the portforwarding takes place on the myqnapcloud side. So besides the certificate it may be a network issue. I don't consider that to be likely, but still possible

Top

pol77
Starting out
Posts: 18
Joined: Wed Jun 19, 2024 2:43 am

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby pol77 »

Actually, if I click on download I get an option to select where to save the certificate. I saved it on the desktop of the PC where I'm viewing the NAS webpage from.
It produced a zip file with 3 files inside.
ca.pem
cert.pem
key.pem

I ran ca.pem and cert.pem though an online SSL decoder and this is what I got:

Container Station console only works with myqnapcloud link - Certificate issue? (6)

Container Station console only works with myqnapcloud link - Certificate issue? (7)

There doesn't seem to be a reference to an actual URL in the certificate.

I'm not even certain that the certificate is involved in the issue, but I know that if I access the NAS through XXXXX.myqnapcloud.com the logs and /bin/bash consoles work and if I access it through my local IP address (no SSL certificate) or my own subdomain URL (valid Let's Encrypt certificate that shows a secure connection in the address bar when accessing the NAS), they do not work.

Top

NoName
Know my way around
Posts: 165
Joined: Mon Feb 16, 2015 11:01 pm

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby NoName »

OK, so you didn't protect the docker daemon from your NAS? Like this: https://docs.docker.com/engine/security/protect-access/? Are you able to stop and start a container when accessing via IP or subdomain?

Top

pol77
Starting out
Posts: 18
Joined: Wed Jun 19, 2024 2:43 am

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby pol77 »

No, I did not do the procedure detailed in the link you provided. I am able to start and stop containers, create new dockers and applications and everything else, regardless of if I connected through the myqnapcloud link, local IP or my domain. It all works fine. Only the logs and /bin/bash console are not working, as far as I have noticed so far.

I am running QUFirewall and have implemented the Advanced Security Policy through the Security Centre.

NoName
Know my way around
Posts: 165
Joined: Mon Feb 16, 2015 11:01 pm

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby NoName »

OK, I assume it won't be a certificate issue, as this should be blocking all commands to the docker daemon and will only do this if you secured docker. The QuFirewall can be the issue, but would most likely block the complete NAS access and not just container station logs.

Strange but there must be something else. Lets try the following, log in from local so that you can't see the logs. Then select 'Inspect' for one container and search for the 'log path' there. Try browsing to that path with the 'File Station' on you NAS admin interface.

Top

pol77
Starting out
Posts: 18
Joined: Wed Jun 19, 2024 2:43 am

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby pol77 »

This is the path:

LogPath:"/share/ZFS530_DATA/.qpkg/container-station/docker/containers/6d4c6f2a2a7f92e156819cdb30285ba45c5dde4cbec2454575074449043de92d/6d4c6f2a2a7f92e156819cdb30285ba45c5dde4cbec2454575074449043de92d-json.log"

But Filestation cannot access this path (as far as I know - correct me if I'm wrong), I would have to connect through SSH in order to do that.

But it may help you to know that if I reboot the NAS, then log in via my personal domain (or local IP) where I cannot see the logs (or run /bin/bash) and then, without logging out, make another session, loggin into the same account via the myqnapcloud link, on that session I can see the logs and can run /bin/bash. This is at the same time, through 2 different tabs on the same browser.

Top

NoName
Know my way around
Posts: 165
Joined: Mon Feb 16, 2015 11:01 pm

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby NoName »

I guess you are also using the same user in both session.
May be you can't access the path via Filestation. But on my container station, the log path looks like this: /share/CACHEDEV1_DATA/Public/Docker/container-station-data/lib/docker/containers/<<containerid>>, and I can access that path via File Station. I don't think I changed the settings. So maybe check the version of your Container Station?

Top

pol77
Starting out
Posts: 18
Joined: Wed Jun 19, 2024 2:43 am

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby pol77 »

Yes, I'm using the same user.

Not only that, but if I log into the NAS through my own domain (where I do not see the logs console) and inspect a container to find the log path as you instructed and then log into the NAS through the myqnapcloud link and open the container station to inspect the same container, I find the inspect dialogue with the entries expanded just like I left it in the 1st session. The log file is of course showing the same path.

Please remember, it is not only the logs console, but the same behaviour happens in every console window, as I get a non functional console when I execute /bin/bash, when not on the myqnapcloud link, but it works through the myqnapcloud link.

This is my container station version, I don't seem to have an option to update it further.

Container Station console only works with myqnapcloud link - Certificate issue? (11)

Top

NoName
Know my way around
Posts: 165
Joined: Mon Feb 16, 2015 11:01 pm

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby NoName »

Yes, the version is the current one. Are you using the same browser and just different URLs? Is it possible that your browsers blocks some elements from web sites if the certificate isn't matching the domain? The whole admin interface is started via javascript. You may have also different JS runtimes, or your admin interface has set a URL, but most parts of the admin page are using relative pathes and that is a piece using an absolute path?

Top

pol77
Starting out
Posts: 18
Joined: Wed Jun 19, 2024 2:43 am

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby pol77 »

The issue seems to be browser independent, it happens on 3 different browsers.I have no idea how to check or change any of the other stuff you mention - I'm just running the QuTS Hero OS as is, from QNAP. Only the QNAP developers would know the inner workings of their OS, I guess.

Top

NoName
Know my way around
Posts: 165
Joined: Mon Feb 16, 2015 11:01 pm

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby NoName »

Try checking the server name given in the Control Panel -> General -> admin and there the top field server or hostname. Most likely that is the name you are using via myqnapcloud? Can you access the NAS via that server name without adding anything like a domain from your browser?
Does your browser tell you, that you are viewing an 'unsafe' page?

Top

pol77
Starting out
Posts: 18
Joined: Wed Jun 19, 2024 2:43 am

Re: Container Station console only works with myqnapcloud link - Certificate issue?

  • Quote

Postby pol77 »

I can access the NAS web interface if I type the name I have given to the NAS (which is not the same as my myqnapcloud prefix - it does not have to be), in my browser, like so: https://nasname:port
It does say that it is not secure. The same happens if I use the IP address I have assigned to the nas instead of the name.

Plot twist: Even though the browser says the site is not secure, the logs work in Container station, if I use the NAS name in the address.

So the logs work if:
I use the local NAS name in the address (not secure)
I use the myqnapcloud address (secure)

The logs do not work if:
I use the local IP of the NAS in the address (not secure)
I use my own domain name that redirects to the IP (secure)
I use my own domain name that redirects to the local NAS name (secure)

note: where the logs work, all consoles work, such as execute /bin/bash

Top

Post Reply

  • Print view

21 posts

  • 1
  • 2
  • Next

Return to “Container Station”

Jump to

  • QNAP General
  • ↳ Announcements
  • ↳ Features Wanted
  • ↳ Users' Corner
  • ↳ Official Apps
  • ↳ Prestashop
  • ↳ Webalizer
  • ↳ Virtualization Station
  • ↳ Notes Station
  • ↳ SocialLink Station
  • ↳ McAfee Antivirus
  • ↳ IT Management Station
  • ↳ Container Station
  • ↳ Community Apps
  • ↳ Apps Wanted
  • ↳ Partner Apps
  • ↳ BitTorrent Sync
  • ↳ EZPhone
  • ↳ Plex Media Server
  • ↳ Ragic
  • ↳ Tonido
  • Getting Started
  • ↳ Frequently Asked Questions
  • ↳ Presales
  • General
  • ↳ HDD Spin Down (HDD Standby)
  • ↳ Seagate Drive Discussion
  • ↳ Western Digital Drive Discussion
  • ↳ File Sharing
  • ↳ Mac OS
  • ↳ Windows
  • ↳ Symform
  • ↳ Microsoft Azure
  • ↳ OpenStack Swift
  • ↳ Amazon Glacier
  • ↳ Amazon S3
  • ↳ WebDAV-based Backup
  • ↳ Google Cloud Storage
  • ↳ Object Storage Server
  • ↳ ElephantDrive
  • ↳ Xopero
  • ↳ Download Station and QGet
  • ↳ myQNAPcloud service
  • ↳ Surveillance Solution
  • ↳ Miscellaneous
  • ↳ QIoT
  • ↳ QuAI
  • ↳ QVR Face
  • Business
  • ↳ Remote Replication/ Disaster Recovery
  • ↳ NAS Management
  • ↳ QES Operating System (QNAP Enterprise Storage OS)
  • Multimedia
  • ↳ Photo Station, Music Station, Video Station
  • ↳ Media Streaming
  • ↳ Mobile Devices
Container Station console only works with myqnapcloud link - Certificate issue? (2024)

References

Top Articles
Latest Posts
Article information

Author: Otha Schamberger

Last Updated:

Views: 6397

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.