fr0tt / benotes Goto Github PK
View Code? Open in Web Editor NEWAn open source self hosted notes and bookmarks taking web app.
Home Page: https://benotes.org
License: MIT License
An open source self hosted notes and bookmarks taking web app.
Home Page: https://benotes.org
License: MIT License
Hello,
I have set this on my .env file: RUN_BACKUP=true
And have scheduled a cron job like this:
0 * * * * cd /home/notes/benotes && php artisan schedule:run >> /dev/null 2>&1
Now I checked my backup folder inside storage and it's actually empty.. what gives?
Also, trying to run the cron command manually tells me that:
No scheduled commands are ready to run.
Thanks
Hi, I have a collection col2
that's a subcollection of col1
.
When I'm in the edit menu of col2
and I remove the parent col1
with the small "x" to move col2
back to the root level nothing changes after hitting save.
When I'm clicking on "edit" of col2
again col1
is still there as the parent.
I've just started with Benotes and I'm impressed with the I/F. Simple and easy to use. I've been using it OK for about a week. I like it a lot.
However, yesterday I had some data that was not saved. I noticed a little box in the bottom left which said there was an error. I almost missed it. Could it be moved centre screen or up by the Save button to make it more obvious. As pressing save closes the page, and remember there was an error, I lost my input. I then started copying the page before saving just in case and it happened a few times.
Then I found a record that had not given an error message but hadn't saved the data. I edited it again thinking that I hadn't saved it and it closed but didn't save. No error messages at all. I could make some changes and it would be saved but others wouldn't be saved. All failed saves did not give any errors at all. Obviously I have no idea how long this has been happening it could have been from day 0.
Anyone have an ideas on how I can fix this or diagnose the issue.
I am on a QNAP NAS running the latest QTS Hero. The App is in a Docker Container and set up on NGinx. Access works fine and everything appears OK. Only issues are the occasional error failing to save and it simply not saving with no errors.
Hi,
maybe a stupid question, but how to clear the Recycle Bin?
I cant see any option to delete the old entries, just for restore.
Hello!! Just curious to know if it would be possible to have these features:
Sorry for so many requests, I really like it and I found myself using it a lot more than I thought, so those are things I miss from other services like raindrop, either way I keep using it.
Also, sidenote, I'm the same from Reddit, hi!
Hi,
I've been following these instructions to spin up a docker container running Benotes.
The instructions ask to wget this .env.sqlite.example which contains the following line:
DB_DATABASE=storage/database.sqlite
After following the instructions I was able to get to the login page, but upon typing in the email and password I setup nothing happened.
The docker logs showed the following at every attempt to log in:
[php-fpm:access] 127.0.0.1 - 18/Apr/2023:23:58:37 +0000 "POST /index.php" 500 /var/www/public/index.php 34.020 2048 88.18%
I was then able to access the laravel.log
file and that's where I found out the following error was being output:
[previous exception] [object] (InvalidArgumentException(code: 0): Database (storage/database.sqlite) does not exist. at /var/www/vendor/laravel/framework/src/Illuminate/Database/Connectors/SQLiteConnector.php:34)
This led me to change the patch on the DB_DATABASE
entry in the .env
file to:
DB_DATABASE=/var/www/storage/database.sqlite
When doing so everything started working upon rerunning the docker run
command.
I just wanted to mention this issue to see if perhaps for the time being the .env
example could be updated to avoid anyone else encountering the problem.
Hi there, I've installed your app via its docker image, but whenever I have to reboot the server hosting it, Benotes fails to start up - it just keeps on restarting itself unsuccessfully. The only relevant line in the logs is this:
error: failed switching to "root": operation not permitted
Restarting the app with docker-compose down and docker-compose up works, but restarting the docker service or rebooting the machine results in the same failure.
I worked around this by adding the following line to the docker-compose.yml file within the service block for "app":
user: root
However, I am way too unfamiliar with docker to know if this is a cause for concern or not.
Hello, once installed I get a blank page.
Any idea how to solve it?
Thanks
I can share collection between users?
I pulled a new image and started the container.
I tried to log in but it failed.
Then I remembered that there was more to do and saw in the docs that I also needed to execute sh docker/update.sh
after updating.
Ran without an issue but still the login doesn't work.
I don't get any hints in the frontend and can only see the error in the container logs (see below).
The last entry in laravel.log is from 3 days ago, so I'm not sure if it's relevant.
[08-Jun-2023 08:04:11] NOTICE: fpm is running, pid 17
[08-Jun-2023 08:04:11] NOTICE: ready to handle connections
Migrate database...
Database migration completed.
2023-06-08 08:04:10,851 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2023-06-08 08:04:10,853 INFO supervisord started with pid 14
2023-06-08 08:04:11,856 INFO spawned: 'cron' with pid 15
2023-06-08 08:04:11,860 INFO spawned: 'nginx' with pid 16
2023-06-08 08:04:11,861 INFO spawned: 'php-fpm' with pid 17
2023-06-08 08:04:12,905 INFO success: cron entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-08 08:04:12,905 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-06-08 08:04:12,905 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
127.0.0.1 - 08/Jun/2023:08:04:29 +0000 "POST /index.php" 500
192.168.2.10 - - [08/Jun/2023:08:04:29 +0000] "POST /api/auth/login HTTP/1.1" 500 6628 "https://benotes.example.com/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0" "192.168.5.27"
I'm using a dedicated postgres db which worked before.
As far as I can see in the db the users and data are still there.
Installed the most recent version. RTFM'd as per instructions for 'docker-compose'. Got this error message 'dump':
/var/www $ php artisan install
Initiate installation...
0/4 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0%
ErrorException
file_put_contents(/var/www/.env): Failed to open stream: Permission denied
at vendor/laravel/framework/src/Illuminate/Foundation/Console/KeyGenerateCommand.php:96
92▕ {
93▕ file_put_contents($this->laravel->environmentFilePath(), preg_replace(
94▕ $this->keyReplacementPattern(),
95▕ 'APP_KEY='.$key,
➜ 96▕ file_get_contents($this->laravel->environmentFilePath())
97▕ ));
98▕ }
99▕
100▕ /**
+13 vendor frames
14 app/Console/Commands/InstallCommand.php:47
Illuminate\Console\Command::call("key:generate")
+13 vendor frames
28 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
First things first: great app, looks promising.
But i am missing the function to import bookmarks. Is there a plan for that ?
Hello,
does benotes only use the image of open graph meta ?
a screenshot function would be very nice! :)
Hi,
I found a few bugs.
Cannot create post with new tags
I can create a post with an existing tag that's already created. But if I try to create a tag on the fly, it doesn't work.
UPDATE: just tested again as I post this, and it is now working. Haven't changed anything except that during my tests I added the tag "github", then created the post, which worked. Now tag creation in the post works - I don't know
Something else I noted was that going to the page initially shows a blank page. If I refresh the page (maybe a few times), then the login page shows. This is consistent when I test in different browsers and in private mode.
Sorry to post so much here, I am testing out Benotes and came across this during my initial setup.
Thanks
Justin
For example:
HTML code link:
https://www.upavidhi.com/sutra/ekadhikena-purvena#:~:text=28%20%2B%20165,for%20something%20like%3A
Steps | 28 + 165 | ||
1. | Equate the digits of both the numbers by prefixing imaginary Zeroes in front, and start counting upwards. | In this case, 0 2 8 + 1 6 5 -------- |
|
2. | While summing the digits, place a dot on the previous digit for whichever digit caused the count greater than 10, and continue counting by removing the Ten's place. | In this case, 0 2o8 + 1 6 5 -------- 3 |
|
3. | While counting consider the dots in the column as an ekādhika, or +1. | In this case, 0 2o8 + 1 6 5 -------- 1 9 3, which is the answer! |
I got this issue at first run
-> Executing /opt/docker/provision/entrypoint.d/05-permissions.sh
-> Executing /opt/docker/provision/entrypoint.d/20-nginx.sh
-> Executing /opt/docker/provision/entrypoint.d/20-php-fpm.sh
-> Executing /opt/docker/provision/entrypoint.d/20-php.sh
-> Executing /entrypoint.d/app_entrypoint.sh
/entrypoint.d/app_entrypoint.sh: line 9: RUN_MIGRATIONS: unbound variable
Any idea ?
Thaanks
I followed every step from docs, but when I enter docker shell to php artisan install
this happens:
php artisan install
Initiate installation...
0/4 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0%
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
Application key set successfully.
1/4 [▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░] 25%
This will invalidate all existing tokens. Are you sure you want to override the secret key? (yes/no) [no]:
> yes
jwt-auth secret [SWfxPsPF0zaUoGb5KyPb5j5r2s3pEUHZDtLYLNIOkQrT3ZS3WrzCOEaX8I7dDHgq] set successfully.
2/4 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░] 50%
**************************************
* Application In Production! *
**************************************
Do you really wish to run this command? (yes/no) [no]:
> yes
UnexpectedValueException
The stream or file "/var/www/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: No such file or directory
The exception occurred while attempting to log: The stream or file "/var/www/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: No such file or directory
The exception occurred while attempting to log: SQLSTATE[HY000] [1045] Access denied for user 'benotes'@'192.168.16.3' (using password: YES) (SQL: select * from information_schema.tables where table_schema = benotes and table_name = migrat
ions and table_type = 'BASE TABLE')
Context: {"exception":{"errorInfo":["HY000",1045,"Access denied for user 'benotes'@'192.168.16.3' (using password: YES)"]}}
Context: {"exception":{}}
at vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:146
142▕ restore_error_handler();
143▕ if (!is_resource($stream)) {
144▕ $this->stream = null;
145▕
➜ 146▕ throw new \UnexpectedValueException(sprintf('The stream or file "%s" could not be opened in append mode: '.$this->errorMessage, $url) . Utils::getRecordMessageForException($record));
147▕ }
148▕ stream_set_chunk_size($stream, $this->streamChunkSize);
149▕ $this->stream = $stream;
150▕ }
+9 vendor frames
10 [internal]:0
Illuminate\Foundation\Bootstrap\HandleExceptions::handleException(Object(UnexpectedValueException))
I'm pretty new with docker so I'm using portainer with a lot of other apps. I comment this because I thought it was a port error from mysql (I've had to change other mysql ports in the past to get things working), but I neither editing docker-compose.yml
and manually hardcoding the port or editing DB_PORT
at .env
works.
While the php artisan install
I choose yes on every step, but in the third I get this error.
Every file in the directory created by the git clone is writable by user and my user is the owner.
Thanks
Big red flag, I don't see any options to only have 1 admin account but a permission system is definitely needed.
In firefox, Many people (like me) enable security.fileuri.strict_origin_policy
because of the security (and privacy) implications. However this makes the app inaccissable because it tries to load css file from https://rsms.me/inter/inter.css
inside app.blade.php
file . I think it is good idea to add this file locally and load it from there.
I see there is support for inline code. But I like to save code snippets. Code block with a "copy" function would be great!
Hello
when will you consider adding the docker image to hub.docker.com?
Hi,
I tried importing bookmarks from Firefox and Chrome exports.. both failed with the error in subject.
If you can tell how to check for more detailed error messages I would appreciate - or if you have a solution, that is :)
I can see some of them were imported, but like 10 out of 100?
font is very huge, already change app.css but i think its compile on the fly. need your advice please
When you use markdown in order to list links you cannot edit later. Using a normal user (created after admin user).
E.g.
I create a new post with this content:
- [link](https://www.google.com)
- [link2](https://www.google.com)
and then Save it. If then I want to edit and add another link:
- [link](https://www.google.com)
- [link2](https://www.google.com)
- [link3](https://www.google.com)
and save, next time you edit the post link3 will not appear (will not be saved).
EDIT: also, markdown is not rendering properly? it should be a link, not a literal [link](https://blahblahblah.com)
Database connection [postgres] not configured.
Login not working. I installed the application with docker and executed the two commands:
I have attached the logs from the container: _benotes_logs.txt
I reinstalled the application from scratch several times, but every time I got stuck at this point.
I just setup everything following your instructions and used Postgresql as my DB. Selecting logout takes me back to the main screen as if I'm automatically logging back in. I'm not using a reverse proxy at all and serving straight from the public folder in my copy of the git repo along with having proper permissions setup on the storage folder.
OS: Gentoo
Node: 14.16.1
PHP: 7.4.19
Serving Software: Caddy V2
server-domain-name {
log {
output file /var/log/caddy/note.log
format single_field common_log
level info
}
root * /My-Home/git/benotes/public
php_fastcgi 127.0.0.1:36500
file_server
tls my-email
}
When I try to logout, my log shows this at that moment:
[26/Jun/2021:08:06:33 +0000] "GET /service-worker.js HTTP/2.0" 200 23072
I can provide further information if needed. Thanks
Ok, so after getting this setup finally, I realized this will be something I use ALOT. That being said, a dark mode would be fantastic so it is easier on the eyes.
Is there any way to simplify the Docker Compose setup? I've been pulling hair out trying to get this working so I can review it 😆😂
Using Docker CLI I get this error after following the instructions to a T.
[2023-01-13 17:14:14] production.ERROR: Please provide a valid cache path. {"exception":"[object] (InvalidArgumentException(code: 0): Please provide a valid cache path. at /var/www/vendor/illuminate/view/Compilers/Compiler.php:36)
In README
the part about s3 backup part in .env
file will not work and php artisan install
will complain about spaces.
I think the correct way is to write
BACKUP_DISK= s3
AWS_ACCESS_KEY_ID= yourKeyId
AWS_SECRET_ACCESS_KEY = yourAccessKey
AWS_DEFAULT_REGION= us-east-1
AWS_BUCKET= yourCreativeBucketName
AWS_ENDPOINT= endpointUrl
Also
BACKUP_INTERVAL=0 0 */7 * *
will give
Failed to parse dotenv file. Encountered unexpected whitespace at [0 0 */7 * *].
I tried different syntaxes and still the same problem. I'm not an expert in PHP but I don't think we can have cron syntax with whitespace. Or maybe I'm missing something here.
Hello again,
on my mobile phone, using the PWA, I have the following issue: when I want to scroll down the list of notes, I always end up reordering them, because I have to touch on a note and keep pressed to scroll.
The only solution I have found so far is to touch on the right side where there is some blank space, so I can scroll freely.
If we could have a way to lock the notes in place, it would be awesome.
Hello,
I was pulling my github clone and I got this:
git pull [40/43122]
Updating cd3a1cc..4e1dfc6
error: Your local changes to the following files would be overwritten by merge:
public/fonts/Inter-Black.woff
public/fonts/Inter-Black.woff2
public/fonts/Inter-BlackItalic.woff
public/fonts/Inter-BlackItalic.woff2
public/fonts/Inter-Bold.woff
public/fonts/Inter-Bold.woff2
public/fonts/Inter-BoldItalic.woff2
public/fonts/Inter-ExtraBold.woff
public/fonts/Inter-ExtraBold.woff2
public/fonts/Inter-ExtraBoldItalic.woff
public/fonts/Inter-ExtraBoldItalic.woff2
public/fonts/Inter-ExtraLight.woff2
public/fonts/Inter-ExtraLightItalic.woff2
public/fonts/Inter-Italic.woff2
public/fonts/Inter-Light.woff
public/fonts/Inter-Light.woff2
public/fonts/Inter-LightItalic.woff
public/fonts/Inter-LightItalic.woff2
public/fonts/Inter-Medium.woff2
public/fonts/Inter-MediumItalic.woff
public/fonts/Inter-Regular.woff
public/fonts/Inter-Regular.woff2
public/fonts/Inter-SemiBold.woff2
public/fonts/Inter-SemiBoldItalic.woff
public/fonts/Inter-ThinItalic.woff
public/fonts/Inter-ThinItalic.woff2
public/fonts/Inter-italic.var.woff2
public/fonts/Inter-roman.var.woff2
public/fonts/Inter.var.woff2
public/logo_144x144.png
Please commit your changes or stash them before you merge.
Aborting
I tried to git restore <file>
to no avail. Also tried to git stash
and this is the output I get:
git stash
warning: in the working copy of 'public/fonts/Inter-Black.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Black.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-BlackItalic.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-BlackItalic.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Bold.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Bold.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-BoldItalic.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-ExtraBold.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-ExtraBold.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-ExtraBoldItalic.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-ExtraBoldItalic.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-ExtraLight.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-ExtraLightItalic.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Italic.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Light.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Light.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-LightItalic.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-LightItalic.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Medium.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-MediumItalic.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Regular.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-Regular.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-SemiBold.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-SemiBoldItalic.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-ThinItalic.woff', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-ThinItalic.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-italic.var.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter-roman.var.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/fonts/Inter.var.woff2', CRLF will be replaced by LF the next time Git touches it
warning: in the working copy of 'public/logo_144x144.png', CRLF will be replaced by LF the next time Git touches it
Saved working directory and index state WIP on master: cd3a1cc improve chances of successfully gather a response
On the next pull
it still tells me the same thing.
Please commit your changes or stash them before you merge. Aborting
Please advice. Thanks
Hello,
anytime I click on the input field of the search form I get duplication of collection (only visually): https://i.imgur.com/R42O021.jpeg
Hello,
since the last update Benotes logs me out very often, both on my desktop and with the PWA app on my phone.. It wasn't the case before the update and I used to stay logged in just fine.
Thanks
Hi,
I would like to show Benotes in an iframe.
Unfortunately the login in an iframe doesn't work for me.
Maybe you know a solution?
Hello,
Is there any way to configure Benotes to be accessible to a base path? http://localhost:8000/benotes
It is useful for hosting multiple services behind a reverse proxy. I run Benotes with Docker.
For example:
Thank you very much!
I am getting these messages when creating, editing and moving notes. However it still does the task.
I wast too concerned because it's doing the tasks and the logs show one error here...
Any ideas what could be the issue? Should the PID and UID be stated in the compose file? Or is it a permission issue?
JS files in public folder are compiled and minified.
Hello. I try to run Benotes with Docker on my Synology.
I have follow our instructions to run it inside Docker:
docker run -p 8558:80 -it --rm \
-v /volume1/docker/benotes/storage:/var/www/storage \
-v /volume1/docker/benotes/logs/:/var/lib/nginx/logs/ \
-v /volume1/docker/benotes/env:/var/www/.env \
--env-file /volume1/docker/benotes/env/.env \
--name benotes fr0tt/benotes
env:
APP_NAME=Benotes
APP_ENV=production
APP_DEBUG=false
APP_URL=secret
APP_KEY=secret
JWT_SECRET=secret
USE_FILESYSTEM=true
RUN_MIGRATIONS=false
DB_CONNECTION=sqlite
DB_HOST=
DB_PORT=
DB_DATABASE=storage/database.sqlite
DB_USERNAME=
DB_PASSWORD=
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
MAIL_DRIVER=smtp
MAIL_HOST=
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME="Benotes"
in my error.logI see this:
2022/12/01 09:23:35 [error] 67#67: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/storage/logs/lumen-2022-12-01.log" could not be opened in append mode: failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/storage/logs/lumen-2022-12-01.log" could not be opened in append mode: failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/storage/logs/lumen-2022-12-01.log" could not be opened in append mode: failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/storage/logs/lumen-2022-12-01.log" could not be opened in append mode: failed to open stream: Permission denied
The exception occurred while attempting to log: The stream or file "/var/www/storage/logs/lumen-2022-12-01.log" could not be opened in append mode: failed to open stream: Permission denied
The exception occurred while attempting to log: Please provide a valid cache path.
Some way to turn off this logs or solve the error?
let my know if you need some further information.
Thanks a lot
Love Benotes and just started using it. I've added to iPhone homescreen to run as a PWA but it means the only way to show up new items is to navigate away to another collection/page and back. Pull to refresh is natural on mobile so would be a nice addition if it's possible to add?
Hello,
It would be interesting to show the creation date of a post on the list view.
Hello
When I try to create a new collection nothing happens and when trying to crease new post I got the following error on the down right of the screen.
Error
Post could not be created.
Also trying to edit the default posts I got this error:
Error
Post could not be updated.
I followed the guide on docker-compose BETA and it worked. But when switching to sqlite, the site is not working
Found no usable log during the investigation. Only this
laravel.log
[2023-05-20 10:34:36] production.ERROR: Database migration failed.
supervisord.log
2023-05-20 17:34:18 Migrate database...
2023-05-20 17:34:23 Database migration failed. Try again...
2023-05-20 17:34:29 Database migration failed. Try again...
2023-05-20 17:34:36 Database migration failed. Try again...
2023-05-20 17:34:36 Database migration failed.
2023-05-20 17:34:36 2023-05-20 10:34:36,494 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2023-05-20 17:34:36 2023-05-20 10:34:36,497 INFO supervisord started with pid 19
2023-05-20 17:34:37 2023-05-20 10:34:37,499 INFO spawned: 'nginx' with pid 20
2023-05-20 17:34:37 2023-05-20 10:34:37,502 INFO spawned: 'php-fpm' with pid 21
2023-05-20 17:34:38 2023-05-20 10:34:38,582 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-05-20 17:34:38 2023-05-20 10:34:38,582 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2023-05-20 17:35:04 172.21.0.1 - - [20/May/2023:10:35:04 +0000] "GET / HTTP/1.1" 200 812 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36" "-"
2023-05-20 17:35:04 172.21.0.1 - - [20/May/2023:10:35:04 +0000] "GET /api/auth/me HTTP/1.1" 401 5 "http://localhost:8000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36" "-"
2023-05-20 17:35:04 172.21.0.1 - - [20/May/2023:10:35:04 +0000] "POST /api/auth/refresh HTTP/1.1" 500 6634 "http://localhost:8000/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36" "-"
Scenarios that i tried with the same error described
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.