I’m trying, on Mac, to change the IP of the OR’s server, on a compiled Mac version, and it doesn’t work… I know OR gets the parameters because the browser window that opens upon launch goes to the new address. What is funny it that http://127.0.0.1:3333 still works.
The IP really exist on my machine, as this command proves it:
I get the same problem. With the URL http://127.0.0.1:3334/, I can get the OR’s web page, with the other IP in the refine.ini. Since I changed the port number to 3334, I’m sure that the configuration is read.
Also, I can SSH my machine with this IP, so I’m pretty sure the network part of this IP is working.
./refine
Using refine.ini for configuration
-------------------------------------------------------------------------------------------------
You have 5047M of free memory.
Your current configuration is set to use 1400M of memory.
OpenRefine can run better when given more memory. Read our FAQ on how to allocate more memory here:
https://openrefine.org/docs/manual/installing#increasing-memory-allocation
-------------------------------------------------------------------------------------------------
08:04:37.237 [ refine_server] Java runtime version 17.0.13+0 from java.home: /usr/local/Cellar/openjdk@17/17.0.13/libexec/openjdk.jdk/Contents/Home (0ms)
08:04:37.243 [ refine_server] Java VM: Homebrew OpenJDK 64-Bit Server VM 17.0.13+0 mixed mode, sharing (5ms)
08:04:37.243 [ refine_server] Starting Server bound to '127.0.0.1:3334' (0ms)
08:04:37.243 [ refine_server] refine.memory size: 1400M JVM Max heap: 1400.0 MBytes (0ms)
We can see it accept the new port but not the new IP…
Set and use an environment variable. export REFINE_HOST=192.168.0.30 and export REFINE_INTERFACE=192.168.0.30 prior to running ./refine
Set the Java option in the refine.ini file with a line JAVA_OPTIONS=-Drefine.interface=192.168.0.30
It seems you have tried the 3rd option only. If you could try the other 2 that would help find the source of the problem.
Alternatively, it might help to just turn on debugging in the shebang line of the Bash script.
#!/usr/bin/env bash -v
My hunch is that we probably need to do a tweak or two in the refine bash script.
Reply back with which options work or not. As well as the full debug output of the refine script after adding the -v , just pipe the output to a txt file and zip it or whatever as attachment and we'll take a look.
Did you specify that the refine script should read from a custom refine.ini path with -c ? The default is that it reads from refine.ini in the same folder.
I do not see anything in the refine script that it would read from an Info.plist file for any of the 3 OS's. Where did you read or see that the refine script would read configuration from an Info.plist file?
Tom's right. Host essentially moved to become Interface. Our docs need to be updated.
The IP is now set via refine.interface
The HOST (like example.org) is now set via refine.host
The PORT remains the same via refine.port
And in doing so, @Antoine2711 you could probably improve this line?
You cannot start the Mac version with modifications using Terminal, but you can modify the way the application starts with settings within files.
to
If starting via the Application, then edit info.plist as mentioned below in settings within files. If starting via terminal with the refine shell script, then follow Linux running instead of Mac.
Yes @thadguidry, just setting -Drefine.interface=192.168.0.30 fixed everything.
I will also update the docs, there are plenty of places where the old configuration pattern are still shown.
There is the opposite that is said in the documentation.
You can find OpenRefine in your Applications folder, or you can open it using Terminal.
But when I try what’s proposed, I get this: (quick translation: JavaAppLaucher is broken, put it in the trash).
But, the Wiki page has been fully erased… @tfmorris: suggestions?
Also, your proposed revision jumps on another subject. As stated by Tom earlier, this is no refine script in the Mac version, unless you clone the repo… If you can do that, you probably don’t need to be explained that MacOS is kind like Linux… Let’s keep it simple, no?
But, the Wiki page has been fully erased… @tfmorris: suggestions?
I've lost the thread as to what is being quoted from where, but links to the wiki are generally obsolete and should be updated. In most cases the wiki page should contain a link to the new home for the information.