Comments (6)
also not sure how to get rid of such broken entries
irb(main):039:0> Issue.find_by(id: 7956).delete
NoMethodError: undefined method `state' for #<ActiveRecord::ConnectionAdapters::NullTransaction:0x007f762ba92bc8>
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:238:in `transaction_state'
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/activerecord-4.2.8/lib/active_record/transactions.rb:335:in `add_to_transaction'
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/paranoia-2.2.0/lib/paranoia.rb:96:in `delete'
from (irb):39
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands/console.rb:110:in `start'
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands/console.rb:9:in `start'
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:68:in `console'
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/railties-4.2.8/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:9:in `require'
from bin/rails:9:in `<main>'
irb(main):040:0>
from tracboat.
this will cleanup:
irb(main):052:0> Issue.where(iid: nil).size
=> 520
irb(main):060:0> for issue in Issue.where(iid: nil) do puts issue.destroy end
#<Issue:0x007f7632aec658>
#<Issue:0x007f7632ac5bc0>
...
from tracboat.
I'm seeing the same thing. Issues are imported and show against milestones/labels - but any attempt at issue listing causes a 500 error. Cleanup script above deletes all imported issues...
from tracboat.
the fix is somewhere here: #48
as i no longer had this error.
from tracboat.
Wicked. Thanks - will have a wade through the list :-)
from tracboat.
just checkout that branch and things will likely work.
from tracboat.
Related Issues (20)
- unable to match users by aliases
- use gitlab-export format HOT 3
- minimum python2.7 requirement
- Plan to support GitLab 11? HOT 3
- 11.4 Migration Issue. HOT 1
- Migrating Trac 1.2 to Gitlab 11.5.0 HOT 4
- xml.parsers.expat.ExpatError: not well-formed (invalid token) HOT 37
- UnicodeDecodeError: 'utf8' codec can't decode byte 0xd0 in position 0: invalid continuation byte HOT 4
- OOM during migrate HOT 3
- problems with attachments and encoding HOT 22
- wiki migration "file already exists" HOT 1
- 11.9.7-ce.0: missing index_issues_on_project_id_and_iid update
- Environment variable TRACBOAT_TRAC_URI not taken into account HOT 1
- Export fails if attachments can't be found HOT 1
- 400 bad request
- how does mock migration works? HOT 1
- 12.x support? HOT 2
- 12.7.5 : AttributeError: 'module' object has no attribute 'IssueAssignees'
- 13.x support
- look-behind requires fixed-width pattern
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tracboat.