Upgrade using Install Script not working properly on macOS

I’ve notice with the last two updates that the install script does not work properly on macOS. I’ve seen this issue on two different macOS computers. On one computer the install says it installed properly and the OttoFMS service is running but the system returns an error about the referring page being outdated when you attempt to access the webadmin console. On the second comptuer the install reports that it installed but when logging into the web admin console it’s reports it’s still running the previous version of OttoFMS.

With both updates on both computers, running the Otto uninstaller first and then running the install script again results in successful upgrades.

Hey Patrick,

Did you see any errors in the logging from the install script? If it doesn’t uninstall the application I would expect an error. If there is not I could take a look through our script and see if we’re missing anything. Thanks for the report!

-Kyle

Not that I can really see. Here is the Info log file from one of the machines. The first entries are from where I installed the update, and then couldn’t access the web console. The last set of entries is from where I uninstalled OttoFMS and then reinstalled it and the system started working.

============
===. Deleted as it was the wrong log file ===

When you ran the script via the command line were there any errors that you saw? I realize that you probably didn’t notice the error until later so you might not have saved those logs, but that is where I would expect them.

-Kyle

In Terminal, there were no error messages. I would get the message, something similar to OttoFMS was successfully installed. I don’t remember the exact wording but it was a success not error message.

1 Like

Next time you run the install script can you send me the full log from the command line? I’d like to trace how it went through the script. Thank you Patrick!

-Kyle

will do. I’m current with installs but will pick this up again with the next update.

Don’t worry, I’ll be giving you an opportunity to try it out again momentarily

I ran the upgrade script for the latest update and the same issue happened. Here is the log file. It showed no errors.

=========== Terminal Session ==============
grimes:~ admin$ sudo curl -sSL “https://appupdates.proofgeist.com/ottofms/install-scripts/install-mac.sh” | bash
Password:
Downloading ottofms-app version latest for mac…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 69.9M 100 69.9M 0 0 25.3M 0 0:00:02 0:00:02 --:–:-- 35.1M
Download successful.
Unzipping the downloaded file…
Archive: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/installer.zip
creating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/
creating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/CodeResources
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/Info.plist
creating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/MacOS/
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/MacOS/OttoFMS
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/MacOS/installbuilder.sh
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/MacOS/osx-x86_64
creating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/Resources/
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/Resources/installbuilder
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/Resources/installbuilder.icns
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/Resources/osx-x86_64.dat
creating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/_CodeSignature/
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/_CodeSignature/CodeDirectory
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/_CodeSignature/CodeRequirements
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/_CodeSignature/CodeResources
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app/Contents/_CodeSignature/CodeSignature
inflating: /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/PLEASE-READ-FIRST.txt
Unzip successful.
2024-04-30 08:17:10.409 mdfind[11223:540666496] [UserQueryParser] Loading keywords and predicates for locale “en_US”
2024-04-30 08:17:10.409 mdfind[11223:540666496] [UserQueryParser] Loading keywords and predicates for locale “en”
ottofms-app is installed. Uninstalling…
Installing /var/folders/nh/bzlf3trn2vsfmtfyl53lxjcc0000gn/T/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer/OttoFMS-4.3.3-osx-installer.app…
Installation successful.
Cleaning up files…
grimes:~ admin$
============== End of Log =================

===== Screenshot of browser error when access console after running update =========

There may be some improvements we can make to the install script, but I’ve also run across this issue occasionally when installing directly from the GUI installer. In my experience, the issue is with the web server or FileMaker Server, not the OttoFMS service itself.

To check if Otto is actually running, go to 127.0.0.1:3061/otto in Safari on the server machine and see if you can access the dashboard. If you can, go to the FileMaker Server > Services page and restart the HTTP Server on your machine. This usually fixes it for me.

If you cannot load the dashboard, follow this guide specific to MacOS to make sure OttoFMS has full access to your disk and then restart the Otto service via the command line and try again.

Please let us know if this workaround fixes the issue for you

So i worked through the troubleshooting steps. Discovered that Full Disk access was toggled off after the update. Toggling it back on and starting Otto got the service running. Seems like there is a bit of flakiness in macOS when run the updates. With the last update Full Disk access wasn’t disabled and even removing and readding full disk access didn’t resolve the issue.

We should be able to fix it. I am pretty sure Eric is right. The FMServer WebServer is not getting restarted properly

In the meantime the fastest and easiest way to restart the webserver is the comman line

fmsadmin restart httpserver

Todd

Having another issue running the install script on macOS. In this case I’m moving this server from 4.3.2 to 4.3.4. When run the script reports the “ottfms-app is not installed” and then reports it installed successfully, but Otto is not actually upgraded and continues to run 4.3.2.

========= log files from installation ==============
sudo curl -sSL “https://appupdates.proofgeist.com/ottofms/install-scripts/install-mac.sh” | bash
Password:
Downloading ottofms-app version latest for mac…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0
100 69.9M 100 69.9M 0 0 11.9M 0 0:00:05 0:00:05 --:–:-- 16.4M
Download successful.
Unzipping the downloaded file…
Archive: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/installer.zip
creating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/
creating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/CodeResources
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/Info.plist
creating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/MacOS/
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/MacOS/OttoFMS
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/MacOS/installbuilder.sh
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/MacOS/osx-x86_64
creating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/Resources/
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/Resources/installbuilder
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/Resources/installbuilder.icns
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/Resources/osx-x86_64.dat
creating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/_CodeSignature/
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/_CodeSignature/CodeDirectory
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/_CodeSignature/CodeRequirements
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/_CodeSignature/CodeResources
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app/Contents/_CodeSignature/CodeSignature
inflating: /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/PLEASE-READ-FIRST.txt
Unzip successful.
2024-05-06 15:22:05.110 mdfind[12070:75804423] [UserQueryParser] Loading keywords and predicates for locale “en_US”
2024-05-06 15:22:05.111 mdfind[12070:75804423] [UserQueryParser] Loading keywords and predicates for locale “en”
ottofms-app is not installed.
Installing /var/folders/df/1m_b6mts0kj5knd0fw74g6340000gn/T/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer/OttoFMS-4.3.4-osx-installer.app…
Installation successful.
Cleaning up files…
admin@remote ~ %

Hi Patrick,

Sorry, this hasn’t gone well for your macs. We aren’t quite sure why. We’ll keep looking.

Todd