rs22 / monica-sandstorm

Sandstorm Packaging for Monica
1 stars 2 forks source link

Can't edit data - no error message #19

Open stoltenhoff opened 2 years ago

stoltenhoff commented 2 years ago

I've tried a new install in our sandstorm today. Everything is fine, but i can't do any changes on people or the settings? Everytime when i'm leaving a page, all entries are gone. Out of curiosity i also installed Monica via Yunohost and here everything is working as expected. What can i do, how can i support you with logs or technical details? Thanks a lot for your work!

ocdtrekkie commented 2 years ago

Do you know if these were life events (see #18)? I would also check the Grain Log (available from the top bar) and/or Sandstorm System Log and see if anything interesting gets logged in either of those when you attempt to make changes.

@rs22 seems to have a contribution history on GitHub ending very abruptly in February, so I am not sure if he will see this or not.

stoltenhoff commented 2 years ago

Thank you for the ultra-fast response! I've tried different options and entries like changing preferences, adding tags, contacts and so on. In case of editing the preferences the green success feedback appears, but again no changes? I'm attaching the grain debug log:

Debug log: Untitled Monica instance
...and storage/oauth-public.key detected.
Checking Personal Access Client...
✓ Personal Access Client already created.

✓ Ping for new version
'/usr/local/bin/php' 'artisan' monica:ping --force
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Call url:https://version.monicahq.com/ping
ConnectException...

✓ Maintenance mode: off
'/usr/local/bin/php' 'artisan' up
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application is now live.

Monica v3.0.1 is set up, enjoy.
2022/05/02 19:57:52 [error] 112#112: *24 rewrite or internal redirection cycle while internally redirecting to "/index.php/storage/avatars/67cc6345-7e53-421c-aef6-fbb556149576.jpg", client: 127.0.0.1, server: localhost, request: "GET /storage/avatars/67cc6345-7e53-421c-aef6-fbb556149576.jpg?1651503829 HTTP/1.1", host: "ui-403c9723e76fcedc25302f0b06d9f89d.stoltenhoff.sandcats.io"
2022/05/02 19:57:52 [error] 112#112: *25 rewrite or internal redirection cycle while internally redirecting to "/index.php/storage/avatars/bb691c90-b5a0-491e-bdce-35d084bfb38f.jpg", client: 127.0.0.1, server: localhost, request: "GET /storage/avatars/bb691c90-b5a0-491e-bdce-35d084bfb38f.jpg?1651504258 HTTP/1.1", host: "ui-403c9723e76fcedc25302f0b06d9f89d.stoltenhoff.sandcats.io"
2022/05/02 19:57:52 [error] 112#112: *26 rewrite or internal redirection cycle while internally redirecting to "/index.php/storage/avatars/30135d39-c9de-49a0-92df-1bfddc11f7d9.jpg", client: 127.0.0.1, server: localhost, request: "GET /storage/avatars/30135d39-c9de-49a0-92df-1bfddc11f7d9.jpg?1651503856 HTTP/1.1", host: "ui-403c9723e76fcedc25302f0b06d9f89d.stoltenhoff.sandcats.io"
2022/05/02 19:57:52 [error] 112#112: *27 rewrite or internal redirection cycle while internally redirecting to "/index.php/storage/avatars/f985c11f-a2c6-4d6c-a19a-3e0a14d04c8a.jpg", client: 127.0.0.1, server: localhost, request: "GET /storage/avatars/f985c11f-a2c6-4d6c-a19a-3e0a14d04c8a.jpg?1651503844 HTTP/1.1", host: "ui-403c9723e76fcedc25302f0b06d9f89d.stoltenhoff.sandcats.io"
** SANDSTORM SUPERVISOR: Grain still in use; staying up for now.
** SANDSTORM SUPERVISOR: Grain no longer in use; shutting down.
** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: userns
2022-05-02T20:02:33.097615Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2022-05-02T20:02:33.097814Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2022-05-02T20:02:33.098267Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2022-05-02T20:02:33.100533Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2022-05-02T20:02:33.100597Z 0 [ERROR] Aborting

waiting for mysql to be available at /var/run/mysqld/mysqld.sock
waiting for mysql to be available at /var/run/mysqld/mysqld.sock
waiting for mysql to be available at /var/run/mysqld/mysqld.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application key set successfully.
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
✓ Maintenance mode: on
'/usr/local/bin/php' 'artisan' down --retry="10"
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application is now in maintenance mode.

✓ Resetting application cache
'/usr/local/bin/php' 'artisan' cache:clear
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application cache cleared!

✓ Clear config cache
'/usr/local/bin/php' 'artisan' config:clear
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Configuration cache cleared!

✓ Clear route cache
'/usr/local/bin/php' 'artisan' route:clear
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Route cache cleared!

✓ Clear view cache
'/usr/local/bin/php' 'artisan' view:clear
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Compiled views cleared!

✓ Performing migrations
'/usr/local/bin/php' 'artisan' migrate --force
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Nothing to migrate.

✓ Check for encryption keys
'/usr/local/bin/php' 'artisan' monica:passport --force
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Checking encryption keys...
✓ Files storage/oauth-private.key and storage/oauth-public.key detected.
Checking Personal Access Client...
✓ Personal Access Client already created.

✓ Ping for new version
'/usr/local/bin/php' 'artisan' monica:ping --force
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Call url:https://version.monicahq.com/ping
ConnectException...

✓ Maintenance mode: off
'/usr/local/bin/php' 'artisan' up
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application is now live.

Monica v3.0.1 is set up, enjoy.
** SANDSTORM SUPERVISOR: Grain still in use; staying up for now.
** SANDSTORM SUPERVISOR: Grain no longer in use; shutting down.
** SANDSTORM SUPERVISOR: Starting up grain. Sandbox type: userns
2022-05-02T20:30:28.039496Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000)
2022-05-02T20:30:28.039624Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000)
2022-05-02T20:30:28.039948Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2022-05-02T20:30:28.041523Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2022-05-02T20:30:28.041573Z 0 [ERROR] Aborting

waiting for mysql to be available at /var/run/mysqld/mysqld.sock
waiting for mysql to be available at /var/run/mysqld/mysqld.sock
waiting for mysql to be available at /var/run/mysqld/mysqld.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application key set successfully.
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
✓ Maintenance mode: on
'/usr/local/bin/php' 'artisan' down --retry="10"
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application is now in maintenance mode.

✓ Resetting application cache
'/usr/local/bin/php' 'artisan' cache:clear
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application cache cleared!

✓ Clear config cache
'/usr/local/bin/php' 'artisan' config:clear
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Configuration cache cleared!

✓ Clear route cache
'/usr/local/bin/php' 'artisan' route:clear
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Route cache cleared!

✓ Clear view cache
'/usr/local/bin/php' 'artisan' view:clear
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Compiled views cleared!

✓ Performing migrations
'/usr/local/bin/php' 'artisan' migrate --force
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Nothing to migrate.

✓ Check for encryption keys
'/usr/local/bin/php' 'artisan' monica:passport --force
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Checking encryption keys...
✓ Files storage/oauth-private.key and storage/oauth-public.key detected.
Checking Personal Access Client...
✓ Personal Access Client already created.

✓ Ping for new version
'/usr/local/bin/php' 'artisan' monica:ping --force
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Call url:https://version.monicahq.com/ping
ConnectException...

✓ Maintenance mode: off
'/usr/local/bin/php' 'artisan' up
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
waiting for php-fpm to be available at /var/run/php/php-fpm.sock
Application is now live.

Monica v3.0.1 is set up, enjoy.
** SANDSTORM SUPERVISOR: Grain still in use; staying up for now.
ocdtrekkie commented 2 years ago

Unfortunately it doesn't look like Monica logs much/anything once the app has started to the log. And I'm not really seeing anything interesting in the grain backup of my own Monica grain that looks like it'd be relevant either.

I do think there's a decent chance bringing Sandstorm's Monica package up to current might help, but either rs22 would need to do it, or someone would need to fork it and take over maintaining the package.

stoltenhoff commented 2 years ago

Ok, i'm not able to do it right now, there is just some knoledge missing ;-) But thank your for your help and i will be patient.