Sponsored Content
The Lounge What is on Your Mind? VBulletin 3.8 to Discourse on Docker Migration Test Take Four Post 303045324 by Neo on Tuesday 17th of March 2020 01:50:52 AM
Old 03-17-2020
Still problems with attachment migration:

Code:
importing attachments...
   269043 / 651677 ( 41.3%)  Couldn't find attachment record for post.id = 269043, import_id = thread-139764
   323104 / 651677 ( 49.6%)  Couldn't find attachment record for post.id = 323104, import_id = thread-213737
   354790 / 651677 ( 54.4%)  Couldn't find attachment record for post.id = 354793, import_id = thread-260244
   375104 / 651677 ( 57.6%)  Traceback (most recent call last):
	23: from script/import_scripts/vbulletin_neo4.rb:968:in `<main>'
	22: from /var/www/discourse/script/import_scripts/base.rb:47:in `perform'
	21: from script/import_scripts/vbulletin_neo4.rb:97:in `execute'
	20: from script/import_scripts/vbulletin_neo4.rb:602:in `import_attachments'
	19: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/querying.rb:21:in `find_each'
	18: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:69:in `find_each'
	17: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:135:in `find_in_batches'
	16: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:222:in `in_batches'
	15: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:222:in `loop'
	14: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:238:in `block in in_batches'
	13: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:136:in `block in find_in_batches'
	12: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:70:in `block in find_each'
	11: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:70:in `each'
	10: from /var/www/discourse/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.1/lib/active_record/relation/batches.rb:70:in `block (2 levels) in find_each'
	 9: from script/import_scripts/vbulletin_neo4.rb:607:in `block in import_attachments'
	 8: from script/import_scripts/vbulletin_neo4.rb:607:in `gsub!'
	 7: from script/import_scripts/vbulletin_neo4.rb:617:in `block (2 levels) in import_attachments'
	 6: from /var/www/discourse/script/import_scripts/base.rb:847:in `html_for_upload'
	 5: from /var/www/discourse/script/import_scripts/base/uploader.rb:40:in `html_for_upload'
	 4: from /var/www/discourse/lib/upload_markdown.rb:10:in `to_markdown'
	 3: from /var/www/discourse/lib/upload_markdown.rb:17:in `image_markdown'
	 2: from /var/www/discourse/app/models/upload.rb:123:in `short_url'
	 1: from /var/www/discourse/app/models/upload.rb:397:in `short_url_basename'
/var/www/discourse/app/models/upload.rb:161:in `base62_sha1': undefined method `hex' for nil:NilClass (NoMethodError)

So, changed method hex in upload.rb to sha1... trying again.

Did not work either...

/var/www/discourse/app/models/upload.rb:161:in `base62_sha1': undefined method `sha1' for "a5019db7160084fb98dc8a9398bcad8ad05a42ce":String (NoMethodError)

Added ruby rescue for exception handling;

Code:
importing attachments...
   375104 / 651677 ( 57.6%)  skipping....base62.encode.... 
skipping....base62.encode.... 
skipping....base62.encode.... 
skipping....base62.encode.... 
   376880 / 651677 ( 57.8%)  Couldn't find attachment record for post.id = 376883, import_id = thread-283391
   704284 / 651677 (108.1%)  Couldn't find attachment record for post.id = 704340, import_id = 302453503
   764647 / 651677 (117.3%)  Couldn't find attachment record for post.id = 764703, import_id = 302538540
   792031 / 651677 (121.5%)

Seems to be moving along again but then another error:

Code:
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/redis-4.1.3/lib/redis/client.rb:126:in `call': LOADING Redis is loading the dataset in memory (Redis::CommandError)

Added another rescue to catch and skip this:
 

7 More Discussions You Might Find Interesting

1. Web Development

Removing VBSEO for vbulletin – Reverting back to vbulletin URLs

Please note, this information was copied from vbseo.com, now showing a database error. This is posted for reference since vbSEO seems to be going out of business: If you ever need to uninstall vBSEO , you can use the following instructions. Make sure you carefully follow each step. Login... (37 Replies)
Discussion started by: Neo
37 Replies

2. Linux

Docker and pipework,ip with other subnet

Recently i found this for give to docker a "personal" ip ip addr del 10.1.1.133/24 dev eth0 ip link add link eth0 dev eth0m type macvlan mode bridge ip link set eth0m up ip addr add 10.1.1.133/24 dev eth0m route add default gw 10.1.1.1On container i did ... (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

3. AIX

AIX - FC Switch migration, SAN Migration question!

I'm New to AIX / VIOS We're doing a FC switch cutover on an ibm device, connected via SAN. How do I tell if one path to my remote disk is lost? (aix lvm) How do I tell when my link is down on my HBA port? Appreciate your help, very much! (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies

4. Shell Programming and Scripting

Problem in extracting yocto SDK for docker

Actually I was facing the following issue while building my Yocto SDK on Docker container sudo docker build --tag="akash/eclipse-che:6.5.0-1" --tag="akash/eclipse-che:latest" /home/akash/dockerimage.yocto.support/ Sending build context to Docker daemon 26.93MB Step 1/5 : FROM eclipse/cpp_gcc ... (3 Replies)
Discussion started by: Akash BHardwaj
3 Replies

5. Docker

Docker learning Phase-I

Hello All, I had recently learnt a bit of Docker(which provides containerization process). Here are some of my learning points from it. Let us start first with very basic question: What is Docker: Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications ... (7 Replies)
Discussion started by: RavinderSingh13
7 Replies

6. What is on Your Mind?

VBulletin 3.8 to Discourse on Docker Migration Test Take Two

OK. Like we all do, we learn a lot from tests, test migrations, and so forth. Today, I started from scratch on test migration 2, armed with a lot more knowledge, The main differences are as follows: Installed discourse plugin ruby-bbcode-to-md before starting the install Modified... (30 Replies)
Discussion started by: Neo
30 Replies

7. What is on Your Mind?

Under Consideration: Migrate the Forums to Discourse

Dear All, After being active on the Node-RED forum for the last few weeks, I have been very impressed with Discourse, and my eyes have been opened. https://www.discourse.org/ but not the paid /hosted offering, but using the open distribution: https://github.com/discourse/discourse ... (52 Replies)
Discussion started by: Neo
52 Replies
All times are GMT -4. The time now is 09:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy