Author Topic: Problems getting set up  (Read 197 times)

musashi77

  • New Members
  • *
  • Posts: 7
Problems getting set up
« on: September 14, 2020, 04:05:08 PM »
Hello,

im having some real issues getting IMAnywhere to work as it should. Ive got two main issues Ive been trying to work through the past couple of days.

Win10 - Database\IMWS
Win2012 - photo Files accessed via a Share\mapped drive

1. I cannot connect via any other computer in the network despite the host.
- use the back slash
- Ive tried connecting via IP and Hostname
Ive configured the config.json file to be both Host name and IP Address.
http://<computer name>:8081/imatchviewer/
http://<IP Address>:8081/imatchviewer/
- manually added the ports to the Firewall
- completely turned off the firewall

I am able to ping the computer by name and IP from other computers. Windows and Linux hosts only.


2. I cannot connect seem to get user account to connect or get the files mapped correctly.
- I'm not using the 'LocalSytem' user account.
- Ive set up specific accounts on both the Win10 (database) and Win2012 (Shared files) they are administrator accounts. Have full access to the Share
- use the IMWS application to configure the account
- Ive imported all the files as UNC (orginally they came in via a mapped drive but used the "relocate" option to change to UNC)

yet despite this everytime I log in I get the following message about the files being offline. Ive gone through the documentation and still can't work out what Im doing wrong.

Drive/Media off-line: '\ \ s2012\ PICS (983E-EA01)'. Note: If you run IMatch WebServices under the default 'LocalSystem' user account, it has no access to files and folders on other computers. See IMWS documentation for information about how to solve this.
Sep 14, 2020 7:09:10 PM (drive.unavailable)

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 26313
Re: Problems getting set up
« Reply #1 on: September 14, 2020, 07:35:27 PM »
1. The log file is virtually empty. It only contains one entry.
This cannot be a real log file, or something on your machine is immediately stopping IMWS (Virus Checker, Group Policy etc.).

Did you try to open a browser on the same PC running IMWS? Does that work?

2. Can you access the share from the PC running IMWS in IMatch?
In that case, the user running IMWS has no access to the resource or network at all.
But all this would be logged in the IMWS log file, but your log file contains only the first entry written shortly after the log file is opened. IMWS is doing nothing, not even starting up.

musashi77

  • New Members
  • *
  • Posts: 7
Re: Problems getting set up
« Reply #2 on: September 15, 2020, 04:45:33 PM »
Quote
1. The log file is virtually empty. It only contains one entry.
This cannot be a real log file, or something on your machine is immediately stopping IMWS (Virus Checker, Group Policy etc.).
Ok so have noticed something strange that might explain the log file.
When I start the Imatch Webservice Controller the location of the Service Log file shows as  C:\Users\danield\AppData\Local\Temp {the user danield is the logged on user} and when the service is started it changes to C:\Users\IMWS\AppData\Local\Temp {user IMWS is the local account created to run the service and access the files}
When I change the Default user in "configuration" This behavior doesn't change. I have attached screenshots and both log files (Screenshot IMWS_01 corresponds with IMATCH_WSC_LOG_01.txt and IMWS_02 corresponds with IMATCH_WEBSERVICE_LOG_02.TXT)
Virus is standard Defender and there are no group polices configured, its a standard Win10 install, not domained joined.
 
Quote
Did you try to open a browser on the same PC running IMWS? Does that work?
Yes, it works for the local computer, can browse, but obviously not connecting to the share, cause the admin messages keep confirming it timestamp of latest message matches the same time I log in.

Quote
2. Can you access the share from the PC running IMWS in IMatch?
In that case, the user running IMWS has no access to the resource or network at all.
But all this would be logged in the IMWS log file, but your log file contains only the first entry written shortly after the log file is opened. IMWS is doing nothing, not even starting up.

I think Im getting lost here. Who exactly is the user running IMWS? Is it the account launching the app? Is it the account running the Service Account? Or is it the "default user"?

Also a bit of info that may be useful. I originally installed the Trial version last year, originally when I installed the newer version I was unable to do anything with the Controller, after researching I was able to locate and make a copy of the json file to get things working. Some of the previous install perhaps inferred with the new install or something. Im happy to start over with a fresh install if it would help, but want to make sure I can do a clean uninstall of the currently installed version.

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 26313
Re: Problems getting set up
« Reply #3 on: September 15, 2020, 07:33:29 PM »
IMatch Anywhere usually installs cleanly and works out-of-the box.
It is (for me) actually a zero service product - it just works.

If something does not work, from experience, it is either:

- Name resolution in the network (the PC running IMWS cannot be accessed via its name but only via its IP address - most common in Apple networks)
- Virus Checker on the PC running IMWS blocking something
- Firewall on the PC running IMWS blocking something

The log files look OK. No errors or warnings.
If you can connect to IMWS from the same PC running IMWS but not from another PC in your network, check this:

A) Can you reach the PC running IMWS via ping using the a) computer name or b) only the IP address?

If only the IP address works, make sure to update the imwsUrl option in the config.json configuration file to use the IP address and not the computer name.
This option tells the WebBrowser how to connect to IMWS. See the IMatch Anywhere Admin documentation for details about this and all other options in the configuration file.

B) If you can reach the PC via ping but not connect to IMWS via the browser, check the Firewall settings on the PC running IMWS.
IMWS creates a default rule in the Windows firewall during installation which allows access from the local network.
If you use a 3rd party firewall or a virus checker with some sort of "network protection" it may interfere and block access.
You should see messages in your 3rd party firewall, the Windows event log or your virus checker logs in that case.


Installations usually upgrade cleanly from the latest version.
But when you have installed an old trial somewhen a year ago, who knows? So much changes in a year.
It is not really supported to install multiple trial versions on the same machine. I don't test this extensively.

For example, configuration files are only created when they do not exist (first trial installation) but not when you install a trial again a year later.
It would be really bad to overwrite configuration files modified by the user...

If the configuration options have changed in the mean time, the Admin / IT personnell must make the required changes - or ensure a clean un-install, including the already created configuration files before installing a later trial version.

Please understand that I cannot anticipate and prepare for all possible installation scenarios.

musashi77

  • New Members
  • *
  • Posts: 7
Re: Problems getting set up
« Reply #4 on: September 16, 2020, 11:56:49 AM »
Quote
If something does not work, from experience, it is either:

- Name resolution in the network (the PC running IMWS cannot be accessed via its name but only via its IP address - most common in Apple networks)
- Virus Checker on the PC running IMWS blocking something
- Firewall on the PC running IMWS blocking something

After further troubleshooting it looks like the access issue is no sorted. All the firewall rules were added ofcourse by the install and manully again, however it was all to no avial if the network Im connected to is set to 'public' and all the rules are obviosuly set for 'private'. So happy that parts out of the way.

Ill be back in an hour or two (after getting the kids ready and into bed) to look closer at the account accessing the files on the server problem.

musashi77

  • New Members
  • *
  • Posts: 7
Re: Problems getting set up
« Reply #5 on: September 17, 2020, 03:36:34 PM »
So Ive spent the past day or two thinking about the user permissions, I've read over the user guide over a few times and still don't understand how I can configure this to work correctly, my set up I don't think is that un-common.

the set up:
Server 2012: File Share 'PICS' hosts all my photos. There is a 'user' account with access on this server.
Windows 10: This computer has a Mapped drive to the share 'PICS' using the credentials 'user' from the Server.

So the issue I have is iMatch anywhere is running under my local user account on Win10, so I created a new local account 'IMWS' and use this to run the service on the Win10 computer, however this ofcourse does not work as the the server doesn't know of the account and therefore can't access the share. The account that does have access resides on the server, but the local computer doesn't know of it so is unable to use. So I'm left with accounts at each location but neither being able to be used on the other.
Hope all of this is making sense.
So the question I have is how do I get an account on my local that has access required on the server side? I can't figure that part out.
Any help or guidance will be much appreciated, as I feel I must be overlooking something that's staring right at me..

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 26313
Re: Problems getting set up
« Reply #6 on: September 17, 2020, 04:32:40 PM »
In 90% of all use cases, the default setup IMWS is installed with works. Only when your images are on a remote machine, you need to change the user account for the IMWS service.

You need to run IMWS under a user account which has access to the share on the remote machine.
If your user account has access, you can run IMWS under your account. Just make sure your account has the "log on as a service" privilege so it can be used to run a service.
See the IMatch Anywhere Administrator documentation for more info.

Otherwise, create a new user account with the required privileges and access to all resources IMWS needs, and run the IMWS service under that account. How to create a new account depends on your Windows version, your network setup, if you run an ADS etc. See the Microsoft Windows documentation on user accounts for full information.

I'm not sure how I can help further, because this all depends on your configuration and network environment. Ask your IT people for support and advise.
« Last Edit: September 17, 2020, 04:44:04 PM by Mario »

David_H

  • Jr. Member
  • *
  • Posts: 87
Re: Problems getting set up
« Reply #7 on: September 17, 2020, 05:36:37 PM »
Server 2012: File Share 'PICS' hosts all my photos. There is a 'user' account with access on this server.
Windows 10: This computer has a Mapped drive to the share 'PICS' using the credentials 'user' from the Server.

So the issue I have is iMatch anywhere is running under my local user account on Win10, so I created a new local account 'IMWS' and use this to run the service on the Win10 computer, however this ofcourse does not work as the the server doesn't know of the account and therefore can't access the share. The account that does have access resides on the server, but the local computer doesn't know of it so is unable to use. So I'm left with accounts at each location but neither being able to be used on the other.
Hope all of this is making sense.
So the question I have is how do I get an account on my local that has access required on the server side? I can't figure that part out.

Assuming the machines are NOT domain joined (if they are, use a domain account!).

Ensure you have an account with the same username AND password on both machines (so if IMWS exists on WIN10 with password 12345, you need a user IMWS on SERVER2012 with password 12345).
Make sure the share is accessible to the user.

If your files are accessed through a path that won't work (eg a mapped drive - P:\Pictures instead of \\SERVER2012\Share\Pictures\) then setup a relocation rule (Edit->Preferences->Database->Portability Options; add appropriate rules (eg for SERVER2012, relocate P: to \\SERVER2012\Share\Pictures).
IMA may take slightly longer to start up the first time (as it'll do the relocate).

I hope some of that might be of some use!

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 26313
Re: Problems getting set up
« Reply #8 on: September 17, 2020, 06:17:53 PM »
Also keep in mind that drive mappings (M:) are per-user in Windows. Prefer UNC shares over mapped drives for IMWS and cross-computer usage.

musashi77

  • New Members
  • *
  • Posts: 7
Re: Problems getting set up
« Reply #9 on: September 18, 2020, 12:04:06 AM »
Thanks Mario,
Yes, as I mentioned in my original post, I did change all the files to UNC as they were all originally via a mapped drive (using the "relocate" option to change to UNC).

Still I dont know how I get a account access from this computer?

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 26313
Re: Problems getting set up
« Reply #10 on: September 18, 2020, 08:58:35 AM »
Quote
Still I dont know how I get a account access from this computer?

You mean IMWS on PC "A" cannot access folders on PC "B", even after you have created an user account with the correct privileges and configured the IMWS service to run under this account?
But you can access IMWS via IMatch Anywhere WebViewer from any PC in your network?
In that case it is a Windows security issue and some privilege is missing for the new user account.

musashi77

  • New Members
  • *
  • Posts: 7
Re: Problems getting set up
« Reply #11 on: September 18, 2020, 04:28:37 PM »
Quote
Ensure you have an account with the same username AND password on both machines (so if IMWS exists on WIN10 with password 12345, you need a user IMWS on SERVER2012 with password 12345).
Make sure the share is accessible to the user.

If your files are accessed through a path that won't work (eg a mapped drive - P:\Pictures instead of \\SERVER2012\Share\Pictures\) then setup a relocation rule (Edit->Preferences->Database->Portability Options; add appropriate rules (eg for SERVER2012, relocate P: to \\SERVER2012\Share\Pictures).
IMA may take slightly longer to start up the first time (as it'll do the relocate).

Thankyou David_H, this is exactly the info I was looking for. Apologies for failing to mention that this is a non-domain environment. 

So following the above steps, I've got to the "Portability options", and selecting 'Add' does nothing at all.
The other problem is I am unable to select the drive in the rules section, whether I select Disk or Folder I am unable to select the top level, and selecting Disk appears to revert to Folder selection (see screenshot)

David_H

  • Jr. Member
  • *
  • Posts: 87
Re: Problems getting set up
« Reply #12 on: September 18, 2020, 06:10:59 PM »
Quote
So following the above steps, I've got to the "Portability options", and selecting 'Add' does nothing at all.
The other problem is I am unable to select the drive in the rules section, whether I select Disk or Folder I am unable to select the top level, and selecting Disk appears to revert to Folder selection (see screenshot)

Type the name of the server machine in, eg server2012 - press add, it should then change to uppercase.
Click new.
Put your source FOLDER or DISK in (eg p:\photos)  - if you use the picker, the dashed box is for things NOT in your database (eg the root folder  - p:), expand it until you get to a full box (eg p:\Photos)
Type the UNC path in the TARGET eg (\\Server2012\PhotoShare\Photos). Do NOT use the picker.
Click OK.
Click OK.

Go back into the dialog and make sure that the relocation options are shown.

I just relocate the entire disk (disk p: goes to  \\server\share ).

Good luck!

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 26313
Re: Problems getting set up
« Reply #13 on: September 18, 2020, 06:23:50 PM »
If you cannot select the disk/media/share in the dialog, I recommend you just type in the name by hand or do a quick copy/paste from Windows Explorer or the IMatch Media & Folders View.
You can only select folders in this dialog, which is also the most frequent source/target for relocation. Just relocate the top-level folders as needed. See the Portability Options help topics for details.
« Last Edit: September 18, 2020, 06:26:56 PM by Mario »

musashi77

  • New Members
  • *
  • Posts: 7
Re: Problems getting set up
« Reply #14 on: September 18, 2020, 11:00:12 PM »
Success, finally. I was focused so much on the picker that it never occurred to me that I could just type in the Computer names and shares.
Finally I can now log into IMA without seeing any error notifications prompting me to go to the Admin area.

My wife will be happy, she can now start easily going through all the hundreds of kids photos we have taken over the years and pick (flag) or star her favorites an start the photo book projects she's been wanting to do.

Thanks so much guys, appreciate the help and prompt replies.

And special shout out to Mario on an awesome product, I'm a Lightroom user but more and more need to find a solution for better access for my wife and IMatch + Imatch Anywhere is perfect for our needs at home moving forward. I look forward to slowly importing my 200k+ photo collection digging deeper into its many many features.