Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/scripts/gc.sh does no end #90

Closed
eleaner opened this issue Mar 15, 2023 · 16 comments
Closed

/scripts/gc.sh does no end #90

eleaner opened this issue Mar 15, 2023 · 16 comments
Labels
bug Something isn't working

Comments

@eleaner
Copy link

eleaner commented Mar 15, 2023

Hi,
I assume it might be a problem with the script itself, but maybe someone saw it before?
so I go to the container and I run the script
it executes perfectly bu tthen it never ends with such problem

(...)
2023-03-15 12:54:28 gc-core.c(606): === GC is finished ===
seafserv-gc run done

Done.
Seafile CE: Offline garbage collection completed. Starting Seafile.

Starting seafile server, please wait ...
** Message: 12:54:31.807: seafile-controller.c(621): No seafevents.

Seafile server started

Done.
Waiting for SeaRPC socket...
2023/03/15 12:54:34 socat[12985] W ioctl(5, IOCTL_VM_SOCKETS_GET_LOCAL_CID, ...): Inappropriate ioctl for device
@Larrikinau
Copy link

I have the same issue

@ggogel ggogel added the bug Something isn't working label Apr 17, 2023
@ggogel
Copy link
Owner

ggogel commented Apr 17, 2023

Hi, can you post the complete log, please?

How exactly did you execute the script?

Please try using docker exec, as described in the wiki.

docker exec -it seafile-server /scripts/gc.sh

@ggogel
Copy link
Owner

ggogel commented Apr 17, 2023

I was able to reproduce and fix the issue.

Relevant commit: d085480

I've never noticed it because I run the script through Cron and the script not terminating was never an issue there.

@ggogel ggogel closed this as completed Apr 17, 2023
@Larrikinau
Copy link

Thanks. Do you need to update the docker-compose file to reflect the new seafile version number?

@ggogel
Copy link
Owner

ggogel commented Apr 18, 2023

Depends on what tag you are using. Some tags are re-used, some are specific. The latest seafile-server image is tagged with latest, 10.0.1 and 10.0.1_002.

@Larrikinau
Copy link

Larrikinau commented Apr 18, 2023 via email

@ggogel
Copy link
Owner

ggogel commented Apr 18, 2023

What was the error message?

@Larrikinau
Copy link

Larrikinau commented Apr 18, 2023 via email

@Larrikinau
Copy link

BTW, the other thing is that I manually edited the gc.sh file as per your update (ie adding the &).

It ran this time but still produced this error message as per above

2023/03/15 12:54:34 socat[12985] W ioctl(5, IOCTL_VM_SOCKETS_GET_LOCAL_CID, ...): Inappropriate ioctl for device

Everything still seemed to work but I don't know why that error message. Out of an abundance of caution, I stopped seafile, and restarted it.

@ggogel
Copy link
Owner

ggogel commented Apr 18, 2023

You changed the tag of the wrong image. seafile-server has a new version, seafile-media doesn't.

2023/03/15 12:54:34 socat[12985] W ioctl(5, IOCTL_VM_SOCKETS_GET_LOCAL_CID, ...): Inappropriate ioctl for device

You can ignore this message. See https://stackoverflow.com/questions/1605195/inappropriate-ioctl-for-device

@Larrikinau
Copy link

Larrikinau commented Apr 18, 2023 via email

@ggogel
Copy link
Owner

ggogel commented Apr 18, 2023

I'm not departing from the versioning schema. I'm using it since the beginning. The first part (10.0.1) is the Seafile version. The second part (001) is the build number of the specific component. If you want to use the same tag on all components you can just use the tag 10.0.1, which always refers to the latest build under this Seafile version.

Just make sure you actually pull the image version if using tags that are getting re-used.

@Larrikinau
Copy link

Larrikinau commented Apr 18, 2023 via email

@ggogel
Copy link
Owner

ggogel commented Apr 18, 2023

Thank you, it makes my day to hear that.

Try to execute docker-compose pull. This should check if any new versions under the given image tags are available and pull them. Then execute the docker-compose up command again.

@Larrikinau
Copy link

Larrikinau commented Apr 18, 2023 via email

@ggogel
Copy link
Owner

ggogel commented Apr 18, 2023

Great 👍

I run it every Sunday. It shouldn't affect your retention. It will only remove chunks of files that are actually deleted, meaning not being held in deleted files anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants