Skip to content

Instantly share code, notes, and snippets.

/home/user/diaspora/app/workers/notify_local_users.rb:16:in `block in perform'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:51:in `each'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:51:in `block in find_each'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:124:in `find_in_batches'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/relation/batches.rb:50:in `find_each'
/home/user/diaspora/app/workers/notify_local_users.rb:16:in `perform'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/sidekiq-3.4.2/lib/sidekiq/testing.rb:171:in `execute_job'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/sidekiq-3.4.2/lib/sidekiq/testing.rb:167:in `perform_one'
/home/user/.rvm/gems/ruby-2.2.1
[2015-10-10T04:49:57] DEBUG PID-2815 TID-18831720 Rails:
[2015-10-10T04:49:57] DEBUG PID-2815 TID-18831720 Rails:
[2015-10-10T04:49:57] INFO PID-2815 TID-18831720 Rails: Started POST "/posts/6/likes" for 192.168.56.103 at 2015-10-10 04:49:57 +0300
[2015-10-10T04:49:58] INFO PID-2815 TID-18831720 ActionController::Base: Processing by LikesController#create as JSON
[2015-10-10T04:49:58] INFO PID-2815 TID-18831720 ActionController::Base: Parameters: {"post_id"=>"6", "like"=>{}}
[2015-10-10T04:49:58] DEBUG PID-2815 TID-18831720 ActiveRecord::Base: User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
[2015-10-10T04:49:58] DEBUG PID-2815 TID-18831720 ActiveRecord::Base: Post Load (1.7ms) SELECT posts.* FROM "posts" INNER JOIN "share_visibilities" ON "share_visibilities"."shareable_id" = "posts"."id" AND "share_visibilities"."shareable_type" = $1 INNER JOIN "contacts" ON "contacts"."id" = "share_visibilities"."contact_id" WHERE "posts"
*** Настройка gtksourceview *** [26/28]
./autogen.sh --prefix /home/senya/jhbuild/install --disable-static --disable-gtk-doc --disable-Werror
/usr/share/aclocal/log4c.m4:7: warning: underquoted definition of AM_PATH_LOG4C
/usr/share/aclocal/log4c.m4:7: run info Automake 'Extending aclocal'
/usr/share/aclocal/log4c.m4:7: or see http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:60: error: macro PKG_INSTALLDIR is not defined; is a m4 file missing?
/home/senya/jhbuild/install/share/aclocal/ax_require_defined.m4:35: AX_REQUIRE_DEFINED is expanded from...
configure.ac:60: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
World do
Rack::Builder.new do
# map '/' do
Rack::Handler::WEBrick.run Sinatra::Application.new
# end
end
end
=> Building fixtures
=> Built aspects.yml, contacts.yml, aspect_memberships.yml, people.yml, users.yml, and profiles.yml
Run options: exclude {:performance=>true}
Randomized with seed 37088
1) PeopleController#show 404s if no person is found via id
Failure/Error: get :show, :id => "3d920397846"
ActionView::MissingTemplate:
Missing template home/user/diaspora/public/404 with {:locale=>[:en, "en"], :formats=>[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :markerb, :haml]}. Searched in:
require "diaspora_federation"
require "nokogiri"
data = "<XML><post><request><sender_handle>id@pod1</sender_handle><recipient_handle>id@pod2</recipient_handle></request></post></XML>"
e = DiasporaFederation::Salmon::XmlPayload.unpack(Nokogiri::XML::Document.parse(data).root)
puts e.sender_id
puts e.recipient_id
puts e.to_xml
user@debian:~/diaspora$ bin/rake spec
PG::DuplicateDatabase: ОШИБКА: база данных "diaspora_test" уже существует
: CREATE DATABASE "diaspora_test" ENCODING = 'unicode'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `block in execute'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log'
/home/user/.rvm/gems/ruby-2.2.1@diaspora/gems/activerecord-4.2.4/lib/active_record/connection_adapters/postgresql/databas
[2015-10-29T13:56:33] INFO PID-18394 TID-17652080 DiasporaFederation::Discovery::Discovery: Fetch data for [email protected]
[2015-10-29T13:56:33] INFO PID-18394 TID-17652080 DiasporaFederation::Discovery::Discovery: Fetching https://pod11.exampledef4fb.com/.well-known/host-meta for [email protected]
[2015-10-29T13:56:33] DEBUG PID-18394 TID-17652080 Rails: ETHON: performed EASY effective_url=https://pod11.exampledef4fb.com/.well-known/host-meta response_code=0 return_code=couldnt_resolve_host total_time=0.03038
[2015-10-29T13:56:33] WARN PID-18394 TID-17652080 DiasporaFederation::Discovery::Discovery: Retry with http: https://pod11.exampledef4fb.com/.well-known/host-meta for [email protected]: RuntimeError: Failed to fetch https://pod11.exampledef4fb.com/.well-known/host-meta: 0
[2015-10-29T13:56:33] INFO PID-18394 TID-17652080 DiasporaFederation::Discovery::Discovery: Fetching http://pod11.exampledef4fb.com/.well-known/host-meta for [email protected]
[2015-10-
user@debian:~/diaspora$ git diff
diff --git a/spec/federation_messages/federation_messages_spec.rb b/spec/federation_messages/federation_messages_spec.rb
index 349443a..48136e4 100644
--- a/spec/federation_messages/federation_messages_spec.rb
+++ b/spec/federation_messages/federation_messages_spec.rb
@@ -23,7 +23,7 @@ describe "Generation and dispatch of federation messages" do
.to_rack(rack_app)
stub_request(:get, Addressable::Template.new(@testbed_pod + "/hcard/users/test@" + @testbed_pod))
.to_rack(rack_app)
- stub_request(:post, Addressable::Template.new(@testbed_pod + "/receive/users/{guid}")).to_rack(rack_app)
user@debian:~/diaspora$ git diff
diff --git a/spec/federation_messages/federation_messages_spec.rb b/spec/federation_messages/federation_messages_spec.rb
index 349443a..97dbb74 100644
--- a/spec/federation_messages/federation_messages_spec.rb
+++ b/spec/federation_messages/federation_messages_spec.rb
@@ -23,11 +23,11 @@ describe "Generation and dispatch of federation messages" do
.to_rack(rack_app)
stub_request(:get, Addressable::Template.new(@testbed_pod + "/hcard/users/test@" + @testbed_pod))
.to_rack(rack_app)
- stub_request(:post, Addressable::Template.new(@testbed_pod + "/receive/users/{guid}")).to_rack(rack_app)