Coder Social home page Coder Social logo

Error during the setup about dradis-ce HOT 8 CLOSED

alopez78 avatar alopez78 commented on September 28, 2024
Error during the setup

from dradis-ce.

Comments (8)

alopez78 avatar alopez78 commented on September 28, 2024 1

I know, I know, don't worry about it. I just tried to see what was going on.
Let's wait for the experts.
I hope so too.

from dradis-ce.

sirEgghead avatar sirEgghead commented on September 28, 2024

I received the exact same issue after hurdling a previous installation issue. When I received the error that you listed, I ran bundle install, to which I received a message saying that everything was installed. I started up the server and connected to it with my browser, only to receive a lengthy page stating that a migration was in progress. I clicked the button that says "Run pending migrations", only to receive a message similar to the one that you listed here. Hence, I'm still stuck in the same place. I would love to know how to get this installed, as this is my first time attempting to do so and have already come across multiple issues during the installation process.

from dradis-ce.

alopez78 avatar alopez78 commented on September 28, 2024

I did what you said.
But after clicking "Running pending migrations" i got the same error but in a browser with some more details.
Captura de pantalla_2021-02-17_10-44-52

from dradis-ce.

sirEgghead avatar sirEgghead commented on September 28, 2024

My apologies. I was not giving instructions for you to solve your problem. I was chiming in on the conversation saying that I am having the same problem as you. I hope that we can both get this resolved soon.

from dradis-ce.

alopez78 avatar alopez78 commented on September 28, 2024

SOLUTION
After some research about ruby, i have never used this language, I saw the problem. Ruby is case-sensitive:

Change the class name from CleanOpenvasSettings to CleanOpenVASSettings in file
dradis-ce/db/migrate/20131002215400_clean_openvas_settings.rb

Execute the ./bin/setup again.

from dradis-ce.

sirEgghead avatar sirEgghead commented on September 28, 2024

That seems to have done it. I called myself running grep -r -i cleanopenvassettings last night, but I suppose I glossed over that particular results in my no-sleep haze. lol. Thank you for the help.

from dradis-ce.

BuildAndDestroy avatar BuildAndDestroy commented on September 28, 2024

I had an issue with tzdata-info gem and the cleanopenvassettings class. I'll open a pull request for the Dockerfile and k8s yaml deployment, but here is what is building in my jenkins pipeline:

FROM ubuntu:focal
RUN apt update -y
RUN apt install git zlib1g zlib1g-dev gcc-10 gcc g++ libssl-dev patch libreadline-dev libyaml-dev libffi-dev make bzip2 autoconf automake libtool bison curl libsqlite3-dev mariadb-server libmariadb-dev -y
RUN apt install redis -y
RUN useradd -ms /bin/bash dradis
RUN mkdir /mnt/backup
USER dradis
WORKDIR "/home/dradis"
RUN git clone git://github.com/sstephenson/rbenv.git .rbenv
RUN echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
RUN echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
RUN git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
RUN echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
RUN ~/.rbenv/bin/rbenv install -v 2.7.2
RUN ~/.rbenv/bin/rbenv global 2.7.2
RUN ~/.rbenv/shims/ruby -v
RUN ~/.rbenv/shims/gem install bundler
RUN git clone https://github.com/dradis/dradis-ce.git
WORKDIR "/home/dradis/dradis-ce/"
RUN sed -i 's#[email protected]:paper-trail-gem/paper_trail.git#https://github.com/paper-trail-gem/paper_trail.git#g' Gemfile
RUN sed -i "/^ruby '2.7.2'/a gem 'tzinfo-data', '~> 1.2021.1'" Gemfile
RUN sed -i 's/CleanOpenvasSettings/CleanOpenVASSettings/g' ~/dradis-ce/db/migrate/*_clean_openvas_settings.rb
RUN ~/.rbenv/shims/ruby ./bin/setup
USER root
RUN cp -a /home/dradis/dradis-ce/ /mnt/backup/
RUN chown -R dradis:dradis /mnt/backup/*
USER dradis
WORKDIR "/home/dradis/dradis-ce"
EXPOSE 3000
CMD ["/home/dradis/.rbenv/shims/bundle", "exec", "rails", "server", "-b", "0.0.0.0"]

docker build -t dradis-ce:latest -f dradis-ubuntu.docker .
docker run -it -p 3000:3000 dradis-ce:latest

from dradis-ce.

etdsoft avatar etdsoft commented on September 28, 2024

Sorry about the delay in getting back to y'all this was actually fixed in #937

from dradis-ce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.