I have bit of a problem here. I have created report in PRD 7.1 which is showing data from database. The last column in DB is path to a image, that is stored on disk (of the machine where Pentaho is running).
So bacisaly, I have Open formula that is: =IFNA("http://myserver.com/snapshots/" & [path_to_snapshot]; "http://myserver.com/image_icon_2.png") which is value of content field.
It is working well deployed on the public server, report shows the picture and when someone click on it, it opens the picture.
However, as I have deployed this on a server that has no public address and can be accessed through more VPN IP addresses, there is a problem. I have to specifically write IP address of server into the formula, and while it will show picture in report, it wont show it after clicking on the picture (unless you are accessing the server from the one specified IP address).
Its also not working with either localhost nor 127.0.0.1 in the IP address field.
Could please anybody explain me where the problem is and how to make it work?
I am not very skilled in web things. I do understand that it is not showing picture, because after I click on it, it is looking for it on my machine (in case of localhost or 127.0.0.1) but why it is shown on report than?)
Well my friend, it can be a lot of reasons, even not pentaho related, but, it's a light in the deep end of the tunnel, you are lucky today.
If the problem is the IP address, you need to register it in your DNS (or company's DNS), so, if the IP address changes, the DNS query will return the current IP address and will show the image.
It's not clear the VPN setup you are using, either the pentaho deployment setup, so it's hard to give you a better answer.
Related
I'm retrieving the name of some IBM System i from SQL with
; select local_host_name from qsys2.tcpip_info
This works for several machines, giving me in the first characters the same value than DSPNETA.
But with one machine, the result is "UNKNOWN" (and this is not the good name!)
What could be the problem with this machine?
There's simply no TCP/IP host name assigned...
A bit strange, especially now-a-days, but computers only care about the IP Address.
Ask the admins to assign it via the Change TCP/IP Domain (CHGTCPDMN) command
EDIT
I suspect you've got a name assigned in a DNS server somewhere, so your PC clients haven't noticed.
I'm building product inspection system using VBA
in a manufacturing company which is SMB.
Succeeded to access DB in NAS(it was pre-installled) to
read and write data.
But I can't figure out how to access files in NAS Server
I need to read and show item pictures on userform
for users to check Item and Part Number
Currently doing it using network connection
(It considers NAS is connected as local & VPN network participant
so i just load it like "pictures.insert("10.0.0.#######.jpg")")
is there any other way to connect and access the picture
not by VPN
prbly i should write codes to
connect / find forwarded port / verify as user / read file
but dont know how.
Thank you for any advice or opinions alot!
Problem: I created 10 AlwaysOn Availability Groups with SQL Server without a problem. Suddenly, it stopped worked and I kept getting this ONLY on the "create the listener" part:
Msg 19471, Level 16, State 0, Line 9
The WSFC cluster could not bring the Network Name resource with DNS name 'L_MyListener' online. The DNS name may have been taken or have a conflict with existing name services, or the WSFC cluster service may not be running or may be inaccessible. Use a different DNS name to resolve name conflicts, or check the WSFC cluster log for more information.
Sometimes I also got Msg 19476. This was all maddening because one moment I was creating listeners and availability groups, feeling like a guru, and then everything stopped and I lost hours of time.
So how do you solve this? Of course, Microsoft's own suggested text in the above error description was NOT helpful.
Apparently, each listener is really creating a mini "computer" in Active Directory if you look. And... here's the kicker, a domain user can only join a computer to a domain a limited number of times and that default is 10. Who would have thought that adding listeners equates with joining users to a domain!???! Microsoft really should have made this listener thing more intuitive, at least in their description text of possible problems.
Well, on your Domain Controller, open ADSI Edit, configure it the first time to look at your default naming context of your domain, like "DC=yourname..." with the CN= rows below that. Now, right click on the "DC=" line, choose Properties and navigate down to ms-DS-MachineAccountQuota and increase the limit from 10 to something else like 100.
You may need to run "GPUPDATE /FORCE" on the SQL Servers where you want to try again to add the listener. You may also have to clean up the mess it left (i.e. delete and restore the bad attempt at setting up your group and listener) before you try again.
With SQL Server 2016 supposedly going to require each database be in its own group, with its own listener, people will hit this limit of 10 quite easily!
I hope this helps you. If so, please mark this as the answer on the left. Of course, there are other reasons why people may get this error, as in the Microsoft error now but this whole post is for people who had it working just fine and then suddenly it stopped.
vb.net programmer and I am curious to know if there is a method to use so any program i am developing can select a specific network. I am asking this because i recently noticed that while on the wifi, i was still able to access a mapped drive from the lan connection. if there are any resources out there to enlighten me, im all ears because its annoying to constantly switch to my lan connection every time i have to test or deal with a db issue. Additional information: my programs connect to microsoft sql servers on the lan network.
Well I think I found an answer to my question, though it does not have anything to do with vb code. Since I am only dealing with two connections: my departments wifi and may workplace's main network(lan) , I decided to change the metric value of the lan connection to 9999 and left the wifi as automatic. somehow Im able to keep both connections open and my program connects normally to the mssql sever on the lan while im able to use my department's wifi for testing and browsing. interesting stuff there. thanks for the interesting links though.
I'm looking into making an apache module that would prevent any user from downloading the exact same large file multiple times.
This is the logic I have in mind:
- Get IP address and if it's not in database, store it and allow download
If IP address exists, then:
- If current requested file matches previously requested file, show error
- Upon completion of download, remove IP address from database.
I plan to capture the end of the download via an output filter (or should I use the log_transaction hook?).
The problem with this idea is that hackers could change their IP address at any time and therefore two different IP addresses could download one copy of the exact same file simultaneously.
How do I rectify this whole situation so that no multiple downloads of the exact same file run simultaneously for multiple IP addresses that belong to hackers?
If anyone has a solution, can you provide some very basic pseudo code so I can update my apache module accordingly?