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

u3d/install & u3d/available no INI file error on Linux #242

Closed
4 tasks done
IvanRibakov opened this issue Jan 24, 2018 · 3 comments
Closed
4 tasks done

u3d/install & u3d/available no INI file error on Linux #242

IvanRibakov opened this issue Jan 24, 2018 · 3 comments
Labels

Comments

@IvanRibakov
Copy link

Issue Checklist

  • I'm using the latest u3d version
  • I ran u3d --help
  • I read the README
  • I made sure that a similar issue doesn't exit

Issue Description

Running u3d install 2017.1.1f1 results in

root@a1bb72ffaccd:/# u3d install 2017.1.1f1 --trace
No INI file for version 2017.1.1f1. Try discovering the available versions with 'u3d available -f'
/usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/unity_version_definition.rb:44:in `available_packages': undefined method `keys' for nil:NilClass (NoMethodError)
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/unity_version_definition.rb:48:in `available_package?'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/commands.rb:232:in `block in verify_package_names'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/commands.rb:231:in `each'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/commands.rb:231:in `verify_package_names'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/commands.rb:122:in `install'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/commands_generator.rb:156:in `block (2 levels) in run'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/commander-4.4.4/lib/commander/command.rb:178:in `call'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/commander-4.4.4/lib/commander/command.rb:153:in `run'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/commander-4.4.4/lib/commander/runner.rb:446:in `run_active_command'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/commander-4.4.4/lib/commander/runner.rb:68:in `run!'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/commander-4.4.4/lib/commander/delegates.rb:15:in `run!'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/commands_generator.rb:209:in `run'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/lib/u3d/commands_generator.rb:37:in `start'
	from /usr/local/rvm/gems/ruby-2.4.1/gems/u3d-1.0.15/exe/u3d:7:in `<top (required)>'
	from /usr/local/rvm/gems/ruby-2.4.1/bin/u3d:23:in `load'
	from /usr/local/rvm/gems/ruby-2.4.1/bin/u3d:23:in `<main>'
	from /usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
	from /usr/local/rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'

Tried above command on versions 2017.2.0b11, 2017.1.1f1 and 5.6.3f1 without any luck.

Similar happens when trying to list available versions AND their packages:

root@a1bb72ffaccd:/# u3d available -f -p
Fetching central 'versions.json' cache
Version 5.1.0f3: http://download.unity3d.com/download_unity/unity-editor-installer-5.1.0f3+2015091501.sh
No INI file for version 5.1.0f3. Try discovering the available versions with 'u3d available -f'
Packages:
error: undefined method `each_key' for nil:NilClass. Use --trace to view backtrace

Am I missing something obvious again or has the location of ini files changed on the network?

@lacostej
Copy link
Member

lacostej commented Jan 25, 2018

@IvanRibakov Unity doesn't provide INI files for Linux, we create them. Maybe (most probably) I broke something when introducing the central versions cache (to avoid local discovery). I don't use yet the Linux version daily so I may have forgotten to clear our cache when running our tests.

There's no way to disable the central cache right now, but when if fails, it falls back to searching for the versions itself.

I think that if you add an entry to your /etc/hosts to point dragonbox.github.io somewhere else (e.g. 127.0.0.1), it should fail fetching from the versions cache and fallback to manual discovery.

@IvanRibakov
Copy link
Author

IvanRibakov commented Jan 25, 2018

Trick with /etc/hosts worked, thanks!

Btw, reason I thought .ini files were moved on the network was because I came across this post previously: https://forum.unity.com/threads/error-404-getting-https-netstorage-unity3d-com-unity-3c89f8d277f5-unity-2017-3-0f1-linux-ini.508123/

But I'm guessing that's part of the changes introduced in 2017.3 (along with Download Assistant).

lacostej added a commit that referenced this issue Feb 1, 2018
u3d/available: fix forums parsing and move ini faking/downloading at available time, to support package based Linux versions (fixes #241 #242)
@lacostej lacostej added the bug label Feb 1, 2018
@lacostej lacostej closed this as completed Feb 1, 2018
@lacostej
Copy link
Member

lacostej commented Feb 4, 2018

@IvanRibakov feature released as part of 1.0.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants