Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.3.1 not working on my OSX 10.11.6 (15G1611) #1075

Closed
grillp opened this issue Nov 24, 2017 · 53 comments
Closed

2.3.1 not working on my OSX 10.11.6 (15G1611) #1075

grillp opened this issue Nov 24, 2017 · 53 comments

Comments

@grillp
Copy link

grillp commented Nov 24, 2017

I updated SABNzb+ to v 2.3.1 (from 2.2.0). Start SABNzb+ and nothing happens. If I start Activity Monitor and Filter for SAB, I see the process starting and then stopping again after a few seconds away.

If I revert to 2.2.0 that works fine.

In ~/Library/Application Support/sabnzb/logs/sabnzb.logs, all I see is:

2017-11-24 18:47:18,079::INFO::[_cplogging:219] [24/Nov/2017:18:47:18] ENGINE Bus STARTING
2017-11-24 18:48:50,331::INFO::[_cplogging:219] [24/Nov/2017:18:48:50] ENGINE Bus STARTING
for 2 seperate restarts.

Changed the loglevel (in sabnzb.ini) to 9 and see:

2017-11-24 19:01:34,833::INFO::[SABnzbd:1141] Console logging for OSX App disabled
2017-11-24 19:01:34,833::INFO::[SABnzbd:1148] --------------------------------
2017-11-24 19:01:34,833::INFO::[SABnzbd:1149] SABnzbd.py-2.3.1 (rev=f1695ec8753fbdb07bd67bdce25eeb3ebe70b972)
2017-11-24 19:01:34,834::INFO::[SABnzbd:1150] Full executable path = /Applications/SABnzbd.app/Contents/MacOS/SABnzbd
2017-11-24 19:01:34,834::INFO::[SABnzbd:1160] Platform = posix
2017-11-24 19:01:34,834::INFO::[SABnzbd:1161] Python-version = 2.7.14 (default, Oct 26 2017, 19:43:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]
2017-11-24 19:01:34,834::INFO::[SABnzbd:1162] Arguments = /Applications/SABnzbd.app/Contents/Resources/SABnzbd.py
2017-11-24 19:01:34,834::INFO::[SABnzbd:1167] Preferred encoding = UTF-8
2017-11-24 19:01:34,835::INFO::[SABnzbd:1177] SSL version = OpenSSL 1.0.2l 25 May 2017
2017-11-24 19:01:34,835::INFO::[SABnzbd:1184] Loaded additional certificates from /Applications/SABnzbd.app/Contents/Resources/cacert.pem
2017-11-24 19:01:34,854::DEBUG::[SABnzbd:1191] Available certificates: {'x509': 142, 'x509_ca': 142, 'crl': 0}
2017-11-24 19:01:34,854::DEBUG::[SABnzbd:1198] My local IPv4 address = 10.3.105.86

Anything else I can check?

@Safihre
Copy link
Member

Safihre commented Nov 24, 2017

@Cpuroast we have reports of this in the forum too. Did you notice anything in your systems?

@Safihre
Copy link
Member

Safihre commented Nov 24, 2017

@grillp Could you do this? https://sabnzbd.org/wiki/faq#freshstart

And then start SABnzbd via the terminal, like this:

/Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console

What is the whole output? Is My local IPv4 address really the last line?

@grillp
Copy link
Author

grillp commented Nov 24, 2017

Tried without th reset and got this:

/Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console
INFO:root:--------------------------------
INFO:root:SABnzbd.py-2.3.1 (rev=f1695ec8753fbdb07bd67bdce25eeb3ebe70b972)
INFO:root:Full executable path = /Applications/SABnzbd.app/Contents/MacOS/SABnzbd
INFO:root:Platform = posix
INFO:root:Python-version = 2.7.14 (default, Oct 26 2017, 19:43:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]
INFO:root:Arguments = /Applications/SABnzbd.app/Contents/Resources/SABnzbd.py -l2 --console
INFO:root:Preferred encoding = US-ASCII
INFO:root:SSL version = OpenSSL 1.0.2l 25 May 2017
INFO:root:Loaded additional certificates from /Applications/SABnzbd.app/Contents/Resources/cacert.pem
DEBUG:root:Available certificates: {'x509': 142, 'x509_ca': 142, 'crl': 0}
DEBUG:root:My local IPv4 address = 10.3.105.212
[1] 1542 illegal hardware instruction /Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console

Will try with reset later. The illegal hardware instruction looks weird..

@grillp
Copy link
Author

grillp commented Nov 24, 2017

The DEBUG:root:My local IPv4 address = 10.3.105.212 in the log is kinda weird.

Thats the IP address of my VPN TUN interface. so strange, but the same thing shows up in 2.2.0 which works fine.

Here is the same startup log using 2.2.0:

2017-11-24 19:16:44,926::INFO::[SABnzbd:1148] SABnzbd.py-2.2.0 (rev=b061e582b63491f5a7dca02277b1ccd490bbd388)
2017-11-24 19:16:44,926::INFO::[SABnzbd:1149] Full executable path = /Applications/SABnzbd.app/Contents/MacOS/SABnzbd
2017-11-24 19:16:44,926::INFO::[SABnzbd:1161] Platform = posix
2017-11-24 19:16:44,926::INFO::[SABnzbd:1162] Python-version = 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:39:47)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
2017-11-24 19:16:44,926::INFO::[SABnzbd:1163] Arguments = /Applications/SABnzbd.app/Contents/Resources/SABnzbd.py -psn_0_237626
2017-11-24 19:16:44,927::INFO::[SABnzbd:1168] Preferred encoding = US-ASCII
2017-11-24 19:16:44,927::DEBUG::[SABnzbd:1182] My local IPv4 address = 10.3.105.212
2017-11-24 19:16:45,575::DEBUG::[SABnzbd:1188] My public IPv4 address = 128.90.106.81
2017-11-24 19:16:45,575::DEBUG::[SABnzbd:1196] Could not determine my IPv6 address
2017-11-24 19:16:45,588::DEBUG::[SABnzbd:1202] CPU Pystone available performance is 81327

And that also has 10.3.105.212 so maybe it is not wrong.

@grillp
Copy link
Author

grillp commented Nov 24, 2017

Tried the reset as mentioned above.

Ran /Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console and got:

[1] 1715 illegal hardware instruction /Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console

So no go.

@grillp
Copy link
Author

grillp commented Nov 24, 2017

I have also tried re-downloading the the 2.3.1 OSX DMG and installing from the new one, but the same thing happens.

I just DLed 2.3.0 and ran it, and it works fine. Seems like it is only 2.3.1 that is a problem for me.

@Cpuroast
Copy link

Cpuroast commented Nov 24, 2017

2.3.1 launches perfectly in my 10.11.6 VM, obviously with a fresh ini file.

Did you try just running 2.3.1 with a fresh ini file without any special command?

Shutdown Sab
Move ~/Library/Application Support/SABnzbd/sabnzbd.ini to your desktop in case the ini file isn't to blame.
Then try launching 2.3.1 by simply double clicking on the app, it should launch the wizard for initial config.

@Cpuroast
Copy link

I just retested with a fresh copy of 2.3.1 on my 10.11 VM running:

System Version: OS X 10.11.6 (15G17023)
Kernel Version: Darwin 15.6.0

This is the same as grillp's version and it launches perfectly.

@Safihre
Copy link
Member

Safihre commented Nov 24, 2017

I am reading online that it is something python specific. Found some stuff about retina and non retina machines, weird things.

@Cpuroast
Copy link

We have some retina boxes at work, I can give it a whirl and see.
It would be very odd if it played a part.

2.3.1 is when Python 2.7.14 landed. 2.3.0 and 2.2.0 used Python 2.7.13.

@grillp
Copy link
Author

grillp commented Nov 24, 2017

@Cpuroast, I did try '2.3.1' with a clean ini and just dbl clicked the icon. Same deal. Didn't work.

My spec is an old 2007 24' iMac which is still alive. (Amazingly!!) But upgraded with SSD and max mem, and perfect for background stuff like Sab. So non Retina machine. Also the reason I can't upgradefrom El Captain to High Sierra.

And again, '2.3.0' works fine. Maybe I'll stick with '2.3.0' and see when a new version comes out as it seems like "it's me, not you"?

@Safihre
Copy link
Member

Safihre commented Nov 24, 2017

@grillp, it's not you :/
More users report same here: https://forums.sabnzbd.org/viewtopic.php?f=2&t=23098

Could you possible try these 2 different builds? They are just experiments to see where to start from:
https://github.com/sabnzbd/sabbuild/releases/tag/OSX10.12
https://github.com/sabnzbd/sabbuild/releases/tag/OSX10.11-2
That last one is still building, maybe check back in 1 or 2 hours from now if the dmg shows up :)

@grillp
Copy link
Author

grillp commented Nov 24, 2017

If I run the )OSX10.12 version I get:

/Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console
dyld: lazy symbol binding failed: Symbol not found: _getentropy
Referenced from: /Applications/SABnzbd.app/Contents/Frameworks/Python.framework/Versions/2.7/Python (which was built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _getentropy
Referenced from: /Applications/SABnzbd.app/Contents/Frameworks/Python.framework/Versions/2.7/Python (which was built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib

[1] 1522 trace trap /Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console

So does not start at all.

I am waiting for the second build to complete.

@Cpuroast
Copy link

Cpuroast commented Nov 25, 2017

Now testing on a Late 2013 non-retina iMac running 10.11.6 with the same build number as grillp.

The "OSX10.12" build obviously doesn't run on 10.11 as the "xcode9.1" image doesn't contain the SDK for 10.11.
I'm still waiting for the xcode8 build, which hasn't finished yet.
It would be worth trying the xcode7.3.1 image, this would however drop 10.9 and 10.10 support,
Unless we want to go back to a multi-version setup.

The latest stable 2.3.1 version runs just fine as it did in my 10,11 VM.
Also, the regular 2.3.2RC1-build version which was built with xcode6.4 runs perfectly as it did in my 10,11 VM

As far as travis goes:

xcode6.4 is for 10.9 and up
xcode7.3.1 is for 10.11 and up
xcode8 is for 10.11 and up
xcode8.1 is for 10.12 and up
xcode8.2 is for 10.12 and up
xcode8.3.3 is for 10.12 and up
xcode9.0 is for 10.13 and up
xcode9.1 is for 10.13 and up

@grillp
Copy link
Author

grillp commented Nov 25, 2017

I also just tried with the the real 2.3.2-RC1 from here: https://github.com/sabnzbd/sabbuild/releases/tag/2.3.2RC1-build

Got this:

INFO:root:--------------------------------
INFO:root:SABnzbd.py-2.3.2RC1 (rev=0049f14d7faeb22a89865c610b058723fa42d291)
INFO:root:Full executable path = /Applications/SABnzbd.app/Contents/MacOS/SABnzbd
INFO:root:Platform = posix
INFO:root:Python-version = 2.7.14 (default, Nov 23 2017, 17:06:50)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]
INFO:root:Arguments = /Applications/SABnzbd.app/Contents/Resources/SABnzbd.py -l2 --console
INFO:root:Preferred encoding = UTF-8
INFO:root:SSL version = OpenSSL 1.0.2m 2 Nov 2017
INFO:root:Loaded additional certificates from > /Applications/SABnzbd.app/Contents/Resources/cacert.pem
[1] 1731 illegal hardware instruction /Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console

Waiting for the https://github.com/sabnzbd/sabbuild/releases/tag/OSX10.11-2 build now to try that out.

@Cpuroast
Copy link

Cpuroast commented Nov 25, 2017

It all boils down to the fact that your mac is too old.
It's officially going out of support by Apple in Fall 2018 when 10.11 bites the bullet, with the release of 10.14 as Apple only supports current+2 previous OSes.
It's time think about an upgrade.

@grillp
Copy link
Author

grillp commented Nov 25, 2017

Nooo! Say it ain't so! ;-) Shame cause it works well as that work horse.

Seems strange that it happened between 2.3.0 and 2.3.1.

I assume that the XCode version between the build/packaging updated the python version from 2.7.13 to 2.7.14? Is there a way to tie it back to the previous version? i.e. downgrade XCode/Python? Or is this something I would have to try and do myself?

Otherwise it looks like I will be stuck at 2.3.0 for a while to come then!

Thanks for looking into it!

@Cpuroast
Copy link

Cpuroast commented Nov 25, 2017

The build environment which built 2.3.0, 2.3.1 and 2.3.2RC1 didn't actually change, which is why it still runs on my 10.9 VM.

2.3.0 has Python 2.7.13 while 2.3.1 and up have Python 2.7.14, so it could be something in Python 2.7.14.

Starting with 2.3.0, I have been personally testing Sab on 10.9, 10.10, 10.11, 10.13 in VMs and on 10.12 on the host running those VMs which is a mid-2012 MacBook Pro running 10.12, to make sure builds run on all OSes and so far they have been working flawlessly at least on this 2012 CPU.

Maybe there's a way to make the build environment even more restrictive in terms of CPU features when building.

@grillp
Copy link
Author

grillp commented Nov 25, 2017

IC. So where does the python version change come into it? from 2.7.13 to 2.7.14? It's not like I change my python between installs of SAB?

2.3.0 says python-version: 2.7.13 (default, Jul 18 2017, 09:16:45)
2.3.1 says python-version: 2.7.14 (default, Oct 26 2017, 19:43:58)
2.3.2-RC2 says python-version: 2.7.14 (default, Nov 23 2017, 17:06:50)

So it seems anything running/built with 2.7.14 fails on my machine.

I assume the python version is build into the App package? Is that part of the XCode build chain? or what ever version the build server has installed at the time?

Just trying to understand a bit better ;-)

@Cpuroast
Copy link

Cpuroast commented Nov 25, 2017

As far as I know Python is built at the same time as everything else and bundled with the app.

Sab stopped using the system python as that is stuck on a old version which is linked to an ancient version of OpenSSL.
The ancient version of OpenSSL is a problem as it's stuck at TLS 1.0 and isn't maintained anymore and is therefore insecure.

@Cpuroast
Copy link

While Safihre may find a work around to restrain the build environment in terms of CPU instructions, the simple fact is that all macs which did not make the Sierra cut and which are stuck on 10.11 are in their last year or so of useful life, once Apple stops supporting 10.11 in Fall 2018, many apps will start to follow and since the hardware cannot be upgraded to 10.12 and up, it's game over.

Web browsers like Chrome and Firefox have been very generous and currently support 10.9 and up. That's current+4 previous versions, which is 2 more than Apple supports.
So I suggested we match that for Sab and so far it's been working well, however this instruction issue on older Core 2 hardware was unexpected.

Other popular apps are more strict for example:

Office 2016 supports 10.10 and up, which is current+3 previous
Adobe CC as of 2018 supports 10.11 and up, which is current+2 previous

@grillp
Copy link
Author

grillp commented Nov 25, 2017

Sounds fair. Now i have to convince the Minister Of Finance that my iMac really really needs updating. ;-)

So give me a few months please ;-)

G./

@Safihre
Copy link
Member

Safihre commented Nov 25, 2017

Oops, I made a typo in the 10.11 build. Restarting now!

@Safihre
Copy link
Member

Safihre commented Nov 25, 2017

@grillp
Copy link
Author

grillp commented Nov 25, 2017

Just tried 2.3.2RC1 [0049f14] from https://github.com/sabnzbd/sabbuild/releases/tag/OSX10.11-2 and it works!

The python version in this build is 2.7.14 (default, Sep 25 2017, 09:53:17) so different from the 2 other that failed. So strange that it now works with a 2.7.14

Thanks for all your efforts guys!

@Safihre
Copy link
Member

Safihre commented Nov 25, 2017

Hmmm @Cpuroast now what do we do? 😆
Drop 10.10 support? I assume this 10.11 build doesn't work on 10.10/10.9 right?

I could also try to force the 10.10 build to use 2.7.13 and see if that maybe works?

@Safihre
Copy link
Member

Safihre commented Nov 25, 2017

@grillp Could you maybe test this version?
https://github.com/sabnzbd/sabbuild/releases/tag/OSX10.10-3
It uses Python 2.7.13 but on a OSX 10.10 build system, to see if the newer Python version is the problem.

@Cpuroast
Copy link

In a surprising turn of events, OSX10.11-2 actually runs on 10.9 and 10.10.
That was built using the xcode8 image?

@Cpuroast
Copy link

maybe there's something weird with the xcode6.4 travis image
I know if you don't specify osx_image, it defaults to the xcode7.3.1 image.

Xcode 7.3.1 is available by adding osx_image: xcode7.3 to your .travis.yml.
– Default when no other osx_image: is specified

You could try that one.

@Cpuroast
Copy link

as I said, there might be something funky with the old xcode6.4 image.

@Cpuroast
Copy link

Python 2.7.14 is fine, I think the travis images simply have their quirks.

So we know that builds done with xcode6.4 image has issues with older CPUs
Would be worth trying Python 2.7.14 on the default xcode7.3.1 image and see what happens.

@Cpuroast
Copy link

Still need to test OSX10.11-2 on 10.11,10.12 and 10.13

@Cpuroast
Copy link

Cpuroast commented Nov 25, 2017

OSX10.11-2 runs on 10.9, 10.10, 10.11, 10.12 and 10.13

At least on this 2012 CPU

Looks like we might have a new winner.

I didn't bother testing OSX10.10-3 across all OSes as that rolls back Python, which isn't ideal and it would mean maintaining multiple builds for multiple OSes again.

1 build for all 5 versions of macOS is much nicer.

@Cpuroast
Copy link

Also, Safihre you should really join the sab IRC channel on SynIRC, would be faster for testing and collaboration than github comments.

@grillp
Copy link
Author

grillp commented Nov 25, 2017

@Safihre , tried the version in https://github.com/sabnzbd/sabbuild/releases/tag/OSX10.10-3

It failed:

/Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console
[1] 4144 illegal hardware instruction /Applications/SABnzbd.app/Contents/MacOS/SABnzbd -l2 --console

No logging other than that.

@Cpuroast
Copy link

@grillp Yeah, it's pretty much the same error as before, it's trying to use an instruction your CPU doesn't have.

So far, whatever @Safihre did for OSX10.11-2, it did the trick, it runs on all versions of macOS and it runs on your 2007 CPU.

@Safihre
Copy link
Member

Safihre commented Nov 26, 2017

Great, then OSX10.10-2 it is 👍 Thanks both for testing!
@Cpuroast Not near computer often enough to be on IRC, so just combining everything in Github comments 😃

@Cpuroast
Copy link

@Safihre I assume you meant "OSX10.11-2" instead of "OSX10.10-2"

@Safihre
Copy link
Member

Safihre commented Nov 26, 2017

Yes indeed!

@Cpuroast
Copy link

Cpuroast commented Nov 26, 2017

@Safihre I'm actually surprised it runs on 10.9 and 10.10, that completely caught me by surprise, according to travis the xcode8 image doesn't even even contain the 10.9 and 10.10 sdks.

For the hell of it though, we should try a build using xcode7.3.1, but heh, if xcode8 works, across the board it should result in a more optimized build for newer OSes.

@Safihre
Copy link
Member

Safihre commented Nov 26, 2017

@Cpuroast
Copy link

Ok, no real differences with xcode7.3 vs xcode8, it runs fine on my VMs.
@grillp could try it to confirm on his older hardware, but I'm pretty sure it will runs just fine.
But if xcode8 works, it's probably worth sticking with that.

I think things may start breaking for 10.9 and possibly 10.10, starting with the xcode8.1 image which is built on 10.12.

Why not make a build using xcode8.1, xcode8.2 and xcode8.3, xcode9 and xcode9.1 and I'll see if they still run on 10.9/10.10/10.11. At least we'll know exactly when things start breaking for older OSes.

@grillp
Copy link
Author

grillp commented Nov 26, 2017

I'm away from home for a few weeks, but will vpn in when I can to test out the new version. Will let you know when I have tried.

Thanks again folks!

@grillp
Copy link
Author

grillp commented Nov 26, 2017

Waiting between flights I managed to give it a try.

https://github.com/sabnzbd/sabbuild/releases/tag/osx73 works fine on my machine.

@Cpuroast
Copy link

That's what I thought, ok, we stick with xcode8 since it seems to work fine on everything and I suspect xcode8.1 on 10.12 would break 10.9, 10.10 and potentially 10.11.

@Safihre
Copy link
Member

Safihre commented Dec 9, 2017

@grillp @Cpuroast Travis removed the xcode8 image and now only has xcode8.3 for the 8 series.
Could you guys test this one? https://github.com/sabnzbd/sabbuild/releases/tag/2.3.2RC2-2
Otherwise I could also go to xcode7.3 since that one seems to work fine to.

@Cpuroast
Copy link

Cpuroast commented Dec 9, 2017

@Safihre That's odd, since xcode8 is still in their docs:

https://docs.travis-ci.com/user/reference/osx/#OS-X-Version

They did remove some of the build environments, but xcode8 is still there.

And your travis config file is still specifying xcode8:

https://github.com/sabnzbd/sabbuild/blob/master/.travis.yml

@Safihre
Copy link
Member

Safihre commented Dec 9, 2017

@Cpuroast
Copy link

Cpuroast commented Dec 9, 2017

That announcement says that their new default is changing from 7.3 to 8.3.
So if you don't specify an image, builds will hit the 8.3 image by default.

They also mention at the bottom of it that some images are being retired:

"The following images will be deprecated:
osx_image: xcode8.2
osx_image: xcode8.1
osx_image: xcode8"

But their docs clearly state that the xcode8 image is still there, but that message does indicate that it is not, their docs need to be updated then to reflect this.

I e-mailed their support to have their docs updated to reflect these changes.

I'll run the new build on the 5 supported macOS versions and see how it goes.
@grillp will have to see if it runs on his older hardware, to see if it doesn't error out like when it was built on xcode6.4

@Cpuroast
Copy link

Cpuroast commented Dec 9, 2017

Mid 2012 MBP
macOS 10.12.6
VMware Fusion 8.5.9

2.3.2RC2-2
10.9.5: Passed
10.10.5: Passed
10.11.6: Passed
10.12.6: Passed
10.13.2: Passed

So far so good.

If @grillp reports back that it's good on his older hardware, no point in going back in time to xcode7.3

If all is good with this build, It would be worth updating .travis.yml to use xcode8.3 to avoid the redirect message and to clarify exactly which build image is used during the build.

Would be fun to try the xcode9, xcode9,1 and xcode9,2 images to see how far we can go before it breaks compatibility with the older macOS versions.

@grillp
Copy link
Author

grillp commented Dec 9, 2017

Heya,

https://github.com/sabnzbd/sabbuild/releases/tag/2.3.2RC2-2 Works fine on my clunker..ehmm.. workhorse!

Mid 2007 iMac
maxOS 10.11.6

@Cpuroast
Copy link

Cpuroast commented Dec 9, 2017

Good, looks like xcode8.3 is our new default as I'm pretty sure the more recent images would at least break 10.9.

@Safihre
Copy link
Member

Safihre commented Dec 9, 2017

Thanks for testing guys! 🥇

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants