Comments (5)
Hey @Oxyaxion, sorry that you are experiencing problems with the latest Shiori version. Let me address the two issues separately:
- The connection URL can contain special characters (I'm guessing you refer to that when you say strong password), but you have to URL encode the entire parameter, since it's an URL, that should work.
- Do you know which version you rolled back to? The five you see is the migration number 5 which adds a column to the database. I believe the system is trying to rollback the database changes as well, but since the version is older it can't find this file.
Let me know if you're willing to try number 1 again or if you prefer to keep as you are. if you do, please share the contents of your schema_migrations
table to see which state it is in and we can follow from there.
from shiori.
Thanks so much for your quick response.
1 - Yes by strong password , I meant long password with a lot of special characteres.Thank for clarification I will try with a URL Encoder. Maybe it wil help a lot !
2 - Good question, how can I have the version in cli ? I guess there is a file somewhere in the repository that can give me the shiori version ... because looks like there is no such option like cli with --version
or -v
to catch the version ...
from shiori.
I tried again with the 1.60 version and passsword url encoded , It can parse correctly the password field.
But now it looks like it is not able to correctly parse the ip:port field or connect to the database
setenv SHIORI_DATABASE_URL "mysql://shiori_user:PASSWORDENCODED@tcp(172.16.0.20:3306)/shiori_db?charset=utf8mb4" ; /usr/local/sbin/shiori server -p 7070 --log-level debug
Output :
error opening database error="failed to parse database URL: parse \"mysql://shiori_user:PASSWORDENCODED@tcp(172.16.0.20:3306)/shiori_db?charset=utf8mb4\": invalid port \":3306)\" after host"
With a slightly different option, removing the parentheses, the error is different, but no better.
setenv SHIORI_DATABASE_URL "mysql://shiori_user:[email protected]:3306/shiori_db?charset=utf8mb4" ; /usr/local/sbin/shiori server -p 7070 --log-level debug
FATA[2024-03-24T10:04:00Z] error opening database error="default addr for network '172.16.0.20:3306' unknown"
MySQL runs on another instance.
from shiori.
I finally succeeded in logging in with a password WITHOUT special characters.
Even encoded to UTF8 there are some characters that obviously don't work ! I don't know which ones .
The good method is :
# setenv SHIORI_DATABASE_URL "mysql://shiori_user:PasswordWithoutSpecialChar@tcp(172.16.0.20)/shiori_db?charset=utf8mb4" ; /usr/local/sbin/shiori server -p 7070 --log-level debug
Also luckily the port is by default 3306 because it looks like it also does not work by giving the port on the URL ....
FATA[2024-03-24T10:47:28Z] error opening database error="failed to parse database URL: parse \"mysql://shiori_user:PasswordWithoutSpecialChar@tcp(172.16.0.20:3306)/shiori_db?charset=utf8mb4\": invalid port \":3306)\" after host"
That could be an issue with specifics setup.
In any case, thanks for pointing me on the "UTF Encoding" and for your quick support !
from shiori.
This seems weird, let me reopen the issue and leave this open to investigate. Glad it ended up worked on your end even if you had to lower your database security.
from shiori.
Related Issues (20)
- Parsing error and missing content on theregister.com
- Container image tag "latest" is not updated v1.6.0 HOT 2
- Cannot rename tags in v1.6.0
- Some API calls do not respect root path HOT 6
- Improve search behavior
- Apache reverse proxy does not work for me HOT 24
- Shiori auto increasment not work currectly on sqlite database HOT 1
- Search API Fails to Return Results for Multi-Keyword Queries HOT 4
- Can't use anymore after last upgrade HOT 2
- Shiori can't migrate from 1.6.3 to last commit in master, if you use Postgres or Mariadb HOT 4
- Unify datetime manipulation for the multiple database engines
- Home button should clear search query
- PUT request to /api/v1/bookmarks/cache takes too long HOT 2
- Allow PDF file archives
- "View Original" link in the archive view references the same page HOT 1
- Frontend refactor to Vue3
- Some asset take so much time to load when became behind revece proxy HOT 2
- Update the usage docs
- Allow running arbitrary actions over bookmarks HOT 1
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 shiori.