upgrade db schema from redmine 1.2.1 to 1.3.0 - postgresql

i have one server with redmine 1.2.1 and webrick webserver. In another new ubuntu server, i've just installed redmine 1.3.0 from the main repo, with apache+passenger. No problem with that.
Then i pg_dumped my old 1.2.1 database and put into my new postgresql for my 1.3.0 redmine. Everything works well except one thing. when i go to watch one of my repos (url like http://myhost.com/projects/myproject/repository/revisions/11806) I get this error
ActionView::TemplateError (PGError: ERROR: relation "changeset_parents" does not exist
This means that i didnt upgrade correctly my redmine, is there a way to upgrade this database in my new ubuntu server?
Thanks a lot.

Did you run the Redmine Database migration script?
rake db:migrate RAILS_ENV=production
This will need to be run as a root user in from the /usr/share/redmine directory or whereever you have installed Redmine to.

Related

Create Strapi App, no option for mongoDB on custom installation type

When attempting to create a Strapi App which is connected to a MongoDB cluster and selecting the custom installation, all online tutorials suggest that "mongodb" should be one of the options in the dropdown list alongside "postgres", "mysql" and "sqlite". However, I am not getting an option for mongodb.
I have tried reinstalling nodejs which then triggered the reinstall of create-strapi-app. I also have mongoDB installed locally.
Strapi has abandoned its support for NoSQL DBs. The MongoDB team might (if at all) write their own connector to MongoDB, however ETA is around July, and stable version ETA is around August.
SQLite is now the default DB. However I believe they recommend using PostgreSQL for production.
try with v3
npx create-strapi-app#3.6.8 fileName
Is running well with MongoDB
This worked for me guys,
Install strapi locally to your system using npm i strapi#alpha -g
Run mongodb locally on your system.
Use strapi new <project name> for creating a new project.
Choose your installation type as "custom"
This will avail "Mongo" on the list of supported Databases for Strapi.
Hope this will work for everyone.
Thanks
Reference:
https://strapi.gitee.io/documentation/3.0.0-alpha.x/guides/databases.html#mongodb-installation

Unable to connect to postgresql with pgAdmin4: readonly attribute error

I have a local postgresql 10 server (tested the same on 9.6, don't think it's related to the DB at all, only to pgAdmin4, as pgAdmin3 works just fine)
As in the screenshot, I am trying to connect to the localhost db with user postgres on a fresh installation, but I keep receiving this message:
readonly attribute
I searched everywhere for this error, but couldn't find any useful solutions or workarounds
pg4Admin 4 now is working for me. I got an update of python-psycopg2 to 2.7.4-1.pgdg16.04+1 amd64 version on my KDE Neon, that solved, to me, the readonly attribute problem.
This error is related to psycopg2. Please verify the version of psycopg2 installed on your system and update it to at least version 2.7.
At version 2.7 psycopg2 connection class the notices attribute is writable. On earlier versions it is a read only attribute.
If you comment the code in line 313 of /usr/share/pgadmin4/web/pgadmin/utils/driver/psycopg2/connection.py you could check it out.
#pg_conn.notices = deque([], self.ASYNC_NOTICE_MAXLENGTH)
You can try using pgAdmin4 wheel file, you will not face any such issues of an older version of packages from the native repo.
https://askubuntu.com/questions/831262/how-to-install-pgadmin-4-in-desktop-mode-on-ubuntu
I am on Ubuntu 16.04, but using postgresql and pgAdmin from apt.postgresql.org. I struck this bug. But the new version of psycopg2 that came through with the latest apt update solved the problem for me.

How to install a plugin in redmine 1.4.4 via SSH on redmine VM?

I have got access to redmine VM via SSH and have plugin files on my local machine. Now I need to install it in redmine.
Can anyone explain the steps to do it? I am using a windows 7 machine as SSH client.
You can use SFTP client such as WinSCP (Windows client that I uses) or find any other.
SFTP is SSH File Transfer Protocol, i.e. you will have access to VM's file system via SSH connection, and Redmine plugins installation will be just files copying :)
Also, SFTP clients can launch simple commands as touch (touch tmp/restart.txt command needed to restart Ruby on Rails applications)
Put the plugin directory in the vendor/plugins sub directory of your Redmine installation. Check the plugin installation instructions for any additional steps that might be necessary.
Redmine 1.4.4 is several years old, you should first make sure with a local test that the plugin actually works with that version. And you should really upgrade to a recent version of Redmine (current stable is 3.2) as there have been quite a few security issues in Rails and Redmine since 1.4.4 was released.

Can't login into development copy of Typo3

I'd like to create a local copy on my Windows 8 machine to further develop existing extensions and test upcoming updates of a Typo3 6.1.7 installation. I tared everything up including the MySQL DB dump, extracted it into a fresh install of XAMPP and imported the database. After adjusting the DB and OpenSSL settings in the LocalConfiguration.php I tried to login with my password, but I get a message stating my credentials must be wrong.
The LoginSecurity on BE is configured with RSA, and the InstallTool states that my OpenSSL config is running correct. Then why can't I login? What did I miss?
Searching what could be wrong I looked at the requirements for Typo3 6.1.x, and it clearly states that it supports MySQL 5.5.x. Sure enough, the freshly installed XAMPP uses MySQL 5.6. I removed it, installed the other current XAMPP package with MySQL 5.5 and now it works.

Rails: moving development environment from windows(mingw32) to OS X mountain lion

I have a rails 3.2.3 application which I was developing on my windows machine using git_bash as cli and mingw32 as environment (installed this env using railsinstaller)and postgres as db.
But there were some problems with rmagick and couldn't use it, although minimagick was working as expected.
Now, I am going to move application to my new mac machine running OS X mountain lion.
I have installed rails 3.2.8 and ruby on OS X using rvm. what do I need to do to update my application to rails 3.2.8 and setup db and other gems, should I delete or not delete gemfile.lock and what gems I need to remove or add or change version no. etc.
I am new to rails, please help
thanks!
Should I install postgres using homebrew or download from http://www.postgresql.org/download/macosx/
which is a preffered way of installing postgres, pros and cons of these methods.
As long as you don't have any Windows/machine-specific code in your app, you'll just need to do bundle install.
Regarding Postgres, it doesn't matter where you get it from, as long as it's on your $PATH. If you're already using Homebrew, then it makes sense to just do brew install postgres.
Gemfile.lock gives A list of gems used to ensure that all copies of the app use the same gem versions.
since I'm the only one working on this app and it's not yet in production. So, for me it makes more sense that I nuke Gemfile.lock and specify updated versions of gems I want now.
Things I did
Copied my application directory from my windows machine after cleaning some data in my tmp/ directory( tmp/ directory had 100M of data).
Installed imagemagick using brew install imagemagick
Installed postgresql using brew install postgresql
Generated a sample app using rails new blog -d postgresql
Changed database.yml file according to postgresql, as it required my mac user to be the username.
run sample blog app, and it was working fine. created a scaffolding and entered data and everything was working.
copied content of Gemfile.lock from blog application and pasted in my application's Gemfile.lock
changed version of rails in my Gemfile from 3.2.3 to latest version 3.2.8. changed version of some other gems.Replaced 'minimagick' with 'rmagick'. (I had problem with installing rmagick gem on windows, minimagick gem somehow worked on windows with older version of imagemagick).
Changed database.yml.
run rake db:create:all to create all the db.
run rake db:migrate
Run bundle and it installed all the dependecies.
run rails s
Everything is working fine now :)