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

automatic-backup.json not found #319

Closed
deckdom opened this issue Mar 2, 2018 · 1 comment
Closed

automatic-backup.json not found #319

deckdom opened this issue Mar 2, 2018 · 1 comment

Comments

@deckdom
Copy link
Contributor

deckdom commented Mar 2, 2018

Gentics Mesh Version, operating system, or hardware.

  • v0.17.x

Problem

As I was upgrading from 0.16 to 0.17, stating the Server via systemctl didn't work and the logs were empty:

10:57:41.675 [] INFO  [main] [OptionsLoader.java:143] - Configuration file {mesh.yml} was not found within classpath.
10:57:41.752 [] INFO  [main] [OptionsLoader.java:148] - Loading configuration file {config/mesh.yml}.
10:57:42.089 [Nostalgic Ferrothorn] INFO  [main] [MeshImpl.java:252] - ###############################################################
10:57:42.090 [Nostalgic Ferrothorn] INFO  [main] [MeshImpl.java:253] - # Mesh Version 0.17.0 2018-02-22T14:54:11Z                    #
10:57:42.091 [Nostalgic Ferrothorn] INFO  [main] [MeshImpl.java:254] - # Gentics Software                                            #
10:57:42.091 [Nostalgic Ferrothorn] INFO  [main] [MeshImpl.java:255] - #-------------------------------------------------------------#
10:57:42.096 [Nostalgic Ferrothorn] INFO  [main] [MeshImpl.java:257] - # Vert.x Version: 3.5.0                                       #
10:57:42.096 [Nostalgic Ferrothorn] INFO  [main] [MeshImpl.java:261] - # Mesh Node Name: Nostalgic Ferrothorn                        #
10:57:42.096 [Nostalgic Ferrothorn] INFO  [main] [MeshImpl.java:262] - ###############################################################
10:57:42.212 [Nostalgic Ferrothorn] INFO  [main] [OrientDBDatabase.java:266] - Creating orientdb backup configuration file {config/automatic-backup.json}
10:57:42.222 [Nostalgic Ferrothorn] INFO  [Thread-0] [MeshImpl.java:317] - Mesh shutting down...
10:57:42.223 [] INFO  [Thread-0] [MeshImpl.java:329] - Shutdown completed...

Later in the journalctl:

Mar 02 11:03:56 java[17462]: Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: config/automatic-backup.json (Permission denied)
Mar 02 11:03:56 java[17462]: at com.gentics.mesh.cli.BootstrapInitializerImpl.init(BootstrapInitializerImpl.java:230)
Mar 02 11:03:56 java[17462]: at com.gentics.mesh.cli.MeshImpl.run(MeshImpl.java:115)
Mar 02 11:03:56 java[17462]: at com.gentics.mesh.cli.MeshImpl.run(MeshImpl.java:81)
Mar 02 11:03:56 java[17462]: at com.gentics.mesh.server.ServerRunner.main(ServerRunner.java:53)
Mar 02 11:03:56 java[17462]: Caused by: java.io.FileNotFoundException: config/automatic-backup.json (Permission denied)
Mar 02 11:03:56 java[17462]: at java.io.FileOutputStream.open0(Native Method)
Mar 02 11:03:56 java[17462]: at java.io.FileOutputStream.open(FileOutputStream.java:270)
Mar 02 11:03:56 java[17462]: at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
Mar 02 11:03:56 java[17462]: at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:367)

Apparently it couldn't find the automatic-backup.json file and also couldn't create it
I then manually created the file and then it worked.

What is the automatic-backup.json file even used for? Never heard anything about it and it isn't getting mentioned in the Changelog or anywhere else as far as I can see.

Expected behaviour and actual behaviour

  • Create the File if it doesn't exist yet and don't complain that the file doesn't exist (If possible of course)
  • Write the stack-trace into the mesh.log
@Jotschi
Copy link
Contributor

Jotschi commented Mar 2, 2018

The config folder needs to be writeable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants