rails_ruby_bench
rails_ruby_bench copied to clipboard
Ubuntu 18.04 install
Hi,
(edited for errors)
I have followed the instructions here to install discourse locally without docker.
I now have discourse running with nginx.
The seed script seems fail due to existing users and then after that with something about categories. I did sql "DELETE from USERS;" and editted seed_db_data.rb to "category: "Lounge" "
This got it to complete. At the bottom are some discourse edits to get things to work. I hope my json version change doesn't break anything. Can you advise on this please?
Finally I am stuck with a 403 error. Can you help at all with this?
Got exception when POSTing "/posts"...
Exception in worker thread: 403 Forbidden
/home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:249:in exception_with_response' /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:129:in
return!'
/home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:836:in process_result' /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in
block in transmit'
/home/paul/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/net/http.rb:920:in start' /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in
transmit'
/home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in execute' /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in
execute'
/home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:53:in request' /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:86:in
action_from_args'
/home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:150:in block in time_actions' /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:149:in
each'
/home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:149:in time_actions' /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:179:in
block (2 levels) in multithreaded_actions'
#<Thread:0x00005654207f3238@/home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:170 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
13: from /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:179:in block (2 levels) in multithreaded_actions' 12: from /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:149:in
time_actions'
11: from /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:149:in each' 10: from /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:150:in
block in time_actions'
9: from /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:86:in action_from_args' 8: from /home/paul/ruby-test/rails_ruby_bench/user_simulator.rb:53:in
request'
7: from /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in execute' 6: from /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in
execute'
5: from /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in transmit' 4: from /home/paul/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/net/http.rb:920:in
start'
3: from /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in block in transmit' 2: from /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/request.rb:836:in
process_result'
1: from /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:129:in return!' /home/paul/.rvm/gems/ruby-2.6.3/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:249:in
exception_with_response': 403 Forbidden (RestClient::Forbidden)
i ran as follows: (git branch -vv ; git diff ;) | cat | gzip -9 | uuencode -m shell-out.gz
begin-base64 664 shell-out.gz H4sIACn9IV4CA6VX63ObSBL/rr+iy/4g6WQQIKFXxbnN2d6c6za2y052ryqX ogYYpImBYYfBsvdxf/t2D6BHLLtydfogYLqnu6cfv+75G/T+efHuHGKuWbTi MTAND549smd9iMfc4eFkxDz4matSyBzCKitAy4alA5CxUnMFB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g6S5pSlDkatSFk+/OSj01fY+FKjPmJTvmfffe NDd76Q7UIB61562gwfH/YcXgf7UiecmMenDPDeyYx/Ms1Ky8L4cNGClqfeHh 9bbJTzw/wd7oz2y8XvoeZqTnjp/n4PP92xR8TjPNfGr6WP2guQq58MJpuBbU j2uk7BLgPl9ehDyRCql1e9v9iTyRn49KvKkfIX4hVOENjr56BdOr/mHujIp2 y24+a35blHI2cdxv9y1/E0Uj0dqnhErqVBjaCWLH46apbEINm4x/hRe+1Xj3 8fzi9hZbLjbOo3OJI3rLTJVx/Ds14T8R0o5/790oGeG6HdHNNVhSB8bzNKuL xdlP12f/Cj5cX11/vL66POuDRdOA0n1byQozzev/iRNBVB69YkLnL3IN7IZL EgAA ====
First, are you using the (admittedly ancient) version of Discourse I do? That's going to be important to the functioning of the script. If you don't, that would give approximately what you see above.
Hi Noah,
thanks for replying so soon
my git head gives discourse at v2.3.8
i am a bit nervous to try an older version of discourse, because, if anything is broken, then the discourse community is going throw "you should not be using such an old version".
on the other hand I have been struggling for 3 days to get everything working (on account of never before having use gem, ruby, puma, nginx, or discourse)
perhaps i need a break from it and to try again later
If this is your first exposure to Ruby, gems, NGinX and so on, this is a rough first project :-/ You're likelier to have a much easier time if you're willing and able to use the AWS and Packer version with EC2. Is that an option for you?
Also, yay for writing books! I've self-published a couple, but nothing through a separate publisher.