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

Post-install issues/Q's #112

Open
fuyuasha opened this issue Dec 18, 2015 · 3 comments
Open

Post-install issues/Q's #112

fuyuasha opened this issue Dec 18, 2015 · 3 comments

Comments

@fuyuasha
Copy link

Appreciate Square open-sourcing what looks like a potentially very useful tool.

Installed OK but now having some run time issues:

  • Get 'Unauthorized' when browser not on rails server node (maybe a rails ver problem, we're on 4.0.9 ?)
    • Started shuttle with (development mode): "rails server -b 0.0.0.0 -p 3000" Can use shuttle from browser on same computer but on different computer get a redirect to localhost:3000 and ‘Unauthorized’ in log, ex:

      [d22533a3-40ac-49fc-9aa9-412bcbfa79df] Started GET "/" for 10.11.12.83 at 2015-12-17 18:57:12 -0500
      [d22533a3-40ac-49fc-9aa9-412bcbfa79df] Processing by HomeController#index as HTML
      [d22533a3-40ac-49fc-9aa9-412bcbfa79df] Completed 401 Unauthorized in 12ms

  • Github
    • where are Github creds set (make a test repo with a .properties file and set the URL in a test project but don't see any processing and no errors)?
  • Linux:
    • Does Square run shuttle on Linux? Any significant setup or config differences that you know of using Ubuntu 14.04 LTS
  • Info
    • is there a better place to browse/post Q&A etc?

Thanks

@RISCfuture
Copy link
Contributor

We don't set GitHub credentials. You should either add your machine's public key to the repo's authorized keys or use a .netrc file on your processing host.

Yes, we use it on Linux here at Square. No real differences.

Not sure about your 401 -- it's either a redirect (301/302) or a 401 though. Can't be both.

@fuyuasha
Copy link
Author

  • OK on Github creds - configed that and see a repo being retrieved into tmp/repos.
  • Understood on Linux
  • I still can't figure out why I'm getting a redirect (it's a 301) but passing on that for now:
    $ curl -I http://10.11.12.84:3000/users/sign_in
    HTTP/1.1 301 Moved Permanently
    Location: http://localhost:3000

Current problem is that after committing a resource file (both a small Java .properties file and an Android .xml) Shuttle doesn't recognize any keys to translate.
Proj settings as follows (and didn't set any key/path/importer filters):

  • Name
  • Repo URL
  • Required Localizations (de)
  • Import Settings (Java .properties + Android XML)
  • Watched Branches (master)
  • Export Manifest Format (YAML)

Sidekiq log shows:
2015-12-21T19:05:22Z 60993 TID-owx5aso5o CommitImporter JID-51ad13b132592d9fb62c6e0b INFO: start
2015-12-21T19:05:22Z 60993 TID-owx5aso5o CommitImporter JID-51ad13b132592d9fb62c6e0b INFO: done: 0.611 sec

... I'm trying to debug but slow going b/c I/m new to Ruby/RoR. Thinking I must be missing something simple or there's another dependency mismatch of some sort (though no obvious errors/warnings in rails/elasticseach/sidekiq output).

Any suggestions?
Thanks

@fuyuasha
Copy link
Author

Answering the last Q above in case anyone else is interested: problem was the source locale filename, needs to conform to what's expected in the import_file? method (shuttle/lib/importer/*.rb).

In my case, with source locale "en", for Android and Java those needed to be:
_en.properties and /values-en/strings.xml

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

No branches or pull requests

2 participants